EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
df2root.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file df2root.C
1 
2 void df2root(TString fname)
3 {
4  // Load basic libraries;
5  gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
6 
7  // Import ${VMCWORKDIR}/input/${fname}.dat & initialize;
8  PndDipoleMap *fField = new PndDipoleMap(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 } // df2root()
16