CMS 3D CMS Logo

HLTHcalMETNoiseCleaner.h
Go to the documentation of this file.
1 #ifndef HLTHcalMETNoiseCleaner_h
2 #define HLTHcalMETNoiseCleaner_h
3 
15 
16 namespace edm {
18 }
19 
21 public:
23  ~HLTHcalMETNoiseCleaner() override;
24  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
25  bool filter(edm::Event&, const edm::EventSetup&) override;
26 
27 private:
30  // parameters
33  double CaloMetCut_;
34  int severity_;
39  double minRBXEnergy_;
40  double minRatio_;
41  double maxRatio_;
45  int minZeros_;
48  double maxRBXEMF_;
49 
50  // imported from the RecoMET/METProducers/python/hcalnoiseinfoproducer_cfi
52 
54  std::vector<std::pair<double, double> > TS4TS5UpperCut_;
55  std::vector<std::pair<double, double> > TS4TS5LowerCut_;
56 
57  reco::CaloMET BuildCaloMet(float sumet, float pt, float phi);
58 
59  // helper function to compare noise data energies
60  struct noisedatacomp {
61  inline bool operator()(const CommonHcalNoiseRBXData& t1, const CommonHcalNoiseRBXData& t2) const {
62  return t1.energy() > t2.energy();
63  }
64  };
65  typedef std::set<CommonHcalNoiseRBXData, noisedatacomp> noisedataset_t;
66 };
67 
68 #endif //HLTHcalMETNoiseCleaner_h
HLTHcalMETNoiseCleaner::maxRatio_
double maxRatio_
Definition: HLTHcalMETNoiseCleaner.h:41
HLTHcalMETNoiseCleaner::HcalNoiseRBXCollectionTag_
edm::InputTag HcalNoiseRBXCollectionTag_
Definition: HLTHcalMETNoiseCleaner.h:31
HLTHcalMETNoiseCleaner::noisedataset_t
std::set< CommonHcalNoiseRBXData, noisedatacomp > noisedataset_t
Definition: HLTHcalMETNoiseCleaner.h:65
RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
HLTHcalMETNoiseCleaner::CaloMetCollectionTag_
edm::InputTag CaloMetCollectionTag_
Definition: HLTHcalMETNoiseCleaner.h:32
HLTHcalMETNoiseCleaner::numRBXsToConsider_
int numRBXsToConsider_
Definition: HLTHcalMETNoiseCleaner.h:36
HLTHcalMETNoiseCleaner::minR45HitE_
double minR45HitE_
Definition: HLTHcalMETNoiseCleaner.h:51
HcalNoiseRBX.h
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
edm::EDGetTokenT< reco::CaloMETCollection >
HLTHcalMETNoiseCleaner::minHighEHitTime_
double minHighEHitTime_
Definition: HLTHcalMETNoiseCleaner.h:46
HLTHcalMETNoiseCleaner::minRecHitE_
double minRecHitE_
Definition: HLTHcalMETNoiseCleaner.h:51
edm
HLT enums.
Definition: AlignableModifier.h:19
HLTHcalMETNoiseCleaner::needEMFCoincidence_
bool needEMFCoincidence_
Definition: HLTHcalMETNoiseCleaner.h:38
HLTHcalMETNoiseCleaner::minHPDNoOtherHits_
int minHPDNoOtherHits_
Definition: HLTHcalMETNoiseCleaner.h:44
EDFilter.h
HLTHcalMETNoiseCleaner::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: HLTHcalMETNoiseCleaner.cc:95
HLTHcalMETNoiseCleaner::severity_
int severity_
Definition: HLTHcalMETNoiseCleaner.h:34
HLTHcalMETNoiseCleaner::TS4TS5EnergyThreshold_
double TS4TS5EnergyThreshold_
Definition: HLTHcalMETNoiseCleaner.h:53
CaloMETCollection.h
reco::CaloMET
Definition: CaloMET.h:21
CommonHcalNoiseRBXData
Definition: HcalNoiseAlgo.h:11
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
HLTHcalMETNoiseCleaner::minRBXEnergy_
double minRBXEnergy_
Definition: HLTHcalMETNoiseCleaner.h:39
HLTHcalMETNoiseCleaner::maxHighEHitTime_
double maxHighEHitTime_
Definition: HLTHcalMETNoiseCleaner.h:47
CaloMET.h
HLTHcalMETNoiseCleaner::noisedatacomp
Definition: HLTHcalMETNoiseCleaner.h:60
HLTHcalMETNoiseCleaner::filter
bool filter(edm::Event &, const edm::EventSetup &) override
Definition: HLTHcalMETNoiseCleaner.cc:141
HLTHcalMETNoiseCleaner::minRatio_
double minRatio_
Definition: HLTHcalMETNoiseCleaner.h:40
HLTHcalMETNoiseCleaner::minLowHitE_
double minLowHitE_
Definition: HLTHcalMETNoiseCleaner.h:51
HLTHcalMETNoiseCleaner::accept2NoiseRBXEvents_
bool accept2NoiseRBXEvents_
Definition: HLTHcalMETNoiseCleaner.h:37
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
HLTHcalMETNoiseCleaner::noisedatacomp::operator()
bool operator()(const CommonHcalNoiseRBXData &t1, const CommonHcalNoiseRBXData &t2) const
Definition: HLTHcalMETNoiseCleaner.h:61
edm::ParameterSet
Definition: ParameterSet.h:36
HLTHcalMETNoiseCleaner::BuildCaloMet
reco::CaloMET BuildCaloMet(float sumet, float pt, float phi)
Definition: HLTHcalMETNoiseCleaner.cc:342
HLTHcalMETNoiseCleaner::TS4TS5UpperCut_
std::vector< std::pair< double, double > > TS4TS5UpperCut_
Definition: HLTHcalMETNoiseCleaner.h:54
HLTHcalMETNoiseCleaner::maxRBXEMF_
double maxRBXEMF_
Definition: HLTHcalMETNoiseCleaner.h:48
HLTHcalMETNoiseCleaner::m_theCaloMetToken
edm::EDGetTokenT< reco::CaloMETCollection > m_theCaloMetToken
Definition: HLTHcalMETNoiseCleaner.h:28
HLTHcalMETNoiseCleaner::minHPDHits_
int minHPDHits_
Definition: HLTHcalMETNoiseCleaner.h:42
HLTHcalMETNoiseCleaner::CaloMetCut_
double CaloMetCut_
Definition: HLTHcalMETNoiseCleaner.h:33
HLTHcalMETNoiseCleaner::TS4TS5LowerCut_
std::vector< std::pair< double, double > > TS4TS5LowerCut_
Definition: HLTHcalMETNoiseCleaner.h:55
edm::EDFilter
Definition: EDFilter.h:39
HLTHcalMETNoiseCleaner::minZeros_
int minZeros_
Definition: HLTHcalMETNoiseCleaner.h:45
edm::EventSetup
Definition: EventSetup.h:57
HLTHcalMETNoiseCleaner
Definition: HLTHcalMETNoiseCleaner.h:20
DDAxes::phi
HLTHcalMETNoiseCleaner::minRBXHits_
int minRBXHits_
Definition: HLTHcalMETNoiseCleaner.h:43
HLTHcalMETNoiseCleaner::HLTHcalMETNoiseCleaner
HLTHcalMETNoiseCleaner(const edm::ParameterSet &)
Definition: HLTHcalMETNoiseCleaner.cc:47
ConfigurationDescriptions
HLTHcalMETNoiseCleaner::minHighHitE_
double minHighHitE_
Definition: HLTHcalMETNoiseCleaner.h:51
HLTHcalMETNoiseCleaner::~HLTHcalMETNoiseCleaner
~HLTHcalMETNoiseCleaner() override
HcalNoiseAlgo.h
edm::Event
Definition: Event.h:73
HLTHcalMETNoiseCleaner::maxNumRBXs_
int maxNumRBXs_
Definition: HLTHcalMETNoiseCleaner.h:35
edm::InputTag
Definition: InputTag.h:15
HLTHcalMETNoiseCleaner::m_theHcalNoiseToken
edm::EDGetTokenT< reco::HcalNoiseRBXCollection > m_theHcalNoiseToken
Definition: HLTHcalMETNoiseCleaner.h:29