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){
57 std::vector<std::string> dbflags;
61 for (
unsigned int is=0;is!=dbseverities.size();++is){
66 dbflags=dbps.
getParameter<std::vector<std::string> >(severities[is]);
68 for (
unsigned int ifi=0;ifi!=dbflags.size();++ifi){
87 using namespace EcalSeverityLevel;
91 if ( rh != rhs.
end() )
103 using namespace EcalSeverityLevel;
108 uint16_t dbStatus = chIt->getStatusCode();
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)
EcalSeverityLevel::SeverityLevel severityLevel(const DetId &id) const
Evaluate status from id use channelStatus from DB.
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
std::vector< uint32_t > dbstatusMask_
Configure which DBStatus::Flag is mapped into which EcalSeverityLevel.