40 std::vector<EcalDQMStatusDictionary::codeDef> dictionary;
44 if ( c.
find( edm::eventsetup::EventSetupRecordKey::makeKey< EcalDQMChannelStatusRcd >() ) ) {
51 if ( c.
find( edm::eventsetup::EventSetupRecordKey::makeKey< EcalDQMTowerStatusRcd >() ) ) {
59 for (
int ic=1; ic<=1700; ic++ ) {
62 if ( channelStatus ) {
64 if ( it != channelStatus->
end() ) {
65 if ( it->getStatusCode() != 0 ) {
66 if (
verbose_ )
std::cout <<
"# EB:channel, ic=" << ic <<
" hi=" <<
id.hashedIndex() <<
" status=" << it->getStatusCode() << std::endl;
67 std::vector<EcalDQMStatusDictionary::codeDef> codes;
69 for (
unsigned int i=0;
i<codes.size();
i++ ) {
78 for (
int ix=1; ix<=17; ix++ ) {
79 for (
int iy=1; iy<=72; iy++ ) {
84 if ( it != towerStatus->
end() ) {
85 if ( it->getStatusCode() != 0 ) {
86 if (
verbose_ )
std::cout <<
"# EB:tower, tt=" <<
Numbers::iTT(
id) <<
" hi=" <<
id.hashedIndex() <<
" status=" << it->getStatusCode() << std::endl;
87 std::vector<EcalDQMStatusDictionary::codeDef> codes;
89 for (
unsigned int i=0;
i<codes.size();
i++ ) {
100 if ( it != towerStatus->
end() ) {
101 if ( it->getStatusCode() != 0 ) {
102 if (
verbose_ )
std::cout <<
"# EB:tower, tt=" <<
Numbers::iTT(
id) <<
" hi=" <<
id.hashedIndex() <<
" status=" << it->getStatusCode() << std::endl;
103 std::vector<EcalDQMStatusDictionary::codeDef> codes;
105 for (
unsigned int i=0;
i<codes.size();
i++ ) {
116 for (
int ix=1; ix<=100; ix++ ) {
117 for (
int iy=1; iy<=100; iy++ ) {
120 if ( channelStatus ) {
122 if ( it != channelStatus->
end() ) {
123 if ( it->getStatusCode() != 0 ) {
125 std::vector<EcalDQMStatusDictionary::codeDef> codes;
127 for (
unsigned int i=0;
i<codes.size();
i++ ) {
136 if ( channelStatus ) {
138 if ( it != channelStatus->
end() ) {
139 if ( it->getStatusCode() != 0 ) {
141 std::vector<EcalDQMStatusDictionary::codeDef> codes;
143 for (
unsigned int i=0;
i<codes.size();
i++ ) {
153 for (
int ix=1; ix<=20; ix++ ) {
154 for (
int iy=1; iy<=20; iy++ ) {
159 if ( it != towerStatus->
end() ) {
160 if ( it->getStatusCode() != 0 ) {
162 std::vector<EcalDQMStatusDictionary::codeDef> codes;
164 for (
unsigned int i=0;
i<codes.size();
i++ ) {
175 if ( it != towerStatus->
end() ) {
176 if ( it->getStatusCode() != 0 ) {
178 std::vector<EcalDQMStatusDictionary::codeDef> codes;
180 for (
unsigned int i=0;
i<codes.size();
i++ ) {
static bool validDetId(int ix, int iy, int iz)
T getUntrackedParameter(std::string const &, T const &) const
static std::string sEE(const unsigned ism)
static void getCodes(std::vector< codeDef > &codeVec, uint32_t code)
const_iterator end() const
Some "id" conversions.
static std::string sEB(const unsigned ism)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
const_iterator find(uint32_t rawId) const
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
static void getDictionary(std::vector< codeDef > &dict)
static unsigned iSC(const EcalScDetId &id)
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
std::vector< Item >::const_iterator const_iterator
T const * product() const
static bool validDetId(int iz, EcalSubdetector sd, int i, int j)
check if a valid index combination
static unsigned indexEE(const unsigned ism, const unsigned ix, const unsigned iy)
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
const_iterator find(uint32_t rawId) const
const_iterator end() const
EcalDQMStatusReader(const edm::ParameterSet &ps)
std::vector< Item >::const_iterator const_iterator
static const int SMCRYSTALMODE
int ism(int ieta, int iphi)
static unsigned iTT(const unsigned ism, const EcalSubdetector subdet, const unsigned i1, const unsigned i2)