10 #if !defined(ST_SPIN_TREE_READER)
11 #define ST_SPIN_TREE_READER
16 #include "TEventList.h"
18 #include "StSpinPool/StJetSkimEvent/StJetSkimEvent.h"
19 #include "StSpinPool/StJets/StJet.h"
20 #include "StSpinPool/StChargedPionAnalysisMaker/StChargedPionTrack.h"
21 #include "TPi0Event.h"
22 #include "StPrimaryElectron.h"
23 #include "StGlobalElectron.h"
33 void selectDataset(
const char *path);
34 void selectFile(
const char *path);
35 void selectFile(std::string & path);
38 void GetEntry(
long i);
42 bool connectNeutralJets;
43 bool connectChargedPions;
44 bool connectBemcPions;
45 bool connectBemcElectrons;
46 bool connectEemcPions;
49 void selectRunlist(
const char *path);
50 void selectRun(
int runnumber);
51 void removeRun(
int runnumber);
53 void selectTrigger(
int trigger);
55 bool requireShouldFire;
57 const TEventList* eventList()
const {
return mEventList;}
58 void setEventList(TEventList *elist) {mEventList = elist;}
61 const TChain* chain()
const {
return mChain;}
65 int nJets() {
return mConeJets->GetEntries();}
66 const TClonesArray* jets()
const {
return mConeJets;}
67 const StJet* jet(
int i)
const {
return (
StJet*)mConeJets->At(i);}
69 int nNeutralJets() {
return mConeJetsEMC->GetEntries();}
70 const TClonesArray* neutralJets()
const {
return mConeJetsEMC;}
71 const StJet* neutralJet(
int i)
const {
return (
StJet*)mConeJetsEMC->At(i);}
73 int nChargedPions() {
return mChargedPions->GetEntries();}
74 const TClonesArray* chargedPions()
const {
return mChargedPions;}
77 int nBemcPions() {
return mBemcPions->GetEntries();}
78 const TClonesArray* bemcPions()
const {
return mBemcPions;}
81 int nBemcElectrons() {
return mBemcElectrons->GetEntries();}
82 const TClonesArray* bemcElectrons()
const {
return mBemcElectrons;}
85 int nBemcGlobalElectrons() {
return mBemcGlobalElectrons->GetEntries();}
86 const TClonesArray* bemcGlobalElectrons()
const {
return mBemcGlobalElectrons;}
95 TClonesArray *mConeJets;
96 TClonesArray *mConeJetsEMC;
97 TClonesArray *mChargedPions;
98 TClonesArray *mBemcPions;
99 TClonesArray *mBemcElectrons;
100 TClonesArray *mBemcGlobalElectrons;
101 TClonesArray *mEemcPions;
103 std::map<int,std::string> mFileList;
104 std::set<int> mRunList;
105 std::set<int> mTriggerList;
108 TEventList *mEventList;
111 TChain *mChainConeJets;
112 TChain *mChainConeJetsEMC;
113 TChain *mChainChargedPions;
114 TChain *mChainBemcPions;
115 TChain *mChainBemcElectrons;
116 TChain *mChainEemcPions;
118 std::string mCurrentFileName;