#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 EcalRecHitCollection &rhs) const |
Evaluate status from id. More... | |
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(), and timeThresh_.
|
inline |
Set the ChannelStatus record.
Definition at line 57 of file EcalSeverityLevelAlgo.h.
References chStatus_.
EcalSeverityLevel::SeverityLevel EcalSeverityLevelAlgo::severityLevel | ( | const DetId & | id, |
const EcalRecHitCollection & | rhs | ||
) | const |
Evaluate status from id.
If the id is in the collection, use the EcalRecHit::Flag else use the channelStatus from DB
Definition at line 82 of file EcalSeverityLevelAlgo.cc.
References chStatus_, dbstatusMask_, EcalCondObjectContainer< T >::end(), edm::SortedCollection< T, SORT >::end(), EcalCondObjectContainer< T >::find(), edm::SortedCollection< T, SORT >::find(), i, EcalSeverityLevel::kGood, LogDebug, and tmp.
Referenced by EcalClusterSeverityLevelAlgo::closestProblematic(), egammaisolation::EgammaRecHitExtractor::collect(), CaloTowersCreationAlgo::convert(), CaloTowersCreationAlgo::ecalChanStatusForCaloTower(), spr::eECALmatrix(), EgammaRecHitIsolation::getSum_(), EcalClusterSeverityLevelAlgo::goodFraction(), HybridClusterAlgo::makeClusters(), InterestingDetIdFromSuperClusterProducer::produce(), InterestingDetIdCollectionProducer::produce(), EcalClusterTools::recHitEnergy(), EcalSeverityLevelService::severityLevel(), and ObjectValidator::validHit().
EcalSeverityLevel::SeverityLevel EcalSeverityLevelAlgo::severityLevel | ( | const EcalRecHit & | rh | ) | const |
Evaluate status from rechit, using its EcalRecHit::Flag.
Definition at line 127 of file EcalSeverityLevelAlgo.cc.
References EcalRecHit::checkFlag(), EcalRecHit::checkFlagMask(), CaloRecHit::energy(), flagMask_, EcalSeverityLevel::kBad, EcalSeverityLevel::kGood, EcalSeverityLevel::kTime, LogDebug, and timeThresh_.
|
private |
Definition at line 79 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 73 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 66 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 77 of file EcalSeverityLevelAlgo.h.
Referenced by EcalSeverityLevelAlgo(), and severityLevel().