CMS 3D CMS Logo

HLTHcalTowerNoiseCleaner.h
Go to the documentation of this file.
1 #ifndef HLTHcalTowerNoiseCleaner_h
2 #define HLTHcalTowerNoiseCleaner_h
3 
14 
18 
19 namespace edm {
21 }
22 
24 public:
26  ~HLTHcalTowerNoiseCleaner() override;
27  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
28  void produce(edm::Event&, const edm::EventSetup&) override;
29 
30 private:
33  // parameters
36  int severity_;
40  double minRBXEnergy_;
41  double minRatio_;
42  double maxRatio_;
46  int minZeros_;
49  double maxRBXEMF_;
50 
51  // imported from the RecoMET/METProducers/python/hcalnoiseinfoproducer_cfi
52  double minRecHitE_, minLowHitE_, minHighHitE_, minR45HitE_;
53 
55  std::vector<std::pair<double, double> > TS4TS5UpperCut_;
56  std::vector<std::pair<double, double> > TS4TS5LowerCut_;
57 
58  // helper function to compare noise data energies
59  struct noisedatacomp {
60  inline bool operator()(const CommonHcalNoiseRBXData& t1, const CommonHcalNoiseRBXData& t2) const {
61  return t1.energy() > t2.energy();
62  }
63  };
64  typedef std::set<CommonHcalNoiseRBXData, noisedatacomp> noisedataset_t;
65 };
66 
67 #endif //HLTHcalTowerNoiseCleaner_h
bool operator()(const CommonHcalNoiseRBXData &t1, const CommonHcalNoiseRBXData &t2) const
std::set< CommonHcalNoiseRBXData, noisedatacomp > noisedataset_t
std::vector< std::pair< double, double > > TS4TS5UpperCut_
edm::EDGetTokenT< CaloTowerCollection > m_theCaloTowerCollectionToken
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< reco::HcalNoiseRBXCollection > m_theHcalNoiseToken
double energy(void) const
Definition: HcalNoiseAlgo.h:24
HLT enums.
std::vector< std::pair< double, double > > TS4TS5LowerCut_