CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTHcalMETNoiseCleaner.h
Go to the documentation of this file.
1 #ifndef HLTHcalMETNoiseCleaner_h
2 #define HLTHcalMETNoiseCleaner_h
3 
12 
13 namespace edm {
15 }
16 
18 
19  public:
22  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
23  virtual bool filter(edm::Event&, const edm::EventSetup&);
24 
25  private:
26  // parameters
29  double CaloMetCut_;
30  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  reco::CaloMET BuildCaloMet(float sumet,float pt,float phi);
54 
55  // helper function to compare noise data energies
56  struct noisedatacomp {
57  inline bool operator() ( const CommonHcalNoiseRBXData& t1, const CommonHcalNoiseRBXData& t2) {
58  return t1.energy()>t2.energy();
59  }
60  };
61  typedef std::set<CommonHcalNoiseRBXData, noisedatacomp> noisedataset_t;
62 };
63 
64 #endif //HLTHcalMETNoiseCleaner_h
std::vector< std::pair< double, double > > TS4TS5UpperCut_
bool operator()(const CommonHcalNoiseRBXData &t1, const CommonHcalNoiseRBXData &t2)
std::set< CommonHcalNoiseRBXData, noisedatacomp > noisedataset_t
reco::CaloMET BuildCaloMet(float sumet, float pt, float phi)
virtual bool filter(edm::Event &, const edm::EventSetup &)
HLTHcalMETNoiseCleaner(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::InputTag HcalNoiseRBXCollectionTag_
double energy(void) const
Definition: HcalNoiseAlgo.h:20
std::vector< std::pair< double, double > > TS4TS5LowerCut_
Definition: DDAxes.h:10