CMS 3D CMS Logo

HBHETimingShapedFlag.h
Go to the documentation of this file.
1 #ifndef HBHETIMINGSHAPEDFLAG_GUARD_H
2 #define HBHETIMINGSHAPEDFLAG_GUARD_H
3 
7 
9 public:
11  HBHETimingShapedFlagSetter(const std::vector<double>& tfilterEnvelope);
12  HBHETimingShapedFlagSetter(const std::vector<double>& tfilterEnvelope,
13  bool ignorelowest,
14  bool ignorehighest,
15  double win_offset,
16  double win_gain);
18  void Clear();
19 
20  void dumpInfo();
21 
22  // returns status suitable for flag setting
23  // This routine made available for reflagger code
24  //
25  int timingStatus(const HBHERecHit& hbhe);
26 
27  // Sets "HBHETimingShapedCutsBits" field in response to output
28  // from "timingStatus()"
29  //
31 
32 private:
33  // key = integer GeV (to avoid FP issues),
34  // value = low/high values for timing in ns
35  //
36  typedef std::map<int, std::pair<double, double> > TfilterEnvelope_t;
38 
39  void makeTfilterEnvelope(const std::vector<double>& v_userEnvelope);
40 
43  double win_offset_;
44  double win_gain_;
45 };
46 
47 #endif
HBHERecHit
Definition: HBHERecHit.h:13
HBHETimingShapedFlagSetter::TfilterEnvelope_t
std::map< int, std::pair< double, double > > TfilterEnvelope_t
Definition: HBHETimingShapedFlag.h:36
HBHETimingShapedFlagSetter::win_gain_
double win_gain_
Definition: HBHETimingShapedFlag.h:44
HBHETimingShapedFlagSetter
Definition: HBHETimingShapedFlag.h:8
HBHETimingShapedFlagSetter::ignorehighest_
bool ignorehighest_
Definition: HBHETimingShapedFlag.h:42
HBHETimingShapedFlagSetter::SetTimingShapedFlags
void SetTimingShapedFlags(HBHERecHit &hbhe)
Definition: HBHETimingShapedFlag.cc:144
HBHETimingShapedFlagSetter::HBHETimingShapedFlagSetter
HBHETimingShapedFlagSetter()
Definition: HBHETimingShapedFlag.cc:13
HBHETimingShapedFlagSetter::tfilterEnvelope_
TfilterEnvelope_t tfilterEnvelope_
Definition: HBHETimingShapedFlag.h:37
HBHETimingShapedFlagSetter::makeTfilterEnvelope
void makeTfilterEnvelope(const std::vector< double > &v_userEnvelope)
Definition: HBHETimingShapedFlag.cc:39
HcalCaloFlagLabels.h
HBHETimingShapedFlagSetter::Clear
void Clear()
photonIsolationHIProducer_cfi.hbhe
hbhe
Definition: photonIsolationHIProducer_cfi.py:8
HBHERecHit.h
HBHETimingShapedFlagSetter::timingStatus
int timingStatus(const HBHERecHit &hbhe)
Definition: HBHETimingShapedFlag.cc:69
HBHETimingShapedFlagSetter::~HBHETimingShapedFlagSetter
~HBHETimingShapedFlagSetter()
Definition: HBHETimingShapedFlag.cc:15
HcalRecHitCollections.h
HBHETimingShapedFlagSetter::ignorelowest_
bool ignorelowest_
Definition: HBHETimingShapedFlag.h:41
HBHETimingShapedFlagSetter::win_offset_
double win_offset_
Definition: HBHETimingShapedFlag.h:43
HBHETimingShapedFlagSetter::dumpInfo
void dumpInfo()
Definition: HBHETimingShapedFlag.cc:56