22 for(std::vector<MESet const*>::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr){
23 MESetChannel const* meset(dynamic_cast<MESetChannel const*>(*sItr));
32 for(std::vector<MESet const*>::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr)
40 for(std::vector<MESet const*>::iterator sItr(
sources_.begin()); sItr !=
sources_.end(); ++sItr)
49 std::map<std::string, std::vector<MEData> >::const_iterator dataItr(
meData.find(_worker));
50 if(dataItr ==
meData.end())
51 throw cms::Exception(
"InvalidCall") <<
"DQWorker " << _worker <<
" is not defined";
82 for(vector<DetId>::iterator idItr(ids.begin()); idItr != ids.end(); ++idItr){
95 if(tItr !=
towerStatus->
end()) doMask |= tItr->getStatusCode() & _mask;
103 for(
int ix(1); ix <= 5; ix++){
104 for(
int iy(1); iy <= 5; iy++){
106 int iix((scid.
ix() - 1) * 5 + ix);
107 int iiy((scid.
iy() - 1) * 5 + iy);
116 if(tItr !=
towerStatus->
end()) doMask |= tItr->getStatusCode() & _mask;
122 for(
int ix(1); ix <= 5; ix++){
123 for(
int iy(1); iy <= 5; iy++){
125 int iix((scid.
ix() - 1) * 5 + ix);
126 int iiy((scid.
iy() - 1) * 5 + iy);
140 if(tItr !=
towerStatus->
end()) doMask |= tItr->getStatusCode() & _mask;
150 for(vector<DetId>::iterator idItr(ids.begin()); idItr != ids.end(); ++idItr){
157 if(idItr != ids.begin())
continue;
159 if(tItr !=
towerStatus->
end()) doMask |= tItr->getStatusCode() & _mask;
163 if(tItr !=
towerStatus->
end()) doMask |= tItr->getStatusCode() & _mask;
175 float quality(doMask ? _quality + 3. : _quality);
177 MEs_[_iME]->setBinContent(_id, quality);
const_iterator end() const
const EcalElectronicsMapping * getElectronicsMap()
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
void source_(unsigned, std::string const &, unsigned, edm::ParameterSet const &)
const_iterator find(uint32_t rawId) const
virtual void initialize()
uint32_t rawId() const
get the raw id
static EcalDQMChannelStatus const * channelStatus
EcalTrigTowerDetId tower() const
get the HCAL/trigger iphi of this crystal
DQWorkerClient(const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool isEcalScDetId(const DetId &_id)
void checkDirectory() const
std::vector< MESet * > MEs_
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
std::vector< Item >::const_iterator const_iterator
const EcalTrigTowerConstituentsMap * getTrigTowerMap()
char data[epos_bytes_allocation]
std::vector< MESet const * > sources_
MESet * createMESet_(std::string const &, MEData const &, bool _readOnly=false) const
const_iterator find(uint32_t rawId) const
const_iterator end() const
std::vector< Item >::const_iterator const_iterator
void fillQuality_(unsigned, DetId const &, uint32_t, float)
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
static EcalDQMTowerStatus const * towerStatus
static std::map< std::string, std::vector< MEData > > meData