Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_ReadDST_TPCML.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_ReadDST_TPCML.C
1 // $Id: $
2 
11 #ifndef MACRO_FUN4ALL_READDST_C
12 #define MACRO_FUN4ALL_READDST_C
13 
14 #include <G4_Input.C>
15 #include <G4_Tracking.C>
16 
17 #include <tpcmldatainterface/TPCMLDataInterface.h>
18 
19 #include <TROOT.h>
22 #include <fun4all/Fun4AllServer.h>
23 
24 #include <phool/recoConsts.h>
25 
26 R__LOAD_LIBRARY(libfun4all.so)
27 // Use libg4eicdst for campaign 2 DSTs
28 R__LOAD_LIBRARY(libg4dst.so)
29 // Use libg4dst for campaign 1 DSTs
30 //R__LOAD_LIBRARY(libg4dst.so)
31 R__LOAD_LIBRARY(libtpcmldatainterface.so)
32 
33 int Fun4All_ReadDST_TPCML(const int nEvents = 5,
34  // const string &inputFile = "singleElectron.lst" //
35  // const string& inputFile = "singlePion.lst"//
36  const string &inputFile = "singlePionNeg.lst" //
37 )
38 
39 {
40  //---------------
41  // Fun4All server
42  //---------------
44  se->Verbosity(1);
45 
46  // just if we set some flags somewhere in this macro
48 
49  Input::READHITS = true;
50  INPUTREADHITS::filename[0] = "DST_TRUTH_pythia8_CharmD0_3MHz-0000000002-00000.root";
51  INPUTREADHITS::filename[1] = "DST_TRKR_G4HIT_pythia8_CharmD0_3MHz-0000000002-00000.root";
52  INPUTREADHITS::filename[2] = "DST_TRKR_HIT_pythia8_CharmD0_3MHz-0000000002-00000.root";
53 // INPUTREADHITS::filename[3] = "DST_TRUTH_pythia8_CharmD0_3MHz-0000000002-00000.root";
54 
55  TPCMLDataInterface *tpcDaqEmu = new TPCMLDataInterface(
57  tpcDaqEmu->Verbosity(1);
58  tpcDaqEmu->setVertexZAcceptanceCut(200);
59  se->registerSubsystem(tpcDaqEmu);
60 
61  InputManagers();
62 
63  se->run(nEvents);
64 
65  se->End();
66 
67  delete se;
68  std::cout << "All done processing" << std::endl;
69  gSystem->Exit(0);
70  return 0;
71 }
72 #endif