58 gSystem->Load(
"St_base");
59 gSystem->Load(
"StUtilities");
60 gSystem->Load(
"St_Tables");
62 gSystem->Load(
"StChain");
63 gSystem->Load(
"StIOMaker");
64 gSystem->Load(
"StarClassLibrary");
65 gSystem->Load(
"StEvent");
66 gSystem->Load(
"StarMagField");
67 gSystem->Load(
"StMagF");
68 gSystem->Load(
"StDetectorDbMaker");
69 gSystem->Load(
"StTpcDb");
72 gSystem->Load(
"StStrangeMuDstMaker");
85 const Char_t *file =
"/afs/rhic.bnl.gov/star/data/samples/hc_standard.40_evts.dst.root";
91 const Int_t Nevents = 10;
97 StIOMaker IOMaker(
"IO",
"r",files,
"bfcTree");
108 IOMaker.SetBranch(
"*",0,
"0");
109 IOMaker.SetBranch(
"runcoBranch",0,
"r");
112 IOMaker.SetBranch(
"eventBranch",0,
"r");
119 strangeDst.SetWrite();
124 Int_t istatus = chain.Init();
125 if( istatus ) { chain.Fatal(istatus,
"on init");
return; }
128 for( Int_t i=0; (i<Nevents) && (istatus!=2); i++ ) {
129 switch (istatus = chain.
Make(i)) {
131 case 2: { gMessMgr->Info(
"Last event from input.");
break; }
132 case 3: { gMessMgr->Error() <<
"Event " << i <<
" had error " <<
133 istatus <<
". Now skipping event."; gMessMgr->Print();
break; }
134 default: { gMessMgr->Warning() <<
"Event " << i <<
" returned status " <<
135 istatus <<
". Continuing."; gMessMgr->Print(); }
137 if( i != Nevents) chain.
Clear();
138 gMessMgr->Info() <<
"*** Finished processing event " << i;
148 void makeStrangeMuDst() {
virtual void Clear(Option_t *option="")
User defined functions.