6 void DoFeeTTreeSimu(Int_t nevents=100){
8 char *fname=
"minb200-100.event.root";
9 char *fileT=
"myFeeMC-minb200-100.root";
14 gSystem->Load(
"St_base");
15 gSystem->Load(
"StChain");
16 gSystem->Load(
"libglobal_Tables");
17 gSystem->Load(
"libsim_Tables");
18 gSystem->Load(
"libgen_Tables");
19 gSystem->Load(
"St_Tables");
20 gSystem->Load(
"StDbLib");
21 gSystem->Load(
"StDbBroker");
22 gSystem->Load(
"St_db_Maker");
23 gSystem->Load(
"StUtilities");
24 gSystem->Load(
"StIOMaker");
25 gSystem->Load(
"StMagF");
26 gSystem->Load(
"StarClassLibrary");
27 gSystem->Load(
"StAnalysisUtilities");
28 gSystem->Load(
"StEvent");
29 gSystem->Load(
"StTpcDb");
30 gSystem->Load(
"StEventMaker");
31 gSystem->Load(
"StMcEvent");
32 gSystem->Load(
"StMcEventMaker");
33 gSystem->Load(
"libgeometry_Tables");
34 gSystem->Load(
"StEmcUtil");
37 cout <<
" StDBLib mode enabled" << endl;
38 gSystem->Load(
"StDbLib");
39 gSystem->Load(
"StDbBroker");
40 gSystem->Load(
"St_db_Maker");
44 gSystem->Load(
"EEmc");
45 gSystem->Load(
"EEfeeRaw");
46 gSystem->Load(
"SteemcDb");
56 ioMaker->SetFile(fname);
60 ioMaker->SetBranch(
"*",0,
"0");
61 ioMaker->SetBranch(
"geantBranch",0,
"r");
62 ioMaker->SetBranch(
"eventBranch",0,
"r");
69 SteemcDbMaker *myMk1=
new SteemcDbMaker(
"eemcDBio");
70 myMk1->setSectors(1,12);
71 myMk1->setTimeStampDay(20021215);
81 TFile f(fileT,
"RECREATE");
82 TTree t(
"fee",
"A tree with FEE events");
88 Int_t initStat = chain->Init();
89 if (initStat) chain->Fatal(initStat,
"during Init()");
95 if (iev<=nevents && istat!=2)
98 cout <<
"---------------------- Processing Event : " << iev <<
" ----------------------" << endl;
99 istat = chain->
Make(iev);
100 if (istat == 2) { cout <<
"Last Event Processed. Status = " << istat << endl; }
101 if (istat == 3) { cout <<
"Error Event Processed. Status = " << istat << endl; }
111 printf(
"\n\n============== TTree closed =========\n\n");
virtual void SetIOMode(Option_t *iomode="w")
number of transactions
void setOutTTree(TTree *t)
TTree must be initialized externaly.
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...
virtual void ls(Option_t *option="") const