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,
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
HBHETimeProfileStatusBitSetter::HBHETimeProfileStatusBitSetter
HBHETimeProfileStatusBitSetter()
Definition: HBHETimeProfileStatusBitSetter.cc:10
mps_fire.i
i
Definition: mps_fire.py:428
HBHETimeProfileStatusBitSetter::SetFracLeaderLimits
void SetFracLeaderLimits(double FracLeaderMin, double FracLeaderMax)
Definition: HBHETimeProfileStatusBitSetter.h:44
HBHETimeProfileStatusBitSetter::FracLeaderMin_
double FracLeaderMin_
Definition: HBHETimeProfileStatusBitSetter.h:61
edm::SortedCollection
Definition: SortedCollection.h:49
DDAxes::x
HBHETimeProfileStatusBitSetter::EnergyThreshold
double EnergyThreshold()
Definition: HBHETimeProfileStatusBitSetter.h:56
HBHETimeProfileStatusBitSetter
Definition: HBHETimeProfileStatusBitSetter.h:15
HBHETimeProfileStatusBitSetter::FracLeaderMax_
double FracLeaderMax_
Definition: HBHETimeProfileStatusBitSetter.h:61
HBHETimeProfileStatusBitSetter::R1Max_
double R1Max_
Definition: HBHETimeProfileStatusBitSetter.h:60
HBHETimeProfileStatusBitSetter::R2Max_
double R2Max_
Definition: HBHETimeProfileStatusBitSetter.h:60
HBHETimeProfileStatusBitSetter::~HBHETimeProfileStatusBitSetter
~HBHETimeProfileStatusBitSetter()
Definition: HBHETimeProfileStatusBitSetter.cc:49
IntegrityTask_cfi.Total
Total
Definition: IntegrityTask_cfi.py:44
HBHETimeProfileStatusBitSetter::SetOuterLimits
void SetOuterLimits(double OuterMin, double OuterMax)
Definition: HBHETimeProfileStatusBitSetter.h:52
HBHETimeProfileStatusBitSetter::SlopeMin_
double SlopeMin_
Definition: HBHETimeProfileStatusBitSetter.h:62
HBHEDataFrame
Definition: HBHEDataFrame.h:14
HBHETimeProfileStatusBitSetter::OuterMin_
double OuterMin_
Definition: HBHETimeProfileStatusBitSetter.h:63
HBHETimeProfileStatusBitSetter::hbheSetTimeFlagsFromDigi
void hbheSetTimeFlagsFromDigi(HBHERecHitCollection *, const std::vector< HBHEDataFrame > &, const std::vector< int > &)
Definition: HBHETimeProfileStatusBitSetter.cc:64
HBHETimeProfileStatusBitSetter::OuterMax_
double OuterMax_
Definition: HBHETimeProfileStatusBitSetter.h:63
HBHETimeProfileStatusBitSetter::EnergyThreshold_
double EnergyThreshold_
Definition: HBHETimeProfileStatusBitSetter.h:64
HBHETimeProfileStatusBitSetter::TotalEnergyInDataFrame
double TotalEnergyInDataFrame(const HBHEDataFrame &x)
Definition: HBHETimeProfileStatusBitSetter.h:66
HBHETimeProfileStatusBitSetter::SlopeMax_
double SlopeMax_
Definition: HBHETimeProfileStatusBitSetter.h:62
HBHETimeProfileStatusBitSetter::SetExpLimits
void SetExpLimits(double R1Min, double R1Max, double R2Min, double R2Max)
Definition: HBHETimeProfileStatusBitSetter.h:38
HBHETimeProfileStatusBitSetter::R2Min_
double R2Min_
Definition: HBHETimeProfileStatusBitSetter.h:60
HBHERecHit.h
HBHETimeProfileStatusBitSetter::SetSlopeLimits
void SetSlopeLimits(double SlopeMin, double SlopeMax)
Definition: HBHETimeProfileStatusBitSetter.h:48
HcalRecHitCollections.h
HBHETimeProfileStatusBitSetter::R1Min_
double R1Min_
Definition: HBHETimeProfileStatusBitSetter.h:60
HBHEDataFrame.h