39 for (
int i = 0;
i < 36;
i++) {
61 name =
"DCSSummaryMap";
68 for (
int i = 0;
i < 36;
i++) {
87 for (
int iett = 0; iett < 34; iett++ ) {
88 for (
int iptt = 0; iptt < 72; iptt++ ) {
93 if ( !iSetup.
find( edm::eventsetup::EventSetupRecordKey::makeKey<EcalDCSTowerStatusRcd>() ) ) {
94 edm::LogWarning(
"EBDcsInfoTask") <<
"EcalDCSTowerStatus record not found";
101 edm::LogWarning(
"EBDcsInfoTask") <<
"EcalDCSTowerStatus record not valid";
106 for(
int iz=-1; iz<=1; iz+=2) {
107 for(
int iptt=0 ; iptt<72; iptt++) {
108 for(
int iett=0 ; iett<17; iett++) {
113 uint16_t dbStatus = 0;
115 if ( dcsStatusIt != dcsStatus->
end() ) dbStatus = dcsStatusIt->getStatusCode();
117 if ( dbStatus > 0 ) {
119 int iettEB = (iz==-1) ? iett : 17+iett;
142 for (
int iett = 0; iett < 34; iett++ ) {
143 for (
int iptt = 0; iptt < 72; iptt++ ) {
160 for (
int i = 0;
i < 36;
i++) {
181 for (
int i = 0;
i < 36;
i++) {
193 float readySumTot = 0.;
195 for (
int iett = 0; iett < 34; iett++ ) {
196 for (
int iptt = 0; iptt < 72; iptt++ ) {
200 int ism = ( iett<17 ) ? iptt/4 : 18+iptt/4;
201 if(ready[iptt][iett]) {
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
void setBinContent(int binx, double content)
set content of bin (1-D)
const_iterator end() const
EBDcsInfoTask(const edm::ParameterSet &ps)
Constructor.
virtual ~EBDcsInfoTask()
Destructor.
MonitorElement * meEBDcsActive_[36]
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
MonitorElement * meEBDcsActiveMap_
Some "id" conversions.
static std::string sEB(const unsigned ism)
void fillMonitorElements(int ready[72][34])
const_iterator find(uint32_t rawId) const
void beginJob(void)
BeginJob.
MonitorElement * bookFloat(const char *name)
Book float.
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
uint32_t rawId() const
get the raw id
void removeElement(const std::string &name)
void cleanup(void)
Cleanup.
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
BeginLuminosityBlock.
T const * product() const
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
static bool validDetId(int iz, EcalSubdetector sd, int i, int j)
check if a valid index combination
MonitorElement * meEBDcsFraction_
std::vector< Item >::const_iterator const_iterator
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
int ism(int ieta, int iphi)
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
EndLuminosityBlock.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)
void setCurrentFolder(const std::string &fullpath)