#include <EcalSeverityLevelAlgo.h>
Public Member Functions | |
EcalSeverityLevelAlgo (const edm::ParameterSet &p) | |
void | setChannelStatus (const EcalChannelStatus &chs) |
Set the ChannelStatus record. More... | |
EcalSeverityLevel::SeverityLevel | severityLevel (const DetId &id) const |
Evaluate status from id use channelStatus from DB. More... | |
EcalSeverityLevel::SeverityLevel | severityLevel (const DetId &id, const EcalRecHitCollection &rhs) const |
EcalSeverityLevel::SeverityLevel | severityLevel (const EcalRecHit &rh) const |
Evaluate status from rechit, using its EcalRecHit::Flag. More... | |
Private Attributes | |
const EcalChannelStatus * | chStatus_ |
std::vector< uint32_t > | dbstatusMask_ |
Configure which DBStatus::Flag is mapped into which EcalSeverityLevel. More... | |
std::vector< uint32_t > | flagMask_ |
Configure which EcalRecHit::Flag is mapped into which EcalSeverityLevel. More... | |
float | timeThresh_ |
Return kTime only if the rechit is flagged kOutOfTime and E>timeThresh_. More... | |
Definition at line 35 of file EcalSeverityLevelAlgo.h.
|
explicit |
Definition at line 23 of file EcalSeverityLevelAlgo.cc.
References chStatus_, dbstatusMask_, f, flagMask_, flags, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), RecoTauDiscriminantConfiguration::mask, and timeThresh_.
|
inline |
Set the ChannelStatus record.
Definition at line 60 of file EcalSeverityLevelAlgo.h.
References chStatus_.
Referenced by EcalSeverityLevelESProducer::setupChannelStatus().
EcalSeverityLevel::SeverityLevel EcalSeverityLevelAlgo::severityLevel | ( | const DetId & | id | ) | const |
Evaluate status from id use channelStatus from DB.
Definition at line 101 of file EcalSeverityLevelAlgo.cc.
References chStatus_, dbstatusMask_, EcalCondObjectContainer< T >::find(), mps_fire::i, EcalSeverityLevel::kGood, LogDebug, and tmp.
Referenced by CaloTowersCreationAlgo::assignHitEcal(), EcalClusterSeverityLevelAlgo::closestProblematic(), egammaisolation::EgammaRecHitExtractor::collect(), CaloTowersCreationAlgo::ecalChanStatusForCaloTower(), spr::eECALmatrix(), spr::energyECAL(), EgammaRecHitIsolation::getSum_(), EcalClusterSeverityLevelAlgo::goodFraction(), HybridClusterAlgo::makeClusters(), CaloTowersCreationAlgo::makeEcalBadChs(), EleIsoDetIdCollectionProducer::produce(), GamIsoDetIdCollectionProducer::produce(), InterestingDetIdCollectionProducer::produce(), InterestingDetIdFromSuperClusterProducer::produce(), HiSpikeCleaner::produce(), L1Analysis::L1AnalysisRecoMet::SetECALFlags(), EcalSeverityLevelService::severityLevel(), severityLevel(), and ObjectValidator::validHit().
EcalSeverityLevel::SeverityLevel EcalSeverityLevelAlgo::severityLevel | ( | const DetId & | id, |
const EcalRecHitCollection & | rhs | ||
) | const |
If the id is in the collection, use the EcalRecHit::Flag else use the channelStatus from DB
Definition at line 84 of file EcalSeverityLevelAlgo.cc.
References edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), and severityLevel().
EcalSeverityLevel::SeverityLevel EcalSeverityLevelAlgo::severityLevel | ( | const EcalRecHit & | rh | ) | const |
Evaluate status from rechit, using its EcalRecHit::Flag.
Definition at line 128 of file EcalSeverityLevelAlgo.cc.
References EcalRecHit::checkFlag(), EcalRecHit::checkFlagMask(), EcalRecHit::energy(), flagMask_, EcalSeverityLevel::kBad, EcalSeverityLevel::kGood, EcalSeverityLevel::kTime, LogDebug, and timeThresh_.
|
private |
Definition at line 82 of file EcalSeverityLevelAlgo.h.
Referenced by EcalSeverityLevelAlgo(), setChannelStatus(), and severityLevel().
|
private |
Configure which DBStatus::Flag is mapped into which EcalSeverityLevel.
The position in the vector is the EcalSeverityLevel The content defines which EcalRecHit::Flag should be mapped into that EcalSeverityLevel in a bit-wise way
Definition at line 76 of file EcalSeverityLevelAlgo.h.
Referenced by EcalSeverityLevelAlgo(), and severityLevel().
|
private |
Configure which EcalRecHit::Flag is mapped into which EcalSeverityLevel.
The position in the vector is the EcalSeverityLevel The content defines which EcalRecHit::Flag should be mapped into that EcalSeverityLevel in a bit-wise way
Definition at line 69 of file EcalSeverityLevelAlgo.h.
Referenced by EcalSeverityLevelAlgo(), and severityLevel().
|
private |
Return kTime only if the rechit is flagged kOutOfTime and E>timeThresh_.
Definition at line 80 of file EcalSeverityLevelAlgo.h.
Referenced by EcalSeverityLevelAlgo(), and severityLevel().