27 std::vector<std::string>
flags;
33 for (
unsigned int is = 0; is != severities.size(); ++is) {
38 for (
unsigned int ifi = 0; ifi !=
flags.size(); ++ifi) {
50 std::vector<std::string> dbflags;
54 for (
unsigned int is = 0; is != dbseverities.size(); ++is) {
58 dbflags = dbps.
getParameter<std::vector<std::string> >(severities[is]);
60 for (
unsigned int ifi = 0; ifi != dbflags.size(); ++ifi) {
90 uint16_t dbStatus = chIt->getStatusCode();
99 uint32_t
tmp = 0x1 << dbStatus;
105 LogDebug(
"EcalSeverityLevelAlgo") <<
"Unmatched DB status, returning kGood";
118 for (
int sev =
kBad; sev >= 0; --sev) {
126 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
EcalSeverityLevel::SeverityLevel severityLevel(const DetId &id) const
Evaluate status from id use channelStatus from DB.
bool checkFlagMask(uint32_t mask) const
apply a bitmask to our flags. Experts only
std::vector< uint32_t > flagMask_
Configure which EcalRecHit::Flag is mapped into which EcalSeverityLevel.
const_iterator find(uint32_t rawId) const
const_iterator end() const
std::vector< Item >::const_iterator const_iterator
const EcalChannelStatus * chStatus_
iterator find(key_type k)
std::vector< uint32_t > dbstatusMask_
Configure which DBStatus::Flag is mapped into which EcalSeverityLevel.
std::vector< std::string > getParameterNames() const
bool checkFlag(int flag) const
check if the flag is true