00001
00002
00003 #ifndef STJTRGHTWRITER_H
00004 #define STJTRGHTWRITER_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 StjTrgHTWriter : public StjTrgWriter {
00018
00019 public:
00020
00021 StjTrgHTWriter(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 ~StjTrgHTWriter() { }
00028
00029 private:
00030
00031 virtual void createBranch_trgSpecific(TTree* tree);
00032 virtual void fillBranch_trgSpecific();
00033
00034 Int_t _nTowers;
00035 Int_t _towerId[4800];
00036 Int_t _towerDsmAdc[4800];
00037 UInt_t _towerAdc[4800];
00038 Double_t _towerEnergy[4800];
00039 Double_t _towerEt[4800];
00040
00041 StjTrg* _trg;
00042 ClassDef(StjTrgHTWriter, 1)
00043
00044 };
00045
00046 #endif // STJTRGHTWRITER_H