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 
15 namespace edm {
17 }
18 
20 
21  public:
24  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
25  virtual void produce(edm::Event&, const edm::EventSetup&);
26 
27  private:
28  // parameters
31  int severity_;
35  double minRBXEnergy_;
36  double minRatio_;
37  double maxRatio_;
41  int minZeros_;
44  double maxRBXEMF_;
45 
46  // imported from the RecoMET/METProducers/python/hcalnoiseinfoproducer_cfi
48 
50  std::vector<std::pair<double, double> > TS4TS5UpperCut_;
51  std::vector<std::pair<double, double> > TS4TS5LowerCut_;
52 
53  // helper function to compare noise data energies
54  struct noisedatacomp {
55  inline bool operator() ( const CommonHcalNoiseRBXData& t1, const CommonHcalNoiseRBXData& t2) {
56  return t1.energy()>t2.energy();
57  }
58  };
59  typedef std::set<CommonHcalNoiseRBXData, noisedatacomp> noisedataset_t;
60 };
61 
62 #endif //HLTHcalTowerNoiseCleaner_h
HLTHcalTowerNoiseCleaner(const edm::ParameterSet &)
std::set< CommonHcalNoiseRBXData, noisedatacomp > noisedataset_t
std::vector< std::pair< double, double > > TS4TS5UpperCut_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void produce(edm::Event &, const edm::EventSetup &)
double energy(void) const
Definition: HcalNoiseAlgo.h:20
std::vector< std::pair< double, double > > TS4TS5LowerCut_
bool operator()(const CommonHcalNoiseRBXData &t1, const CommonHcalNoiseRBXData &t2)