00001
00002
00003 #ifndef STJJETLISTWRITER_H
00004 #define STJJETLISTWRITER_H
00005
00006 #include <TObject.h>
00007
00008 #include "StjFourVecList.h"
00009 #include "StjJetList.h"
00010
00011 #include <Rtypes.h>
00012
00013 class TDirectory;
00014 class TTree;
00015
00016
00017 class StjJetListWriter : public TObject {
00018
00019 public:
00020
00021 StjJetListWriter(const char* jetTreeName, const char* jetFourVecTreeName, TDirectory* file);
00022 virtual ~StjJetListWriter() { }
00023
00024 void Fill(const StjJetList& jetList);
00025 void Finish();
00026
00027 private:
00028
00029 void fillFourVecTree(int jetId, const StjFourVecList& fourVecList);
00030
00031 TDirectory* _file;
00032 TTree* _jetTree;
00033 TTree* _jetFourVecTree;
00034
00035 Int_t _jet_runNumber;
00036 Int_t _jet_eventId;
00037 Int_t _jet_nJets;
00038 Int_t _jet_jetId[128];
00039 Double_t _jet_pt[128];
00040 Double_t _jet_eta[128];
00041 Double_t _jet_phi[128];
00042 Double_t _jet_m[128];
00043 Double_t _jet_neuRt[128];
00044 Double_t _jet_vertexZ;
00045 Double_t _jet_detectorEta[128];
00046
00047 Int_t _four_runNumber;
00048 Int_t _four_eventId;
00049 Int_t _four_nFourVecs;
00050 Int_t _four_fourvecId[4096];
00051 Int_t _four_jetId[4096];
00052 Int_t _four_type[4096];
00053 Int_t _four_detectorId[4096];
00054 Short_t _four_trackId[4096];
00055 Int_t _four_towerId[4096];
00056 Int_t _four_mcparticleId[4096];
00057 Double_t _four_pt[4096];
00058 Double_t _four_eta[4096];
00059 Double_t _four_phi[4096];
00060 Double_t _four_m[4096];
00061 Double_t _four_vertexZ;
00062
00063 int _ifourvec;
00064
00065 ClassDef(StjJetListWriter, 1)
00066
00067 };
00068
00069 #endif // STJJETLISTWRITER_H