31 std::vector<std::string>
flags;
37 for (
unsigned int is=0;is!=severities.size();++is){
41 flags=ps.
getParameter<std::vector<std::string> >(severities[is]);
43 for (
unsigned int ifi=0;ifi!=flags.size();++ifi){
56 std::vector<uint32_t> dbflags;
60 for (
unsigned int is=0;is!=dbseverities.size();++is){
65 dbflags=dbps.
getParameter<std::vector<uint32_t> >(severities[is]);
67 for (
unsigned int ifi=0;ifi!=dbflags.size();++ifi){
85 using namespace EcalSeverityLevel;
89 if ( rh != rhs.
end() )
96 edm::LogError(
"ObjectNotFound") <<
"Channel Status not set for EcalSeverityLevelAlgo";
100 uint16_t dbStatus = 0;
102 dbStatus = chIt->getStatusCode() & 0x1F;
104 edm::LogError(
"ObjectNotFound") <<
"No channel status found for xtal "
106 <<
"! something wrong with EcalChannelStatus in your DB? ";
110 if (0==dbStatus)
return kGood;
115 uint32_t
tmp = 0x1<<dbStatus;
121 "Unmatched DB status, returning kGood";
129 using namespace EcalSeverityLevel;
136 for (
int sev=
kBad;sev>=0;--sev){
142 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< EcalRecHit >::const_iterator const_iterator
std::vector< Variable::Flags > flags
bool checkFlag(int flag) const
check if the flag is true
std::vector< std::string > getParameterNames() const
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.
EcalSeverityLevel::SeverityLevel severityLevel(const DetId &id, const EcalRecHitCollection &rhs) const
Evaluate status from id.