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