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 public:
26  ~HLTHcalTowerNoiseCleaner() override;
27  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
28  void produce(edm::Event&, const edm::EventSetup&) override;
29 
30 private:
33  // parameters
36  int severity_;
40  double minRBXEnergy_;
41  double minRatio_;
42  double maxRatio_;
46  int minZeros_;
49  double maxRBXEMF_;
50 
51  // imported from the RecoMET/METProducers/python/hcalnoiseinfoproducer_cfi
53 
55  std::vector<std::pair<double, double> > TS4TS5UpperCut_;
56  std::vector<std::pair<double, double> > TS4TS5LowerCut_;
57 
58  // helper function to compare noise data energies
59  struct noisedatacomp {
60  inline bool operator()(const CommonHcalNoiseRBXData& t1, const CommonHcalNoiseRBXData& t2) const {
61  return t1.energy() > t2.energy();
62  }
63  };
64  typedef std::set<CommonHcalNoiseRBXData, noisedatacomp> noisedataset_t;
65 };
66 
67 #endif //HLTHcalTowerNoiseCleaner_h
RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
HcalNoiseRBX.h
CaloTower.h
HLTHcalTowerNoiseCleaner::TowerCollectionTag_
edm::InputTag TowerCollectionTag_
Definition: HLTHcalTowerNoiseCleaner.h:35
HLTHcalTowerNoiseCleaner::minRatio_
double minRatio_
Definition: HLTHcalTowerNoiseCleaner.h:41
HLTHcalTowerNoiseCleaner::noisedatacomp
Definition: HLTHcalTowerNoiseCleaner.h:59
HLTHcalTowerNoiseCleaner::numRBXsToConsider_
int numRBXsToConsider_
Definition: HLTHcalTowerNoiseCleaner.h:38
HLTHcalTowerNoiseCleaner
Definition: HLTHcalTowerNoiseCleaner.h:23
edm::EDGetTokenT< reco::HcalNoiseRBXCollection >
HLTHcalTowerNoiseCleaner::HLTHcalTowerNoiseCleaner
HLTHcalTowerNoiseCleaner(const edm::ParameterSet &)
Definition: HLTHcalTowerNoiseCleaner.cc:52
edm
HLT enums.
Definition: AlignableModifier.h:19
HLTHcalTowerNoiseCleaner::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: HLTHcalTowerNoiseCleaner.cc:143
HLTHcalTowerNoiseCleaner::maxNumRBXs_
int maxNumRBXs_
Definition: HLTHcalTowerNoiseCleaner.h:37
EDProducer.h
HLTHcalTowerNoiseCleaner::maxRBXEMF_
double maxRBXEMF_
Definition: HLTHcalTowerNoiseCleaner.h:49
HLTHcalTowerNoiseCleaner::minHPDHits_
int minHPDHits_
Definition: HLTHcalTowerNoiseCleaner.h:43
HLTHcalTowerNoiseCleaner::m_theCaloTowerCollectionToken
edm::EDGetTokenT< CaloTowerCollection > m_theCaloTowerCollectionToken
Definition: HLTHcalTowerNoiseCleaner.h:32
HLTHcalTowerNoiseCleaner::severity_
int severity_
Definition: HLTHcalTowerNoiseCleaner.h:36
CommonHcalNoiseRBXData
Definition: HcalNoiseAlgo.h:11
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
HLTHcalTowerNoiseCleaner::TS4TS5UpperCut_
std::vector< std::pair< double, double > > TS4TS5UpperCut_
Definition: HLTHcalTowerNoiseCleaner.h:55
HLTHcalTowerNoiseCleaner::minRBXEnergy_
double minRBXEnergy_
Definition: HLTHcalTowerNoiseCleaner.h:40
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
HLTHcalTowerNoiseCleaner::maxRatio_
double maxRatio_
Definition: HLTHcalTowerNoiseCleaner.h:42
edm::ParameterSet
Definition: ParameterSet.h:36
HLTHcalTowerNoiseCleaner::TS4TS5EnergyThreshold_
double TS4TS5EnergyThreshold_
Definition: HLTHcalTowerNoiseCleaner.h:54
Event.h
HLTHcalTowerNoiseCleaner::minRBXHits_
int minRBXHits_
Definition: HLTHcalTowerNoiseCleaner.h:44
HLTHcalTowerNoiseCleaner::maxHighEHitTime_
double maxHighEHitTime_
Definition: HLTHcalTowerNoiseCleaner.h:48
HLTHcalTowerNoiseCleaner::minZeros_
int minZeros_
Definition: HLTHcalTowerNoiseCleaner.h:46
HLTHcalTowerNoiseCleaner::noisedataset_t
std::set< CommonHcalNoiseRBXData, noisedatacomp > noisedataset_t
Definition: HLTHcalTowerNoiseCleaner.h:64
HLTHcalTowerNoiseCleaner::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: HLTHcalTowerNoiseCleaner.cc:98
edm::stream::EDProducer
Definition: EDProducer.h:38
edm::EventSetup
Definition: EventSetup.h:57
CaloTowerCollection.h
HLTHcalTowerNoiseCleaner::minHighHitE_
double minHighHitE_
Definition: HLTHcalTowerNoiseCleaner.h:52
HLTHcalTowerNoiseCleaner::needEMFCoincidence_
bool needEMFCoincidence_
Definition: HLTHcalTowerNoiseCleaner.h:39
ConfigurationDescriptions
HLTHcalTowerNoiseCleaner::minHPDNoOtherHits_
int minHPDNoOtherHits_
Definition: HLTHcalTowerNoiseCleaner.h:45
HLTHcalTowerNoiseCleaner::HcalNoiseRBXCollectionTag_
edm::InputTag HcalNoiseRBXCollectionTag_
Definition: HLTHcalTowerNoiseCleaner.h:34
HLTHcalTowerNoiseCleaner::minR45HitE_
double minR45HitE_
Definition: HLTHcalTowerNoiseCleaner.h:52
EventSetup.h
HLTHcalTowerNoiseCleaner::noisedatacomp::operator()
bool operator()(const CommonHcalNoiseRBXData &t1, const CommonHcalNoiseRBXData &t2) const
Definition: HLTHcalTowerNoiseCleaner.h:60
HLTHcalTowerNoiseCleaner::minRecHitE_
double minRecHitE_
Definition: HLTHcalTowerNoiseCleaner.h:52
ParameterSet.h
HLTHcalTowerNoiseCleaner::minHighEHitTime_
double minHighEHitTime_
Definition: HLTHcalTowerNoiseCleaner.h:47
HLTHcalTowerNoiseCleaner::~HLTHcalTowerNoiseCleaner
~HLTHcalTowerNoiseCleaner() override
HcalNoiseAlgo.h
HLTHcalTowerNoiseCleaner::minLowHitE_
double minLowHitE_
Definition: HLTHcalTowerNoiseCleaner.h:52
edm::Event
Definition: Event.h:73
HLTHcalTowerNoiseCleaner::m_theHcalNoiseToken
edm::EDGetTokenT< reco::HcalNoiseRBXCollection > m_theHcalNoiseToken
Definition: HLTHcalTowerNoiseCleaner.h:31
HLTHcalTowerNoiseCleaner::TS4TS5LowerCut_
std::vector< std::pair< double, double > > TS4TS5LowerCut_
Definition: HLTHcalTowerNoiseCleaner.h:56
edm::InputTag
Definition: InputTag.h:15