CMS 3D CMS Logo

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, double R1Max,
20  double R2Min, double R2Max,
21  double FracLeaderMin, double FracLeaderMax,
22  double SlopeMin, double SlopeMax,
23  double OuterMin, double OuterMax, double EnergyThreshold);
24 
25  // Destructor
27 
28  // Methods for setting the status flag values
29  void hbheSetTimeFlagsFromDigi(HBHERecHitCollection *, const std::vector<HBHEDataFrame>&, const std::vector<int>&);
30 
31 
32 
33 
34  // setter functions
35  void SetExpLimits(double R1Min, double R1Max, double R2Min, double R2Max)
36  { R1Min_ = R1Min; R1Max_ = R1Max; R2Min_ = R2Max; R2Max_ = R2Max; }
37  void SetFracLeaderLimits(double FracLeaderMin, double FracLeaderMax)
38  { FracLeaderMin_ = FracLeaderMin; FracLeaderMax_ = FracLeaderMax;}
39  void SetSlopeLimits(double SlopeMin, double SlopeMax)
40  { SlopeMin_ = SlopeMin; SlopeMax_ = SlopeMax;}
41  void SetOuterLimits(double OuterMin, double OuterMax)
42  { OuterMin_ = OuterMin; OuterMax_ = OuterMax;}
44 
45 private:
46  // variables for cfg files
52 
54  double Total=0;
55  for(int i=0; i!=x.size(); Total += x.sample(i++).nominal_fC());
56  return Total;
57  }
58 
59 
60 };
61 
62 #endif
void SetExpLimits(double R1Min, double R1Max, double R2Min, double R2Max)
void SetOuterLimits(double OuterMin, double OuterMax)
int size() const
total number of samples in the digi
Definition: HBHEDataFrame.h:31
double TotalEnergyInDataFrame(const HBHEDataFrame &x)
void SetFracLeaderLimits(double FracLeaderMin, double FracLeaderMax)
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:61
HcalQIESample const & sample(int i) const
access a sample
Definition: HBHEDataFrame.h:44
void SetSlopeLimits(double SlopeMin, double SlopeMax)