8 void TestIOMaker(Int_t nevents=3,
10 const char* MainFile=
"/star/data22/ITTF/data/simple_geant/DEV_10_8_01/*.event.root")
21 cout <<
"Loading St_base"<<endl;
22 gSystem->Load(
"St_base");
24 cout <<
"Loading StChain"<<endl;
25 gSystem->Load(
"StChain");
27 cout <<
"Loading St_Tables"<<endl;
28 gSystem->Load(
"St_Tables");
30 cout <<
"Loading StUtilities"<<endl;
31 gSystem->Load(
"StUtilities");
33 cout <<
"Loading StIOMaker"<<endl;
34 gSystem->Load(
"StIOMaker");
36 cout <<
"Loading StarClassLibrary"<<endl;
37 gSystem->Load(
"StarClassLibrary");
39 cout <<
"Loading DataBase"<<endl;
40 gSystem->Load(
"StDbUtilities");
41 gSystem->Load(
"StDbLib");
42 gSystem->Load(
"StDbBroker");
43 gSystem->Load(
"St_db_Maker");
44 gSystem->Load(
"StTpcDb");
46 cout <<
"Loading StEvent"<<endl;
47 gSystem->Load(
"StEvent");
49 cout <<
"Loading StEventMaker"<<endl;
50 gSystem->Load(
"StEventMaker");
52 cout <<
"Loading StEmcUtil"<<endl;
53 gSystem->Load(
"StEmcUtil");
55 cout <<
"Loading StMcEvent"<<endl;
56 gSystem->Load(
"StMcEvent");
58 cout <<
"Loading StMcEventMaker"<<endl;
59 gSystem->Load(
"StMcEventMaker");
61 cout <<
"Loading AssociationMaker"<<endl;
62 gSystem->Load(
"StAssociationMaker");
74 ioMaker->SetBranch(
"*",0,
"0");
75 ioMaker->SetBranch(
"geantBranch",0,
"r");
76 ioMaker->SetBranch(
"dstBranch",0,
"r");
77 ioMaker->SetBranch(
"runcoBranch",0,
"r");
80 const char* calibDB =
"MySQL:StarDb";
81 const char* paramsDB =
"$STAR/StarDb";
83 calibMk->SetDateTime(
"year_2b");
92 eventReader->doPrintEventInfo = 0;
100 cout <<
"Calling Init() Methods "<<endl;
103 cout <<
"Starting Event Loop"<<endl;
106 EventLoop:
if (iev<=nevents && !istat) {
108 cout <<
"---------------------- Processing Event : " << iev << endl;
109 istat = chain->
Make(iev);
111 cout <<
"Last Event Processed. Status = " << istat << endl;
113 iev++;
goto EventLoop;
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...