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
void SetLong_Energy_Thresh(const std::vector< double > &x)
std::vector< double > GetLong_Energy_Thresh()
std::vector< double > long_ET_Thresh
std::vector< double > long_Energy_Thresh
std::vector< double > short_R
std::vector< double > GetShort_ET_Thresh()
std::vector< double > GetLong_ET_Thresh()
void HFSetFlagFromPET(HFRecHit &hf, HFRecHitCollection &rec, const HcalChannelQuality *myqual, const HcalSeverityLevelComputer *mySeverity)
std::vector< double > long_R
std::vector< double > GetLong_R()
double CalcThreshold(double abs_energy, const std::vector< double > &params)
std::vector< double > long_R_29
void SetLong_ET_Thresh(const std::vector< double > &x)
std::vector< double > GetShort_R()
void SetLong_R(const std::vector< double > &x)
std::vector< double > short_ET_Thresh
std::vector< double > short_Energy_Thresh
std::vector< double > GetShort_Energy_Thresh()
void SetShort_R(const std::vector< double > &x)
void SetShort_ET_Thresh(const std::vector< double > &x)
void SetShort_Energy_Thresh(const std::vector< double > &x)
std::vector< double > short_R_29