EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
sf2root.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file sf2root.C
1
2
void
sf2root
(TString fname)
3
{
4
// Load basic libraries;
5
gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C"
);
6
7
// Import ${VMCWORKDIR}/input/${fname}.dat & initialize;
8
PndSolenoidMap
*fField =
new
PndSolenoidMap
(fname,
"A"
);
9
fField->
Init
();
10
11
// Convert and dump ROOT version to ./${fname}.root;
12
fField->
WriteRootFile
(fname +
".root"
, fname);
13
14
exit
(0);
15
}
// sf2root()
16
EicRoot
blob
master
input
field
sf2root.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:36
using
1.8.2 with
EIC GitHub integration