CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
bool operator()(const CommonHcalNoiseRBXData &t1, const CommonHcalNoiseRBXData &t2) const
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
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< reco::HcalNoiseRBXCollection > m_theHcalNoiseToken
double energy(void) const
Definition: HcalNoiseAlgo.h:24
void produce(edm::Event &, const edm::EventSetup &) override
std::vector< std::pair< double, double > > TS4TS5LowerCut_