EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
f2ascii.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file f2ascii.C
1 
2 void f2ascii(TString fname)
3 {
4  // Load basic libraries;
5  gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
6 
7  // Import ${VMCWORKDIR}/input/${fname}.root & initialize;
8  PndSolenoidMap *fField = new PndSolenoidMap(fname, "R");
9  fField->Init();
10 
11  // Convert and dump ASCII version to ./${fname}.dat;
12  fField->WriteAsciiFile(fname + ".dat");
13 
14  exit(0);
15 } // f2ascii()
16