00001
00002
00003
00004
00005
00006
00007 #ifndef STJETREADER_H
00008 #define STJETREADER_H
00009
00010 class TTree;
00011 class TFile;
00012 class StJets;
00013 class StJetSkimEvent;
00014
00015 #include "StMaker.h"
00016
00028 class StJetReader : public StMaker
00029 {
00030 public:
00032 StJetReader(const char* name = "JetReader");
00033 virtual ~StJetReader();
00034
00035 virtual Int_t Init();
00036 virtual Int_t Make();
00037 virtual Int_t Finish();
00038
00040 virtual void InitFile(const char* file);
00041
00043 virtual void InitJetSkimFile(const char* file);
00044
00047 virtual void InitTree(TTree* tree);
00048
00050 int preparedForDualRead();
00051
00053 int numberOfBranches() const;
00054 const char* branchName(int i) const;
00055 StJets* getStJets(int i) const;
00056 StJets* getStJets(const char* bname) const;
00057
00059 void exampleEventAna();
00060
00062 void exampleFastAna();
00063
00065 TTree* tree() const {return mTree;}
00066
00068 TTree* skimTree() const {return mSkimTree;}
00069
00071 StJetSkimEvent* skimEvent() const {return mSkimEvent;}
00072
00073 private:
00074 TFile* mFile;
00075 TTree* mTree;
00076 TFile* mSkimFile;
00077 TTree* mSkimTree;
00078 bool mValid;
00079 StJetSkimEvent* mSkimEvent;
00080
00081 ofstream* mOfstream;
00082
00083 ClassDef(StJetReader,0);
00084 };
00085
00086 #endif // STJETREADER_H