#include <HcalNoiseAlgo.h>
Definition at line 69 of file HcalNoiseAlgo.h.
HcalNoiseAlgo::HcalNoiseAlgo | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 91 of file HcalNoiseAlgo.cc.
References edm::ParameterSet::getParameter(), hlMaxHPDEMF_, hlMaxRBXEMF_, lMaxHighEHitTime_, lMaxLowEHitTime_, lMaxRatio_, lMinHighEHitTime_, lMinHPDHits_, lMinHPDNoOtherHits_, lMinLowEHitTime_, lMinRatio_, lMinRBXHits_, lMinZeros_, minEEMF_, minERatio_, minEZeros_, pMaxHighEHitTime_, pMaxHPDEMF_, pMaxLowEHitTime_, pMaxRatio_, pMaxRBXEMF_, pMinE_, pMinEEMF_, pMinERatio_, pMinEZeros_, pMinHighEHitTime_, pMinHPDHits_, pMinHPDNoOtherHits_, pMinLowEHitTime_, pMinRatio_, pMinRBXHits_, pMinZeros_, tMaxHighEHitTime_, tMaxLowEHitTime_, tMaxRatio_, tMinHighEHitTime_, tMinHPDHits_, tMinHPDNoOtherHits_, tMinLowEHitTime_, tMinRatio_, tMinRBXHits_, and tMinZeros_.
{ pMinERatio_ = iConfig.getParameter<double>("pMinERatio"); pMinEZeros_ = iConfig.getParameter<double>("pMinEZeros"); pMinEEMF_ = iConfig.getParameter<double>("pMinEEMF"); minERatio_ = iConfig.getParameter<double>("minERatio"); minEZeros_ = iConfig.getParameter<double>("minEZeros"); minEEMF_ = iConfig.getParameter<double>("minEEMF"); pMinE_ = iConfig.getParameter<double>("pMinE"); pMinRatio_ = iConfig.getParameter<double>("pMinRatio"); pMaxRatio_ = iConfig.getParameter<double>("pMaxRatio"); pMinHPDHits_ = iConfig.getParameter<int>("pMinHPDHits"); pMinRBXHits_ = iConfig.getParameter<int>("pMinRBXHits"); pMinHPDNoOtherHits_ = iConfig.getParameter<int>("pMinHPDNoOtherHits"); pMinZeros_ = iConfig.getParameter<int>("pMinZeros"); pMinLowEHitTime_ = iConfig.getParameter<double>("pMinLowEHitTime"); pMaxLowEHitTime_ = iConfig.getParameter<double>("pMaxLowEHitTime"); pMinHighEHitTime_ = iConfig.getParameter<double>("pMinHighEHitTime"); pMaxHighEHitTime_ = iConfig.getParameter<double>("pMaxHighEHitTime"); pMaxHPDEMF_ = iConfig.getParameter<double>("pMaxHPDEMF"); pMaxRBXEMF_ = iConfig.getParameter<double>("pMaxRBXEMF"); lMinRatio_ = iConfig.getParameter<double>("lMinRatio"); lMaxRatio_ = iConfig.getParameter<double>("lMaxRatio"); lMinHPDHits_ = iConfig.getParameter<int>("lMinHPDHits"); lMinRBXHits_ = iConfig.getParameter<int>("lMinRBXHits"); lMinHPDNoOtherHits_ = iConfig.getParameter<int>("lMinHPDNoOtherHits"); lMinZeros_ = iConfig.getParameter<int>("lMinZeros"); lMinLowEHitTime_ = iConfig.getParameter<double>("lMinLowEHitTime"); lMaxLowEHitTime_ = iConfig.getParameter<double>("lMaxLowEHitTime"); lMinHighEHitTime_ = iConfig.getParameter<double>("lMinHighEHitTime"); lMaxHighEHitTime_ = iConfig.getParameter<double>("lMaxHighEHitTime"); tMinRatio_ = iConfig.getParameter<double>("tMinRatio"); tMaxRatio_ = iConfig.getParameter<double>("tMaxRatio"); tMinHPDHits_ = iConfig.getParameter<int>("tMinHPDHits"); tMinRBXHits_ = iConfig.getParameter<int>("tMinRBXHits"); tMinHPDNoOtherHits_ = iConfig.getParameter<int>("tMinHPDNoOtherHits"); tMinZeros_ = iConfig.getParameter<int>("tMinZeros"); tMinLowEHitTime_ = iConfig.getParameter<double>("tMinLowEHitTime"); tMaxLowEHitTime_ = iConfig.getParameter<double>("tMaxLowEHitTime"); tMinHighEHitTime_ = iConfig.getParameter<double>("tMinHighEHitTime"); tMaxHighEHitTime_ = iConfig.getParameter<double>("tMaxHighEHitTime"); hlMaxHPDEMF_ = iConfig.getParameter<double>("hlMaxHPDEMF"); hlMaxRBXEMF_ = iConfig.getParameter<double>("hlMaxRBXEMF"); }
virtual HcalNoiseAlgo::~HcalNoiseAlgo | ( | ) | [inline, virtual] |
Definition at line 74 of file HcalNoiseAlgo.h.
{}
bool HcalNoiseAlgo::isProblematic | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 141 of file HcalNoiseAlgo.cc.
References CommonHcalNoiseRBXData::energy(), CommonHcalNoiseRBXData::HPDEMF(), CommonHcalNoiseRBXData::maxHighEHitTime(), CommonHcalNoiseRBXData::maxLowEHitTime(), CommonHcalNoiseRBXData::minHighEHitTime(), CommonHcalNoiseRBXData::minLowEHitTime(), CommonHcalNoiseRBXData::numHPDHits(), CommonHcalNoiseRBXData::numHPDNoOtherHits(), CommonHcalNoiseRBXData::numRBXHits(), CommonHcalNoiseRBXData::numZeros(), pMaxHighEHitTime_, pMaxHPDEMF_, pMaxLowEHitTime_, pMaxRatio_, pMaxRBXEMF_, pMinE_, pMinEEMF_, pMinERatio_, pMinEZeros_, pMinHighEHitTime_, pMinHPDHits_, pMinHPDNoOtherHits_, pMinLowEHitTime_, pMinRatio_, pMinRBXHits_, pMinZeros_, CommonHcalNoiseRBXData::ratio(), CommonHcalNoiseRBXData::RBXEMF(), and CommonHcalNoiseRBXData::validRatio().
Referenced by reco::HcalNoiseInfoProducer::produce().
{ if(data.energy()>pMinE_) return true; if(data.validRatio() && data.energy()>pMinERatio_ && data.ratio()<pMinRatio_) return true; if(data.validRatio() && data.energy()>pMinERatio_ && data.ratio()>pMaxRatio_) return true; if(data.numHPDHits()>=pMinHPDHits_) return true; if(data.numRBXHits()>=pMinRBXHits_) return true; if(data.numHPDNoOtherHits()>=pMinHPDNoOtherHits_) return true; if(data.numZeros()>=pMinZeros_ && data.energy()>pMinEZeros_) return true; if(data.minLowEHitTime()<pMinLowEHitTime_) return true; if(data.maxLowEHitTime()>pMaxLowEHitTime_) return true; if(data.minHighEHitTime()<pMinHighEHitTime_) return true; if(data.maxHighEHitTime()>pMaxHighEHitTime_) return true; if(data.HPDEMF()<pMaxHPDEMF_ && data.energy()>pMinEEMF_) return true; if(data.RBXEMF()<pMaxRBXEMF_ && data.energy()>pMinEEMF_) return true; return false; }
bool HcalNoiseAlgo::passEMFThreshold | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 256 of file HcalNoiseAlgo.cc.
References CommonHcalNoiseRBXData::energy(), and minEEMF_.
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and passHighLevelNoiseFilter().
bool HcalNoiseAlgo::passHighLevelNoiseFilter | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 169 of file HcalNoiseAlgo.cc.
References hlMaxHPDEMF_, hlMaxRBXEMF_, CommonHcalNoiseRBXData::HPDEMF(), passEMFThreshold(), and CommonHcalNoiseRBXData::RBXEMF().
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and reco::HcalNoiseInfoProducer::produce().
{ if(passEMFThreshold(data)) { if(data.HPDEMF()<hlMaxHPDEMF_) return false; if(data.RBXEMF()<hlMaxRBXEMF_) return false; } return true; }
bool HcalNoiseAlgo::passLooseHits | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 187 of file HcalNoiseAlgo.cc.
References lMinHPDHits_, lMinHPDNoOtherHits_, lMinRBXHits_, CommonHcalNoiseRBXData::numHPDHits(), CommonHcalNoiseRBXData::numHPDNoOtherHits(), and CommonHcalNoiseRBXData::numRBXHits().
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and passLooseNoiseFilter().
{ if(data.numHPDHits()>=lMinHPDHits_) return false; if(data.numRBXHits()>=lMinRBXHits_) return false; if(data.numHPDNoOtherHits()>=lMinHPDNoOtherHits_) return false; return true; }
bool HcalNoiseAlgo::passLooseNoiseFilter | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 159 of file HcalNoiseAlgo.cc.
References passLooseHits(), passLooseRatio(), passLooseTiming(), and passLooseZeros().
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and reco::HcalNoiseInfoProducer::produce().
{ return (passLooseRatio(data) && passLooseHits(data) && passLooseZeros(data) && passLooseTiming(data)); }
bool HcalNoiseAlgo::passLooseRatio | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 178 of file HcalNoiseAlgo.cc.
References lMaxRatio_, lMinRatio_, passRatioThreshold(), CommonHcalNoiseRBXData::ratio(), and CommonHcalNoiseRBXData::validRatio().
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and passLooseNoiseFilter().
{ if(passRatioThreshold(data)) { if(data.validRatio() && data.ratio()<lMinRatio_) return false; if(data.validRatio() && data.ratio()>lMaxRatio_) return false; } return true; }
bool HcalNoiseAlgo::passLooseTiming | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 203 of file HcalNoiseAlgo.cc.
References lMaxHighEHitTime_, lMaxLowEHitTime_, lMinHighEHitTime_, lMinLowEHitTime_, CommonHcalNoiseRBXData::maxHighEHitTime(), CommonHcalNoiseRBXData::maxLowEHitTime(), CommonHcalNoiseRBXData::minHighEHitTime(), and CommonHcalNoiseRBXData::minLowEHitTime().
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and passLooseNoiseFilter().
{ if(data.minLowEHitTime()<lMinLowEHitTime_) return false; if(data.maxLowEHitTime()>lMaxLowEHitTime_) return false; if(data.minHighEHitTime()<lMinHighEHitTime_) return false; if(data.maxHighEHitTime()>lMaxHighEHitTime_) return false; return true; }
bool HcalNoiseAlgo::passLooseZeros | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 195 of file HcalNoiseAlgo.cc.
References lMinZeros_, CommonHcalNoiseRBXData::numZeros(), and passZerosThreshold().
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and passLooseNoiseFilter().
{ if(passZerosThreshold(data)) { if(data.numZeros()>=lMinZeros_) return false; } return true; }
bool HcalNoiseAlgo::passRatioThreshold | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 246 of file HcalNoiseAlgo.cc.
References CommonHcalNoiseRBXData::energy(), and minERatio_.
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), passLooseRatio(), and passTightRatio().
{ return (data.energy()>minERatio_); }
bool HcalNoiseAlgo::passTightHits | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 221 of file HcalNoiseAlgo.cc.
References CommonHcalNoiseRBXData::numHPDHits(), CommonHcalNoiseRBXData::numHPDNoOtherHits(), CommonHcalNoiseRBXData::numRBXHits(), tMinHPDHits_, tMinHPDNoOtherHits_, and tMinRBXHits_.
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and passTightNoiseFilter().
{ if(data.numHPDHits()>=tMinHPDHits_) return false; if(data.numRBXHits()>=tMinRBXHits_) return false; if(data.numHPDNoOtherHits()>=tMinHPDNoOtherHits_) return false; return true; }
bool HcalNoiseAlgo::passTightNoiseFilter | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 164 of file HcalNoiseAlgo.cc.
References passTightHits(), passTightRatio(), passTightTiming(), and passTightZeros().
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and reco::HcalNoiseInfoProducer::produce().
{ return (passTightRatio(data) && passTightHits(data) && passTightZeros(data) && passTightTiming(data)); }
bool HcalNoiseAlgo::passTightRatio | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 212 of file HcalNoiseAlgo.cc.
References passRatioThreshold(), CommonHcalNoiseRBXData::ratio(), tMaxRatio_, tMinRatio_, and CommonHcalNoiseRBXData::validRatio().
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and passTightNoiseFilter().
{ if(passRatioThreshold(data)) { if(data.validRatio() && data.ratio()<tMinRatio_) return false; if(data.validRatio() && data.ratio()>tMaxRatio_) return false; } return true; }
bool HcalNoiseAlgo::passTightTiming | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 237 of file HcalNoiseAlgo.cc.
References CommonHcalNoiseRBXData::maxHighEHitTime(), CommonHcalNoiseRBXData::maxLowEHitTime(), CommonHcalNoiseRBXData::minHighEHitTime(), CommonHcalNoiseRBXData::minLowEHitTime(), tMaxHighEHitTime_, tMaxLowEHitTime_, tMinHighEHitTime_, and tMinLowEHitTime_.
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and passTightNoiseFilter().
{ if(data.minLowEHitTime()<tMinLowEHitTime_) return false; if(data.maxLowEHitTime()>tMaxLowEHitTime_) return false; if(data.minHighEHitTime()<tMinHighEHitTime_) return false; if(data.maxHighEHitTime()>tMaxHighEHitTime_) return false; return true; }
bool HcalNoiseAlgo::passTightZeros | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 229 of file HcalNoiseAlgo.cc.
References CommonHcalNoiseRBXData::numZeros(), passZerosThreshold(), and tMinZeros_.
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), and passTightNoiseFilter().
{ if(passZerosThreshold(data)) { if(data.numZeros()>=tMinZeros_) return false; } return true; }
bool HcalNoiseAlgo::passZerosThreshold | ( | const CommonHcalNoiseRBXData & | data | ) | const |
Definition at line 251 of file HcalNoiseAlgo.cc.
References CommonHcalNoiseRBXData::energy(), and minEZeros_.
Referenced by reco::HcalNoiseInfoProducer::fillOtherSummaryVariables(), passLooseZeros(), and passTightZeros().
{ return (data.energy()>minEZeros_); }
double HcalNoiseAlgo::hlMaxHPDEMF_ [private] |
Definition at line 159 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passHighLevelNoiseFilter().
double HcalNoiseAlgo::hlMaxRBXEMF_ [private] |
Definition at line 160 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passHighLevelNoiseFilter().
double HcalNoiseAlgo::lMaxHighEHitTime_ [private] |
Definition at line 142 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passLooseTiming().
double HcalNoiseAlgo::lMaxLowEHitTime_ [private] |
Definition at line 140 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passLooseTiming().
double HcalNoiseAlgo::lMaxRatio_ [private] |
Definition at line 134 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passLooseRatio().
double HcalNoiseAlgo::lMinHighEHitTime_ [private] |
Definition at line 141 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passLooseTiming().
int HcalNoiseAlgo::lMinHPDHits_ [private] |
Definition at line 135 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passLooseHits().
int HcalNoiseAlgo::lMinHPDNoOtherHits_ [private] |
Definition at line 137 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passLooseHits().
double HcalNoiseAlgo::lMinLowEHitTime_ [private] |
Definition at line 139 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passLooseTiming().
double HcalNoiseAlgo::lMinRatio_ [private] |
Definition at line 133 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passLooseRatio().
int HcalNoiseAlgo::lMinRBXHits_ [private] |
Definition at line 136 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passLooseHits().
int HcalNoiseAlgo::lMinZeros_ [private] |
Definition at line 138 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passLooseZeros().
double HcalNoiseAlgo::minEEMF_ [private] |
Definition at line 113 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passEMFThreshold().
double HcalNoiseAlgo::minERatio_ [private] |
Definition at line 111 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passRatioThreshold().
double HcalNoiseAlgo::minEZeros_ [private] |
Definition at line 112 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passZerosThreshold().
double HcalNoiseAlgo::pMaxHighEHitTime_ [private] |
Definition at line 127 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMaxHPDEMF_ [private] |
Definition at line 128 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMaxLowEHitTime_ [private] |
Definition at line 125 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMaxRatio_ [private] |
Definition at line 119 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMaxRBXEMF_ [private] |
Definition at line 129 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMinE_ [private] |
Definition at line 117 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMinEEMF_ [private] |
Definition at line 108 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMinERatio_ [private] |
Definition at line 106 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMinEZeros_ [private] |
Definition at line 107 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMinHighEHitTime_ [private] |
Definition at line 126 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
int HcalNoiseAlgo::pMinHPDHits_ [private] |
Definition at line 120 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
int HcalNoiseAlgo::pMinHPDNoOtherHits_ [private] |
Definition at line 122 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMinLowEHitTime_ [private] |
Definition at line 124 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::pMinRatio_ [private] |
Definition at line 118 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
int HcalNoiseAlgo::pMinRBXHits_ [private] |
Definition at line 121 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
int HcalNoiseAlgo::pMinZeros_ [private] |
Definition at line 123 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and isProblematic().
double HcalNoiseAlgo::tMaxHighEHitTime_ [private] |
Definition at line 155 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passTightTiming().
double HcalNoiseAlgo::tMaxLowEHitTime_ [private] |
Definition at line 153 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passTightTiming().
double HcalNoiseAlgo::tMaxRatio_ [private] |
Definition at line 147 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passTightRatio().
double HcalNoiseAlgo::tMinHighEHitTime_ [private] |
Definition at line 154 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passTightTiming().
int HcalNoiseAlgo::tMinHPDHits_ [private] |
Definition at line 148 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passTightHits().
int HcalNoiseAlgo::tMinHPDNoOtherHits_ [private] |
Definition at line 150 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passTightHits().
double HcalNoiseAlgo::tMinLowEHitTime_ [private] |
Definition at line 152 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passTightTiming().
double HcalNoiseAlgo::tMinRatio_ [private] |
Definition at line 146 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passTightRatio().
int HcalNoiseAlgo::tMinRBXHits_ [private] |
Definition at line 149 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passTightHits().
int HcalNoiseAlgo::tMinZeros_ [private] |
Definition at line 151 of file HcalNoiseAlgo.h.
Referenced by HcalNoiseAlgo(), and passTightZeros().