StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTowerEnergyListWriter.h
1 // -*- mode: c++;-*-
2 // $Id: StjTowerEnergyListWriter.h,v 1.5 2008/08/04 06:10:46 tai Exp $
3 #ifndef STJTOWERENERGYLISTWRITER_H
4 #define STJTOWERENERGYLISTWRITER_H
5 
6 #include <TObject.h>
7 
8 #include "StjTowerEnergyList.h"
9 #include <Rtypes.h>
10 
11 class TDirectory;
12 class TTree;
13 
14 class StjTowerEnergyListWriter : public TObject {
15 
16 public:
17 
18  StjTowerEnergyListWriter(const char* treeName, TDirectory* file);
19  virtual ~StjTowerEnergyListWriter() { }
20 
21  void Fill(const StjTowerEnergyList& theList);
22  void Finish();
23 
24 private:
25 
26  TDirectory* _file;
27  TTree* _tree;
28 
29  Int_t _runNumber;
30  Int_t _eventId;
31  Int_t _detectorId; // 9: BEMC, 13: EEMC
32  Int_t _nTowers;
33  Int_t _towerId[4800];
34  Double_t _towerR[4800];
35  Double_t _towerEta[4800];
36  Double_t _towerPhi[4800];
37  Double_t _vertexX;
38  Double_t _vertexY;
39  Double_t _vertexZ;
40  Double_t _energy[4800];
41  UInt_t _adc[4800];
42  Double_t _pedestal[4800];
43  Double_t _rms[4800];
44  Int_t _status[4800]; // 1 is good for BEMC. 0 is good for EEMC
45 
46  ClassDef(StjTowerEnergyListWriter, 1)
47 
48 };
49 
50 #endif // STJTOWERENERGYLISTWRITER_H