#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 33 of file EcalSeverityLevelAlgo.h.
|
explicit |
Definition at line 21 of file EcalSeverityLevelAlgo.cc.
References chStatus_, dbstatusMask_, f, flagMask_, HLT_FULL_cff::flags, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), AlCaHLTBitMon_ParallelJobs::p, and timeThresh_.
|
inline |
Set the ChannelStatus record.
Definition at line 49 of file EcalSeverityLevelAlgo.h.
References chStatus_.
EcalSeverityLevel::SeverityLevel EcalSeverityLevelAlgo::severityLevel | ( | const DetId & | id | ) | const |
Evaluate status from id use channelStatus from DB.
Definition at line 85 of file EcalSeverityLevelAlgo.cc.
References chStatus_, dbstatusMask_, EcalCondObjectContainer< T >::find(), mps_fire::i, EcalSeverityLevel::kGood, LogDebug, and createJobs::tmp.
Referenced by CaloTowersCreationAlgo::assignHitEcal(), EcalClusterSeverityLevelAlgo::closestProblematic(), egammaisolation::EgammaRecHitExtractor::collect(), CaloTowersCreationAlgo::ecalChanStatusForCaloTower(), spr::eECALmatrix(), spr::energyECAL(), EgammaRecHitIsolation::getSum_(), EcalClusterSeverityLevelAlgo::goodFraction(), HybridClusterAlgo::makeClusters(), CaloTowersCreationAlgo::makeEcalBadChs(), EgammaIsoDetIdCollectionProducer< T1 >::produce(), HiSpikeCleaner::produce(), InterestingDetIdFromSuperClusterProducer::produce(), InterestingDetIdCollectionProducer::produce(), L1Analysis::L1AnalysisRecoMet::SetECALFlags(), 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 72 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 109 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 67 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 62 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 56 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 65 of file EcalSeverityLevelAlgo.h.
Referenced by EcalSeverityLevelAlgo(), and severityLevel().