StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrgReader.h
1 // -*- mode: c++;-*-
2 // $Id: StjTrgReader.h,v 1.5 2008/08/28 04:57:08 tai Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJTRGREADER_H
5 #define STJTRGREADER_H
6 
7 #include "StjTreeReader.h"
8 
9 #include <Rtypes.h>
10 
11 #include <vector>
12 
13 class StjTrgReader : public StjTreeReader {
14 
15 public:
16  StjTrgReader(TTree *tree) : StjTreeReader(tree) { }
17  virtual ~StjTrgReader() { }
18 
19  int id() const { return __id; }
20  int runNumber() const { return __runNumber; }
21  int eventId() const { return __eventId; }
22  bool hard() const { return __hard; }
23  bool soft() const { return __soft; }
24  bool passed() const { return __passed; }
25  double prescale() const { return __prescale; }
26  double vertexZ() const { return __vertexZ; }
27 
28  std::vector<int> towers() const { return __towers; }
29  std::vector<int> towerDsmAdc() const { return __towerDsmAdc; }
30  std::vector<unsigned int> towerAdc() const { return __towerAdc; }
31  std::vector<double> towerEnergy() const { return __towerEnergy; }
32  std::vector<double> towerEt() const { return __towerEt; }
33 
34  std::vector<int> jetPatches() const { return __jetPatches; }
35  std::vector<int> jetPatchDsmAdc() const { return __jetPatchDsmAdc; }
36  std::vector<unsigned int> jetPatchAdc() const { return __jetPatchAdc; }
37  std::vector<double> jetPatchEnergy() const { return __jetPatchEnergy; }
38  std::vector<double> jetPatchEt() const { return __jetPatchEt; }
39 
40 private:
41 
42  void SetBranchAddress(TTree *tree);
43 
44  void clearEntry();
45  void readEntry();
46 
47  Int_t _runNumber;
48  Int_t _eventId;
49  Double_t _vertexZ;
50  Int_t _trigID;
51  Double_t _prescale;
52  Int_t _passed;
53  Int_t _hard;
54  Int_t _soft;
55 
56  Int_t _nTowers;
57  Int_t _towerId[4800];
58  Int_t _towerDsmAdc[4800];
59  UInt_t _towerAdc[4800];
60  Double_t _towerEnergy[4800];
61  Double_t _towerEt[4800];
62 
63  Int_t _nJetPatches;
64  Int_t _jetPatchId[12];
65  Int_t _jetPatchDsmAdc[12];
66  UInt_t _jetPatchAdc[12];
67  Double_t _jetPatchEnergy[12];
68  Double_t _jetPatchEt[12];
69 
70  int __id;
71  int __runNumber;
72  int __eventId;
73  bool __hard;
74  bool __soft;
75  bool __passed;
76  double __prescale;
77  double __vertexZ;
78 
79  std::vector<int> __towers;
80  std::vector<int> __towerDsmAdc;
81  std::vector<unsigned int> __towerAdc;
82  std::vector<double> __towerEnergy;
83  std::vector<double> __towerEt;
84 
85  std::vector<int> __jetPatches;
86  std::vector<int> __jetPatchDsmAdc;
87  std::vector<unsigned int> __jetPatchAdc;
88  std::vector<double> __jetPatchEnergy;
89  std::vector<double> __jetPatchEt;
90 
91  ClassDef(StjTrgReader, 1)
92 
93 };
94 
95 #endif // STJTRGREADER_H