StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrgSoftGetAdcEt.h
1 // -*- mode: c++;-*-
2 // $Id: StjTrgSoftGetAdcEt.h,v 1.2 2008/08/18 08:50:59 tai Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJTRGMUDSTSOFTWAREGETADCET_H
5 #define STJTRGMUDSTSOFTWAREGETADCET_H
6 
7 #include <TObject.h>
8 
9 #include <StjTowerEnergyList.h>
10 
11 #include <StjBEMC.h>
12 
13 #include <StjTowerEnergyListCut.h>
14 
15 #include <vector>
16 
17 class StjTrg;
18 
20 
21 class StjTrgSoftGetAdcEt : public TObject {
22 
23 public:
25  virtual ~StjTrgSoftGetAdcEt() { }
26 
27  std::vector<unsigned int> towerAdc();
28  std::vector<double> towerEnergy();
29  std::vector<double> towerEt();
30 
31  std::vector<unsigned int> jetPatchAdc();
32  std::vector<double> jetPatchEnergy();
33  std::vector<double> jetPatchEt();
34 
35  void setTrg(StjTrg* trg) { _trg = trg; }
36 
37 private:
38 
39  StjBEMC* _bemc;
40 
41  StjTrgBEMCJetPatchTowerIdMap* _bemcJpTowerMap;
42 
43  StjTrg* _trg;
44 
45  std::vector<unsigned int> _towerAdc;
46  std::vector<double> _towerEnergy;
47  std::vector<double> _towerEt;
48 
49  std::vector<unsigned int> _jetPatchAdc;
50  std::vector<double> _jetPatchEnergy;
51  std::vector<double> _jetPatchEt;
52 
53  int _runNumber;
54  int _eventId;
55 
56  bool isNewEvent();
57  void read();
58 
60 
61  ClassDef(StjTrgSoftGetAdcEt, 1)
62 
63 };
64 
65 #endif // STJTRGMUDSTSOFTWAREGETADCET_H
Definition: StjTrg.h:11