CMS 3D CMS Logo

HLTHcalTowerNoiseCleanerWithrechit.h
Go to the documentation of this file.
1 #ifndef HLTHcalTowerNoiseCleanerWithrechit_h
2 #define HLTHcalTowerNoiseCleanerWithrechit_h
3 
14 
18 
19 namespace edm {
21 }
22 
24 public:
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  // Rechit-r45 filter parameters:
59  std::vector<double> hltMinRBXRechitR45Cuts_;
60 
61  // helper function to compare noise data energies
62  struct noisedatacomp {
63  inline bool operator()(const CommonHcalNoiseRBXData& t1, const CommonHcalNoiseRBXData& t2) const {
64  return t1.energy() > t2.energy();
65  }
66  };
67  typedef std::set<CommonHcalNoiseRBXData, noisedatacomp> noisedataset_t;
68 };
69 
70 #endif //HLTHcalTowerNoiseCleanerWithrechit_h
edm::EDGetTokenT< CaloTowerCollection > m_theCaloTowerCollectionToken
std::vector< std::pair< double, double > > TS4TS5UpperCut_
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
HLT enums.
edm::EDGetTokenT< reco::HcalNoiseRBXCollection > m_theHcalNoiseToken
std::vector< std::pair< double, double > > TS4TS5LowerCut_