11 const char* jetInFile =
"blah.jets.root",
12 const char* skimInFile =
"blah.skim.root"
15 cout <<
"hello world"<<endl;
16 cout <<
"Jet tree file:\t"<<jetInFile<<endl;
17 cout <<
"SkimEvent tree file:\t"<<skimInFile<<endl;
19 gSystem->Load(
"StJetSkimEvent");
20 gSystem->Load(
"StJets");
22 gROOT->Macro(
"loadMuDst.C");
23 gSystem->Load(
"StTpcDb");
24 gSystem->Load(
"StDetectorDbMaker");
25 gSystem->Load(
"StDbUtilities");
26 gSystem->Load(
"StMcEvent");
27 gSystem->Load(
"StMcEventMaker");
28 gSystem->Load(
"StMCAsymMaker");
29 gSystem->Load(
"StDaqLib");
30 gSystem->Load(
"StEmcRawMaker");
31 gSystem->Load(
"StEmcADCtoEMaker");
32 gSystem->Load(
"StEpcMaker");
33 gSystem->Load(
"StEmcSimulatorMaker");
34 gSystem->Load(
"StDbBroker");
35 gSystem->Load(
"St_db_Maker");
36 gSystem->Load(
"StEEmcUtil");
37 gSystem->Load(
"StEEmcDbMaker");
38 gSystem->Load(
"StSpinDbMaker");
39 gSystem->Load(
"StEmcTriggerMaker");
40 gSystem->Load(
"StTriggerUtilities");
41 gSystem->Load(
"libfastjet.so");
42 gSystem->Load(
"StJetFinder");
43 gSystem->Load(
"StJetEvent");
44 gSystem->Load(
"StRandomSelector");
45 gSystem->Load(
"StJetMaker");
47 cout <<
" loading done " << endl;
66 TTree* jetTree = jetReader->
tree();
67 int ntotal = jetTree->GetEntries();
69 for (Int_t iev=0; iev<nevents && iev<ntotal; iev++) {
70 cout <<
"------------------------------- Working on eventNumber " << iev << endl;
72 int iret = chain->
Make(iev);
75 cout <<
"Bad return code!" << endl;
82 cout <<
"****************************************** " << endl;
83 cout <<
"total number of events " << total << endl;
84 cout <<
"****************************************** " << endl;
virtual void InitJetSkimFile(const char *file)
Recover the "fast" tree of StJetSkimEvent.
int preparedForDualRead()
Check if we are all ready to read the Skim and StjJet trees together.
void exampleFastAna()
An example analysis method to read StJetSkimEvent and StJets trees together.
virtual void InitFile(const char *file)
Recover the TTree from file and prepare for reading.
virtual void Clear(Option_t *option="")
User defined functions.
TTree * tree() const
Access to the StJets tree.