7 void RunJetSimuSkimReader(
int nevents=100,
8 const char* jetInFile =
"/star/institutions/uky/jettrees/jets_pt35_01.root",
9 const char* skimInFile =
"/star/institutions/uky/jettrees/skim_pt35_01.root",
10 const char* histfile =
"pt35.hist.root")
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(
"StTriggerUtilities");
36 gSystem->Load(
"StMCAsymMaker");
37 gSystem->Load(
"StJetFinder");
38 gSystem->Load(
"StJetSkimEvent");
39 gSystem->Load(
"StJets");
40 gSystem->Load(
"StJetMaker");
42 double pi = atan(1.0)*4.0;
43 cout <<
" loading done " << endl;
47 gMessMgr->SwitchOn(
"D");
48 gMessMgr->SwitchOff(
"I");
66 for (Int_t iev=0;iev<nevents; iev++) {
67 cout <<
"****************************************** " << endl;
68 cout <<
"Working on eventNumber " << iev << endl;
69 cout <<
"*************************1***************** " << endl;
71 int iret = chain->
Make(iev);
74 cout <<
"Bad return code!" << endl;
81 cout <<
"****************************************** " << endl;
82 cout <<
"total number of events " << total << endl;
83 cout <<
"****************************************** " << endl;
86 fd=
new TFile(histfile,
"recreate");
87 cout<<
"Opening "<<histfile<<endl;
89 cout<<
"Open Baby!"<<endl;
91 printf(
"%d histos are written to '%s' ...\n",HList->GetEntries(),fd->GetName());
98 TString path(gROOT->GetMacroPath());
99 path = TString(gSystem->Getenv(
"STAR")) +
"/StRoot/StJetMaker/macros:" + path;
100 path =
"./StRoot/StJetMaker/macros:" + path;
101 path =
"./StJetMaker/macros:" + path;
102 path =
"./macros:" + path;
103 path =
"../macros:" + path;
105 gROOT->SetMacroPath(path);
virtual void Clear(Option_t *option="")
User defined functions.
virtual void InitJetSkimFile(const char *file)
Recover the "fast" tree of StJetSkimEvent.
virtual void InitFile(const char *file)
Recover the TTree from file and prepare for reading.
int preparedForDualRead()
Check if we are all ready to read the Skim and Jet trees together.