00001
00002
00003 #ifndef STJTRGJPWRITER_H
00004 #define STJTRGJPWRITER_H
00005
00006 #include "StjTrgWriter.h"
00007
00008 #include <Rtypes.h>
00009
00010 class TDirectory;
00011 class TTree;
00012
00013 #include <string>
00014
00015 class StjTrg;
00016
00017 class StjTrgJPWriter : public StjTrgWriter {
00018
00019 public:
00020
00021 StjTrgJPWriter(const char *treeName, const char* treeTitle,
00022 TDirectory* file, StjTrg* trg,
00023 StjTrgPassCondition* fillCondition)
00024 : StjTrgWriter(treeName, treeTitle, file, trg, fillCondition)
00025 , _trg(trg)
00026 { }
00027 virtual ~StjTrgJPWriter() { }
00028
00029 private:
00030
00031 virtual void createBranch_trgSpecific(TTree* tree);
00032 virtual void fillBranch_trgSpecific();
00033
00034 Int_t _nJetPatches;
00035 Int_t _jetPatchId[12];
00036 Int_t _jetPatchDsmAdc[12];
00037 UInt_t _jetPatchAdc[12];
00038 Double_t _jetPatchEnergy[12];
00039 Double_t _jetPatchEt[12];
00040
00041 StjTrg* _trg;
00042 ClassDef(StjTrgJPWriter, 1)
00043
00044 };
00045
00046 #endif // STJTRGJPWRITER_H