CMS 3D CMS Logo

HcalHF_PETalgorithm.h
Go to the documentation of this file.
1 #ifndef GUARD_HCALHF_PETALGORITHM_H
2 #define GUARD_HCALHF_PETALGORITHM_H 1
3 
7 
8 // Forward declarations
11 
22 public:
25 
26  HcalHF_PETalgorithm(const std::vector<double>& short_R,
27  const std::vector<double>& short_Energy,
28  const std::vector<double>& short_ET,
29  const std::vector<double>& long_R,
30  const std::vector<double>& long_Energy,
31  const std::vector<double>& long_ET,
33  // special case for ieta=29
34  const std::vector<double>& short_R_29,
35  const std::vector<double>& long_R_29);
36 
37  // Destructor
39 
41  HFRecHitCollection& rec,
42  const HcalChannelQuality* myqual,
43  const HcalSeverityLevelComputer* mySeverity);
44  double CalcThreshold(double abs_energy, const std::vector<double>& params);
45 
46  void SetShort_R(const std::vector<double>& x) { short_R = x; }
47  void SetShort_ET_Thresh(const std::vector<double>& x) { short_ET_Thresh = x; }
48  void SetShort_Energy_Thresh(const std::vector<double>& x) { short_Energy_Thresh = x; }
49  void SetLong_R(const std::vector<double>& x) { long_R = x; }
50  void SetLong_ET_Thresh(const std::vector<double>& x) { long_ET_Thresh = x; }
51  void SetLong_Energy_Thresh(const std::vector<double>& x) { long_Energy_Thresh = x; }
52 
53  std::vector<double> GetShort_R() { return short_R; }
54  std::vector<double> GetShort_ET_Thresh() { return short_ET_Thresh; }
55  std::vector<double> GetShort_Energy_Thresh() { return short_Energy_Thresh; }
56  std::vector<double> GetLong_R() { return long_R; }
57  std::vector<double> GetLong_ET_Thresh() { return long_ET_Thresh; }
58  std::vector<double> GetLong_Energy_Thresh() { return long_Energy_Thresh; }
59 
60  double bit() { return HcalCaloFlagLabels::HFLongShort; }
61 
62 private:
63  std::vector<double> short_R;
64  std::vector<double> short_ET_Thresh;
65  std::vector<double> short_Energy_Thresh;
66 
67  std::vector<double> long_R;
68  std::vector<double> long_ET_Thresh;
69  std::vector<double> long_Energy_Thresh;
71  std::vector<double> short_R_29;
72  std::vector<double> long_R_29;
73 };
74 
75 #endif
HcalHF_PETalgorithm::short_R
std::vector< double > short_R
Definition: HcalHF_PETalgorithm.h:63
HcalHF_PETalgorithm::long_ET_Thresh
std::vector< double > long_ET_Thresh
Definition: HcalHF_PETalgorithm.h:68
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
HcalHF_PETalgorithm::long_R
std::vector< double > long_R
Definition: HcalHF_PETalgorithm.h:67
edm::SortedCollection
Definition: SortedCollection.h:49
HcalChannelQuality
Definition: HcalChannelQuality.h:17
DDAxes::x
HcalHF_PETalgorithm::bit
double bit()
Definition: HcalHF_PETalgorithm.h:60
HcalHF_PETalgorithm::HFSetFlagFromPET
void HFSetFlagFromPET(HFRecHit &hf, HFRecHitCollection &rec, const HcalChannelQuality *myqual, const HcalSeverityLevelComputer *mySeverity)
Definition: HcalHF_PETalgorithm.cc:67
HcalHF_PETalgorithm::long_R_29
std::vector< double > long_R_29
Definition: HcalHF_PETalgorithm.h:72
HcalHF_PETalgorithm::SetLong_ET_Thresh
void SetLong_ET_Thresh(const std::vector< double > &x)
Definition: HcalHF_PETalgorithm.h:50
HcalHF_PETalgorithm::SetShort_R
void SetShort_R(const std::vector< double > &x)
Definition: HcalHF_PETalgorithm.h:46
HcalHF_PETalgorithm::GetLong_R
std::vector< double > GetLong_R()
Definition: HcalHF_PETalgorithm.h:56
photonIsolationHIProducer_cfi.hf
hf
Definition: photonIsolationHIProducer_cfi.py:9
HFRecHit
Definition: HFRecHit.h:11
HFRecHit.h
HcalSeverityLevelComputer
Definition: HcalSeverityLevelComputer.h:24
HcalHF_PETalgorithm::short_R_29
std::vector< double > short_R_29
Definition: HcalHF_PETalgorithm.h:71
HcalHF_PETalgorithm::SetShort_Energy_Thresh
void SetShort_Energy_Thresh(const std::vector< double > &x)
Definition: HcalHF_PETalgorithm.h:48
HLT_FULL_cff.HcalAcceptSeverityLevel
HcalAcceptSeverityLevel
Definition: HLT_FULL_cff.py:8459
HcalHF_PETalgorithm::short_Energy_Thresh
std::vector< double > short_Energy_Thresh
Definition: HcalHF_PETalgorithm.h:65
HcalCaloFlagLabels.h
HcalHF_PETalgorithm::~HcalHF_PETalgorithm
~HcalHF_PETalgorithm()
Definition: HcalHF_PETalgorithm.cc:65
HcalHF_PETalgorithm::GetShort_R
std::vector< double > GetShort_R()
Definition: HcalHF_PETalgorithm.h:53
HcalHF_PETalgorithm::GetShort_ET_Thresh
std::vector< double > GetShort_ET_Thresh()
Definition: HcalHF_PETalgorithm.h:54
HcalHF_PETalgorithm::HcalAcceptSeverityLevel_
int HcalAcceptSeverityLevel_
Definition: HcalHF_PETalgorithm.h:70
HcalHF_PETalgorithm::long_Energy_Thresh
std::vector< double > long_Energy_Thresh
Definition: HcalHF_PETalgorithm.h:69
HcalHF_PETalgorithm::GetLong_ET_Thresh
std::vector< double > GetLong_ET_Thresh()
Definition: HcalHF_PETalgorithm.h:57
HcalHF_PETalgorithm::GetLong_Energy_Thresh
std::vector< double > GetLong_Energy_Thresh()
Definition: HcalHF_PETalgorithm.h:58
HcalHF_PETalgorithm::CalcThreshold
double CalcThreshold(double abs_energy, const std::vector< double > &params)
Definition: HcalHF_PETalgorithm.cc:151
HcalHF_PETalgorithm::HcalHF_PETalgorithm
HcalHF_PETalgorithm()
Definition: HcalHF_PETalgorithm.cc:13
HcalHF_PETalgorithm::SetLong_Energy_Thresh
void SetLong_Energy_Thresh(const std::vector< double > &x)
Definition: HcalHF_PETalgorithm.h:51
HcalRecHitCollections.h
HcalCaloFlagLabels::HFLongShort
Definition: HcalCaloFlagLabels.h:37
HcalHF_PETalgorithm
Definition: HcalHF_PETalgorithm.h:21
HcalHF_PETalgorithm::SetShort_ET_Thresh
void SetShort_ET_Thresh(const std::vector< double > &x)
Definition: HcalHF_PETalgorithm.h:47
HcalHF_PETalgorithm::short_ET_Thresh
std::vector< double > short_ET_Thresh
Definition: HcalHF_PETalgorithm.h:64
HcalHF_PETalgorithm::GetShort_Energy_Thresh
std::vector< double > GetShort_Energy_Thresh()
Definition: HcalHF_PETalgorithm.h:55
HcalHF_PETalgorithm::SetLong_R
void SetLong_R(const std::vector< double > &x)
Definition: HcalHF_PETalgorithm.h:49