CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HBHETimeProfileStatusBitSetter.h
Go to the documentation of this file.
1 #ifndef HCALHBHETIMESTATUSFROMDIGIS_H
2 #define HCALHBHETIMESTATUSFROMDIGIS_H 1
3 
7 
16 public:
19  HBHETimeProfileStatusBitSetter(double R1Min,
20  double R1Max,
21  double R2Min,
22  double R2Max,
23  double FracLeaderMin,
24  double FracLeaderMax,
25  double SlopeMin,
26  double SlopeMax,
27  double OuterMin,
28  double OuterMax,
29  double EnergyThreshold);
30 
31  // Destructor
33 
34  // Methods for setting the status flag values
35  void hbheSetTimeFlagsFromDigi(HBHERecHitCollection*, const std::vector<HBHEDataFrame>&, const std::vector<int>&);
36 
37  // setter functions
38  void SetExpLimits(double R1Min, double R1Max, double R2Min, double R2Max) {
39  R1Min_ = R1Min;
40  R1Max_ = R1Max;
41  R2Min_ = R2Max;
42  R2Max_ = R2Max;
43  }
44  void SetFracLeaderLimits(double FracLeaderMin, double FracLeaderMax) {
45  FracLeaderMin_ = FracLeaderMin;
46  FracLeaderMax_ = FracLeaderMax;
47  }
48  void SetSlopeLimits(double SlopeMin, double SlopeMax) {
49  SlopeMin_ = SlopeMin;
50  SlopeMax_ = SlopeMax;
51  }
52  void SetOuterLimits(double OuterMin, double OuterMax) {
53  OuterMin_ = OuterMin;
54  OuterMax_ = OuterMax;
55  }
56  double EnergyThreshold() { return EnergyThreshold_; }
57 
58 private:
59  // variables for cfg files
65 
67  double Total = 0;
68  for (int i = 0; i != x.size(); Total += x.sample(i++).nominal_fC())
69  ;
70  return Total;
71  }
72 };
73 
74 #endif
void SetExpLimits(double R1Min, double R1Max, double R2Min, double R2Max)
void SetOuterLimits(double OuterMin, double OuterMax)
double TotalEnergyInDataFrame(const HBHEDataFrame &x)
void SetFracLeaderLimits(double FracLeaderMin, double FracLeaderMax)
constexpr HcalQIESample const & sample(int i) const
access a sample
Definition: HBHEDataFrame.h:40
void hbheSetTimeFlagsFromDigi(HBHERecHitCollection *, const std::vector< HBHEDataFrame > &, const std::vector< int > &)
constexpr double nominal_fC() const
get the nominal FC (no calibrations applied)
Definition: HcalQIESample.h:45
constexpr int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:27
void SetSlopeLimits(double SlopeMin, double SlopeMax)