32 std::vector<std::string>
flags;
38 for (
unsigned int is=0;is!=severities.size();++is){
42 flags=ps.
getParameter<std::vector<std::string> >(severities[is]);
44 for (
unsigned int ifi=0;ifi!=flags.size();++ifi){
57 std::vector<uint32_t> dbflags;
61 for (
unsigned int is=0;is!=dbseverities.size();++is){
66 dbflags=dbps.
getParameter<std::vector<uint32_t> >(severities[is]);
68 for (
unsigned int ifi=0;ifi!=dbflags.size();++ifi){
86 using namespace EcalSeverityLevel;
90 if ( rh != rhs.
end() )
97 edm::LogError(
"ObjectNotFound") <<
"Channel Status not set for EcalSeverityLevelAlgo";
101 uint16_t dbStatus = 0;
103 dbStatus = chIt->getStatusCode() & 0x1F;
105 edm::LogError(
"ObjectNotFound") <<
"No channel status found for xtal "
107 <<
"! something wrong with EcalChannelStatus in your DB? ";
111 if (0==dbStatus)
return kGood;
116 uint32_t
tmp = 0x1<<dbStatus;
122 "Unmatched DB status, returning kGood";
130 using namespace EcalSeverityLevel;
137 for (
int sev=
kBad;sev>=0;--sev){
143 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.