CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HLTHcalTowerNoiseCleanerWithrechit.h
Go to the documentation of this file.
1 #ifndef HLTHcalTowerNoiseCleanerWithrechit_h
2 #define HLTHcalTowerNoiseCleanerWithrechit_h
3 
19 
20 namespace edm {
22 }
23 
25 public:
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  // Rechit-r45 filter parameters:
61  std::vector<double> hltMinRBXRechitR45Cuts_;
62 
63  // helper function to compare noise data energies
64  struct noisedatacomp {
65  inline bool operator()(const CommonHcalNoiseRBXData& t1, const CommonHcalNoiseRBXData& t2) const {
66  return t1.energy() > t2.energy();
67  }
68  };
69  typedef std::set<CommonHcalNoiseRBXData, noisedatacomp> noisedataset_t;
70 };
71 
72 #endif //HLTHcalTowerNoiseCleanerWithrechit_h
edm::EDGetTokenT< CaloTowerCollection > m_theCaloTowerCollectionToken
std::vector< std::pair< double, double > > TS4TS5UpperCut_
edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecord > const hcalRecNumberingRecordToken_
std::set< CommonHcalNoiseRBXData, noisedatacomp > noisedataset_t
bool operator()(const CommonHcalNoiseRBXData &t1, const CommonHcalNoiseRBXData &t2) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
double energy(void) const
Definition: HcalNoiseAlgo.h:24
edm::EDGetTokenT< reco::HcalNoiseRBXCollection > m_theHcalNoiseToken
std::vector< std::pair< double, double > > TS4TS5LowerCut_
void produce(edm::Event &, const edm::EventSetup &) override