CMS 3D CMS Logo

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