00001
00002
00003
00004 #ifndef STJJETLISTREADER_H
00005 #define STJJETLISTREADER_H
00006
00007 #include "StjTreeReaderTwoTrees.h"
00008
00009 #include <StjJetList.h>
00010
00011 #include <Rtypes.h>
00012
00013 class StjJetListReader : public StjTreeReaderTwoTrees {
00014
00015 public:
00016 StjJetListReader(TTree *jettree, TTree *fourtree)
00017 : StjTreeReaderTwoTrees(jettree, fourtree) { }
00018 virtual ~StjJetListReader() { }
00019
00020 StjJetList getList() { return _list; }
00021
00022 private:
00023
00024 void SetBranchAddress(TTree* tree) { StjTreeReaderTwoTrees::SetBranchAddress(tree); }
00025 void SetBranchAddress(TTree *jettree, TTree *fourtree);
00026
00027 void clearEntry();
00028 void readEntry();
00029
00030 StjJetList _list;
00031
00032 Int_t _jet_runNumber;
00033 Int_t _jet_eventId;
00034 Int_t _jet_nJets;
00035 Int_t _jet_jetId[128];
00036 Double_t _jet_pt[128];
00037 Double_t _jet_eta[128];
00038 Double_t _jet_phi[128];
00039 Double_t _jet_m[128];
00040 Double_t _jet_neuRt[128];
00041 Double_t _jet_vertexZ;
00042 Double_t _jet_detectorEta[128];
00043
00044 Int_t _four_runNumber;
00045 Int_t _four_eventId;
00046 Int_t _four_nFourVecs;
00047 Int_t _four_fourvecId[4096];
00048 Int_t _four_jetId[4096];
00049 Int_t _four_type[4096];
00050 Int_t _four_detectorId[4096];
00051 Short_t _four_trackId[4096];
00052 Int_t _four_towerId[4096];
00053 Int_t _four_mcparticleId[4096];
00054 Double_t _four_pt[4096];
00055 Double_t _four_eta[4096];
00056 Double_t _four_phi[4096];
00057 Double_t _four_m[4096];
00058 Double_t _four_vertexZ;
00059
00060 ClassDef(StjJetListReader, 1)
00061
00062 };
00063
00064 #endif // STJJETLISTREADER_H