StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrgSoftEtThresholdBJP.h
1 // -*- mode: c++;-*-
2 // $Id: StjTrgSoftEtThresholdBJP.h,v 1.2 2008/08/21 22:23:05 tai Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJTRGSOFTETTHRESHOLDBJP_H
5 #define STJTRGSOFTETTHRESHOLDBJP_H
6 
7 #include <StjTrgSoft.h>
8 
9 #include <StjTowerEnergyList.h>
10 #include <StjTowerEnergyListCut.h>
11 
12 #include <vector>
13 
14 class StjBEMC;
16 
18 
19 public:
20  StjTrgSoftEtThresholdBJP(StjBEMC* bemc, StjTrgBEMCJetPatchTowerIdMap* jpTowerMap, double minEt);
21  virtual ~StjTrgSoftEtThresholdBJP() { }
22 
23  bool soft();
24 
25  std::vector<int> jetPatches();
26  std::vector<int> jetPatchDsmAdc();
27  std::vector<unsigned int> jetPatchAdc();
28  std::vector<double> jetPatchEnergy();
29  std::vector<double> jetPatchEt();
30 
31 private:
32 
33  double computeEtSum(const StjTowerEnergyList& energyList);
34 
35  bool isNewEvent();
36  void read();
37 
38  StjBEMC* _bemc;
39  StjTrgBEMCJetPatchTowerIdMap* _jpTowerMap;
40  double _minEt;
41 
42  int _runNumber;
43  int _eventId;
44 
45  bool _passed;
46  std::vector<int> _jetPatches;
47  std::vector<int> _jetPatchDsmAdc;
48  std::vector<unsigned int> _jetPatchAdc;
49  std::vector<double> _jetPatchEnergy;
50  std::vector<double> _jetPatchEt;
51 
53 
54  ClassDef(StjTrgSoftEtThresholdBJP, 1)
55 
56 };
57 
58 #endif // STJTRGSOFTETTHRESHOLDBJP_H