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)
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)