CMS 3D CMS Logo

HLTHcalTowerNoiseCleaner.h
Go to the documentation of this file.
1 #ifndef HLTHcalTowerNoiseCleaner_h
2 #define HLTHcalTowerNoiseCleaner_h
3 
19 
20 namespace edm {
22 }
23 
25 public:
27  ~HLTHcalTowerNoiseCleaner() override;
28  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
29  void produce(edm::Event&, const edm::EventSetup&) override;
30 
31 private:
35  // parameters
38  int severity_;
42  double minRBXEnergy_;
43  double minRatio_;
44  double maxRatio_;
48  int minZeros_;
51  double maxRBXEMF_;
52 
53  // imported from the RecoMET/METProducers/python/hcalnoiseinfoproducer_cfi
55 
57  std::vector<std::pair<double, double> > TS4TS5UpperCut_;
58  std::vector<std::pair<double, double> > TS4TS5LowerCut_;
59 
60  // helper function to compare noise data energies
61  struct noisedatacomp {
62  inline bool operator()(const CommonHcalNoiseRBXData& t1, const CommonHcalNoiseRBXData& t2) const {
63  return t1.energy() > t2.energy();
64  }
65  };
66  typedef std::set<CommonHcalNoiseRBXData, noisedatacomp> noisedataset_t;
67 };
68 
69 #endif //HLTHcalTowerNoiseCleaner_h
HLTHcalTowerNoiseCleaner(const edm::ParameterSet &)
~HLTHcalTowerNoiseCleaner() override
std::set< CommonHcalNoiseRBXData, noisedatacomp > noisedataset_t
edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecord > const hcalRecNumberingRecordToken_
std::vector< std::pair< double, double > > TS4TS5UpperCut_
edm::EDGetTokenT< CaloTowerCollection > m_theCaloTowerCollectionToken
bool operator()(const CommonHcalNoiseRBXData &t1, const CommonHcalNoiseRBXData &t2) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< reco::HcalNoiseRBXCollection > m_theHcalNoiseToken
HLT enums.
void produce(edm::Event &, const edm::EventSetup &) override
std::vector< std::pair< double, double > > TS4TS5LowerCut_