42 std::vector<EcalDQMStatusDictionary::codeDef> dictionary;
46 if ( c.
find( edm::eventsetup::EventSetupRecordKey::makeKey< EcalDQMChannelStatusRcd >() ) ) {
53 if ( c.
find( edm::eventsetup::EventSetupRecordKey::makeKey< EcalDQMTowerStatusRcd >() ) ) {
61 for (
int ic=1; ic<=1700; ic++ ) {
64 if ( channelStatus ) {
66 if ( it != channelStatus->
end() ) {
67 if ( it->getStatusCode() != 0 ) {
68 if (
verbose_ )
std::cout <<
"# EB:channel, ic=" << ic <<
" hi=" <<
id.hashedIndex() <<
" status=" << it->getStatusCode() << std::endl;
69 std::vector<EcalDQMStatusDictionary::codeDef> codes;
71 for (
unsigned int i=0;
i<codes.size();
i++ ) {
80 for (
int ix=1; ix<=17; ix++ ) {
81 for (
int iy=1; iy<=72; iy++ ) {
86 if ( it != towerStatus->
end() ) {
87 if ( it->getStatusCode() != 0 ) {
88 if (
verbose_ )
std::cout <<
"# EB:tower, tt=" <<
Numbers::iTT(
id) <<
" hi=" <<
id.hashedIndex() <<
" status=" << it->getStatusCode() << std::endl;
89 std::vector<EcalDQMStatusDictionary::codeDef> codes;
91 for (
unsigned int i=0;
i<codes.size();
i++ ) {
102 if ( it != towerStatus->
end() ) {
103 if ( it->getStatusCode() != 0 ) {
104 if (
verbose_ )
std::cout <<
"# EB:tower, tt=" <<
Numbers::iTT(
id) <<
" hi=" <<
id.hashedIndex() <<
" status=" << it->getStatusCode() << std::endl;
105 std::vector<EcalDQMStatusDictionary::codeDef> codes;
107 for (
unsigned int i=0;
i<codes.size();
i++ ) {
118 for (
int ix=1; ix<=100; ix++ ) {
119 for (
int iy=1; iy<=100; iy++ ) {
122 if ( channelStatus ) {
124 if ( it != channelStatus->
end() ) {
125 if ( it->getStatusCode() != 0 ) {
127 std::vector<EcalDQMStatusDictionary::codeDef> codes;
129 for (
unsigned int i=0;
i<codes.size();
i++ ) {
138 if ( channelStatus ) {
140 if ( it != channelStatus->
end() ) {
141 if ( it->getStatusCode() != 0 ) {
143 std::vector<EcalDQMStatusDictionary::codeDef> codes;
145 for (
unsigned int i=0;
i<codes.size();
i++ ) {
155 for (
int ix=1; ix<=20; ix++ ) {
156 for (
int iy=1; iy<=20; iy++ ) {
161 if ( it != towerStatus->
end() ) {
162 if ( it->getStatusCode() != 0 ) {
164 std::vector<EcalDQMStatusDictionary::codeDef> codes;
166 for (
unsigned int i=0;
i<codes.size();
i++ ) {
177 if ( it != towerStatus->
end() ) {
178 if ( it->getStatusCode() != 0 ) {
180 std::vector<EcalDQMStatusDictionary::codeDef> codes;
182 for (
unsigned int i=0;
i<codes.size();
i++ ) {
static bool validDetId(int ix, int iy, int iz)
static void getCodes(std::vector< codeDef > &codeVec, uint32_t code)
static std::string sEB(const int ism)
const_iterator end() const
static int iSC(const EcalScDetId &id)
static std::string sEE(const int ism)
static int indexEE(const int ism, const int ix, const int iy)
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
const_iterator find(uint32_t rawId) const
static int iTT(const int ism, const EcalSubdetector subdet, const int i1, const int i2)
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
static void getDictionary(std::vector< codeDef > &dict)
static int iSM(const int ism, const EcalSubdetector subdet)
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
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
const_iterator find(uint32_t rawId) const
const_iterator end() const
std::vector< Item >::const_iterator const_iterator
static const int SMCRYSTALMODE
int ism(int ieta, int iphi)