39 if ( rh != rhs.
end() )
46 edm::LogError(
"ObjectNotFound") <<
"Channel Status not set for EcalSeverityLevelAlgo";
50 uint16_t dbStatus = 0;
52 dbStatus = chIt->getStatusCode();
54 edm::LogError(
"ObjectNotFound") <<
"No channel status found for xtal "
56 <<
"! something wrong with EcalChannelStatus in your DB? ";
60 if (0==dbStatus)
return kGood;
65 uint32_t
tmp = 0x1<<dbStatus;
71 "Unmatched DB status, returning kGood";
84 for (
int sev=
kBad;sev>=0;--sev){
90 LogDebug(
"EcalSeverityLevelAlgo")<<
"Unmatched Flag , returning kGood";
T getParameter(std::string const &) const
EcalSeverityLevelAlgo(const edm::ParameterSet &p)
float timeThresh_
Return kTime only if the rechit is flagged kOutOfTime and E>timeThresh_.
std::vector< T >::const_iterator const_iterator
EcalSeverityLevel severityLevel(const DetId &id, const EcalRecHitCollection &rhs) const
Evaluate status from id.
bool checkFlag(int flag) const
check if the flag is true
std::vector< uint32_t > flagMask_
Configure which EcalRecHit::Flag is mapped into which EcalSeverityLevel.
const_iterator end() const
std::vector< Item >::const_iterator const_iterator
const EcalChannelStatus * chStatus_
bool checkFlagMask(uint32_t mask) const
apply a bitmask to our flags. Experts only
std::vector< std::vector< double > > tmp
iterator find(key_type k)
const_iterator find(uint32_t rawId) const
const_iterator end() const
std::vector< uint32_t > dbstatusMask_
Configure which DBStatus::Flag is mapped into which EcalSeverityLevel.