4 #include "TBenchmark.h"
5 #include "TClassTable.h"
7 #include "St_tcl_Maker/St_tcl_Maker.h"
8 #include "St_tpt_Maker/St_tpt_Maker.h"
10 #include "St_geant_Maker/St_geant_Maker.h"
11 #include "StIOMaker/StIOMaker.h"
12 #include "StEventDisplayMaker/StEventDisplayMaker.h"
13 #include "StEventMaker/StEventMaker.h"
14 #include "StAssociationMaker/StMcParameterDB.h"
15 #include "St_dst_Maker/StV0Maker.h"
16 #include "xdf2root/St_XDFFile.h"
17 #include "StTpcT0Maker/StTpcT0Maker.h"
19 gSystem->Load(
"StDetectorDbMaker");
32 class StEventDisplayMaker;
51 const char *MainFile=
"/star/institutions/rice/geurts/sim/tof/pythia_0.geant.root",
53 const char *outFileName=
"test.root"
57 gSystem->Load(
"StarRoot");
58 gSystem->Load(
"St_base");
59 gSystem->Load(
"StChain");
60 gSystem->Load(
"libglobal_Tables");
61 gSystem->Load(
"libgen_Tables");
62 gSystem->Load(
"libsim_Tables");
63 gSystem->Load(
"StUtilities");
64 gSystem->Load(
"StIOMaker");
65 gSystem->Load(
"StarClassLibrary");
66 gSystem->Load(
"StDbLib.so");
67 gSystem->Load(
"StDbBroker.so");
68 gSystem->Load(
"libStDb_Tables.so");
69 gSystem->Load(
"St_db_Maker.so");
70 gROOT->Macro(
"loadMuDst.C");
71 gSystem->Load(
"StTpcDb");
72 gSystem->Load(
"StDetectorDbMaker");
73 gSystem->Load(
"StDbUtilities");
74 gSystem->Load(
"StBFChain");
75 gSystem->Load(
"StChallenger");
76 gSystem->Load(
"StEvent");
77 gSystem->Load(
"StEventMaker");
78 gSystem->Load(
"StIOMaker");
79 gSystem->Load(
"StBTofUtil");
80 gSystem->Load(
"St_Tables");
81 gSystem->Load(
"StEmcUtil");
82 gSystem->Load(
"StAssociationMaker");
83 gSystem->Load(
"StMcAnalysisMaker");
84 gSystem->Load(
"StMcEvent");
85 gSystem->Load(
"StMcEventMaker");
86 gSystem->Load(
"St_g2t");
87 gSystem->Load(
"geometry");
88 gSystem->Load(
"St_geant_Maker");
89 gSystem->Load(
"StTableUtilities");
90 gSystem->Load(
"StBTofSimMaker");
91 gSystem->Load(
"StBTofMatchMaker");
92 gSystem->Load(
"StTofCalibMaker");
103 IOMk->SetFile(MainFile);
105 IOMk->SetBranch(
"*",0,
"0");
106 IOMk->SetBranch(
"geantBranch",0,
"r");
107 IOMk->SetBranch(
"eventBranch",0,
"r");
110 mcEventReader->doPrintEventInfo =
false;
112 mcEventReader->doUseTpc =
true;
113 mcEventReader->doUseBemc =
false;
114 mcEventReader->doUseBsmd =
false;
115 mcEventReader->doUseFtpc =
false;
116 mcEventReader->doUseSvt =
false;
117 mcEventReader->doUseRich =
false;
118 mcEventReader->doUseEemc =
false;
119 mcEventReader->doUseTof =
true;
120 mcEventReader->SetDebug(1);
124 dbMk->SetDateTime(20090401,214129);
125 cout <<
" DbMaker loading done " << endl;
129 string filename=outFileName;
131 simMaker->setBookHist(kTRUE);
132 simMaker->setHistFileName(filename);
133 simMaker->writeStEvent(kTRUE);
137 matchMaker->SetDebug(1);
146 int totalProcessedTofPoints=0;
151 for (Int_t iev=0;iev<nevents; iev++) {
152 cout <<
"****************************************** " << endl;
153 cout <<
"Working on eventNumber " << iev << endl;
154 cout <<
"****************************************** " << endl;
156 int iret = chain->
Make(iev);
158 if (iret) { cout <<
"Bad return code!" << endl;
break;}
163 int nTofs=temp->numberOfBTofHit();
164 cout<<
"MUDSTOUTPUT-- BTofHits "<<nTofs<<endl;
170 cout <<
"****************************************** " << endl;
171 cout <<
"Work done... now its time to close up shop!"<< endl;
172 cout <<
"****************************************** " << endl;
174 cout <<
"****************************************** " << endl;
175 cout <<
"total number of events " << total << endl;
176 cout <<
"****************************************** " << endl;
179 cout<<
"Total Tof Hits Processed in MuDst: "<<totalProcessedTofPoints<<endl;
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
virtual void Clear(Option_t *option="")
User defined functions.
Filling of all StMcEvent classes from g2t tables Transform all the data in the g2t tables into the co...
Bool_t doPrintMemoryInfo
lots of screen output
void setIdealGeometry(const Bool_t useIdealGeometry=kTRUE)
switch between standard and ideal MC geometry
virtual void SetActive(Bool_t k=kTRUE)
Setters for flags and switches.
virtual void LoadGeometry(const Char_t *option="detp geometry field_only")
Specifies GEANT3 geometry command.