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 
25  public:
27  ~HLTHcalTowerNoiseCleaner() override;
28  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
29  void produce(edm::Event&, const edm::EventSetup&) override;
30 
31  private:
34  // parameters
37  int severity_;
41  double minRBXEnergy_;
42  double minRatio_;
43  double maxRatio_;
47  int minZeros_;
50  double maxRBXEMF_;
51 
52  // imported from the RecoMET/METProducers/python/hcalnoiseinfoproducer_cfi
53  double minRecHitE_, minLowHitE_, minHighHitE_, minR45HitE_;
54 
56  std::vector<std::pair<double, double> > TS4TS5UpperCut_;
57  std::vector<std::pair<double, double> > TS4TS5LowerCut_;
58 
59  // helper function to compare noise data energies
60  struct noisedatacomp {
61  inline bool operator() ( const CommonHcalNoiseRBXData& t1, const CommonHcalNoiseRBXData& t2) {
62  return t1.energy()>t2.energy();
63  }
64  };
65  typedef std::set<CommonHcalNoiseRBXData, noisedatacomp> noisedataset_t;
66 };
67 
68 #endif //HLTHcalTowerNoiseCleaner_h
std::set< CommonHcalNoiseRBXData, noisedatacomp > noisedataset_t
std::vector< std::pair< double, double > > TS4TS5UpperCut_
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16
edm::EDGetTokenT< CaloTowerCollection > m_theCaloTowerCollectionToken
edm::EDGetTokenT< reco::HcalNoiseRBXCollection > m_theHcalNoiseToken
double energy(void) const
Definition: HcalNoiseAlgo.h:20
HLT enums.
std::vector< std::pair< double, double > > TS4TS5LowerCut_