8 void RunJetReader(
int nevents=10,
10 const char* jetInFile,
12 const char *filter =
"")
14 cout <<
"MuDst chain file:\t"<<file<<endl;
15 cout <<
"Jet tree file:\t"<<jetInFile<<endl;
18 gROOT->Macro(
"loadMuDst.C");
19 gSystem->Load(
"StTpcDb");
20 gSystem->Load(
"StDetectorDbMaker");
21 gSystem->Load(
"StDbUtilities");
22 gSystem->Load(
"StMcEvent");
23 gSystem->Load(
"StMcEventMaker");
24 gSystem->Load(
"StDaqLib");
25 gSystem->Load(
"StEmcRawMaker");
26 gSystem->Load(
"StEmcADCtoEMaker");
27 gSystem->Load(
"StEpcMaker");
28 gSystem->Load(
"StEmcSimulatorMaker");
29 gSystem->Load(
"StDbBroker");
30 gSystem->Load(
"St_db_Maker");
31 gSystem->Load(
"StEEmcUtil");
32 gSystem->Load(
"StEEmcDbMaker");
33 gSystem->Load(
"StSpinDbMaker");
34 gSystem->Load(
"StEmcTriggerMaker");
35 gSystem->Load(
"StMCAsymMaker");
36 gSystem->Load(
"StJets");
37 gSystem->Load(
"StJetSkimEvent");
38 gSystem->Load(
"StTriggerUtilities");
39 gSystem->Load(
"StJetEvent");
40 gSystem->Load(
"libfastjet.so");
41 gSystem->Load(
"StJetFinder");
42 gSystem->Load(
"StJetMaker");
44 cout <<
" loading done " << endl;
46 double pi = TMath::Pi();
47 cout <<
" loading done " << endl;
86 cout <<
"\nGet Chain --------"<<endl;
87 TChain* c = muDstMaker->
chain();
89 cout <<
"\nAdd Friend from file:\t"<<jetInFile<<endl;
90 c->AddFriend(
"jet",jetInFile);
92 cout <<
"\nInitTree()"<<endl;
98 for (Int_t iev=0;iev<nevents; iev++) {
99 cout <<
"****************************************** " << endl;
100 cout <<
"Working on eventNumber " << iev << endl;
101 cout <<
"*************************1***************** " << endl;
103 int iret = chain->
Make(iev);
106 cout <<
"Bad return code!" << endl;
113 cout <<
"****************************************** " << endl;
114 cout <<
"total number of events " << total << endl;
115 cout <<
"****************************************** " << endl;
virtual void InitFile(const char *file)
Recover the TTree from file and prepare for reading.
void exampleEventAna()
An example analysis method, look here for a demonstration of jet/track histogramming.
virtual void Clear(Option_t *option="")
User defined functions.
static void setLevel(unsigned int level)
sets the debug level
virtual void InitTree(TTree *tree)
TChain * chain()
In read mode, returns pointer to the chain of .MuDst.root files that where selected.