10 void MuDstChain(
const char *dir =
"/star/data35/reco/productionPP/ReversedFullField/DEV/2004/117/",
11 const char *file =
"st_physics_5117072_raw_2010005.MuDst.root",
14 const char *filter =
"",
15 const char *Eout=
"test")
20 if (gClassTable->GetID(
"TTable") < 0) {
21 gSystem->Load(
"libStar");
22 gSystem->Load(
"libPhysics");
24 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
25 loadSharedLibraries();
26 assert(gSystem->Load(
"StRFEmcTrigMaker")==0);
47 for (Int_t iev=0;iev<nevents; iev++) {
48 cout <<
"****************************************** " << endl;
49 cout <<
"Working on eventNumber " << iev << endl;
50 cout <<
"*************************1***************** " << endl;
52 int iret = chain->Make(iev);
54 EHT= trig->getEEMC_HT_ADC();
55 EJP= trig->getEEMC_JP_ADC();
56 ETOT= trig->getEEMC_TOT_ADC();
57 BHT= trig->getBEMC_HT_ADC();
58 BJP= trig->getBEMC_JP_ADC();
59 BTOT= trig->getBEMC_TOT_ADC();
60 cout <<
"In the script now!"<<endl;
61 printf(
"ETOT=%d,EHT =%d,EJP=%d\n",ETOT,EHT,EJP);
62 printf(
"BTOT=%d,BHT=%d,BJP=%d\n",BTOT,BHT,BJP);
64 BBCtrig= trig->getBBCtrig();
65 EHTtrig= trig->getEEMCtrigHT(thres);
66 cout <<
"Thres = "<< thres <<
" EHTtrig = " << EHTtrig<<endl;
67 cout <<
"BBCtrig = " << BBCtrig<<endl;
70 cout <<
"Bad return code!" << endl;
75 cout <<
"****************************************** " << endl;
76 cout <<
"total number of events " << total << endl;
77 cout <<
"****************************************** " << endl;
StMuDstMaker(const char *name="MuDst")
Default constructor.
static void setLevel(unsigned int level)
sets the debug level
TChain * chain()
In read mode, returns pointer to the chain of .MuDst.root files that where selected.