CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
28  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
29  virtual void produce(edm::Event&, const edm::EventSetup&);
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
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
HLTHcalTowerNoiseCleaner(const edm::ParameterSet &)
std::set< CommonHcalNoiseRBXData, noisedatacomp > noisedataset_t
std::vector< std::pair< double, double > > TS4TS5UpperCut_
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:18
edm::EDGetTokenT< CaloTowerCollection > m_theCaloTowerCollectionToken
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< reco::HcalNoiseRBXCollection > m_theHcalNoiseToken
double energy(void) const
Definition: HcalNoiseAlgo.h:20
std::vector< std::pair< double, double > > TS4TS5LowerCut_
bool operator()(const CommonHcalNoiseRBXData &t1, const CommonHcalNoiseRBXData &t2)