Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_DSTReader_EICIR.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_DSTReader_EICIR.C
1 
2 
9 
10 
11 #include <string>
12 
13 void
14 G4DSTreader_EICIR( const char * outputFile = "G4sPHENIXCells.root",//
15  int absorberactive = 1 )
16 {
17 
19  const bool debug = false;
20 
22  const bool save_g4_raw = true;
23 
24  // save a comprehensive evaluation file
25  PHG4DSTReader* ana = new PHG4DSTReader(
26  string(outputFile) + string("_DSTReader.root"));
27  ana->set_save_particle(true);
28  ana->set_load_all_particle(false);
29  ana->set_load_active_particle(true);
30  ana->set_save_vertex(true);
31 
32  if (debug)
33  {
34  ana->Verbosity(2);
35  }
36 
37  if (save_g4_raw)
38  {
39  ana->AddNode("BH_FORWARD_PLUS");
40  ana->AddNode("FWDDISC");
41  }
42 
44  se->registerSubsystem(ana);
45 }