ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ReadFieldMap.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ReadFieldMap.C
1 #ifndef MACRO_READFIELDMAP_C
2 #define MACRO_READFIELDMAP_C
3 
8 
9 #include <fieldmapreadback/FieldMapReadBack.h>
10 
11 void ReadFieldMap(const int nEvents = 1, const std::string &filename="DST_TRKR_CLUSTER_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-04001.root")
12 {
13  gSystem->Load("libg4dst.so");
15  se->Verbosity(); // set it to 1 if you want event printouts
16  FieldMapReadBack *fmap = new FieldMapReadBack();
17  se->registerSubsystem(fmap);
19  in->fileopen(filename);
20  se->registerInputManager(in);
21 // Fun4AllDummyInputManager *in2 = new Fun4AllDummyInputManager("Zen");
22 // se->registerInputManager(in2);
23  if (nEvents < 0)
24  {
25  return;
26  }
27  se->run(nEvents);
28  se->End();
29  delete se;
30  gSystem->Exit(0);
31 }
32 
33 
34 #endif