37 for (
int i = 0;
i < 36;
i++) {
59 name =
"DCSSummaryMap";
66 for (
int i = 0;
i < 36;
i++) {
85 for (
int iett = 0; iett < 34; iett++ ) {
86 for (
int iptt = 0; iptt < 72; iptt++ ) {
91 if ( !iSetup.
find( edm::eventsetup::EventSetupRecordKey::makeKey<EcalDCSTowerStatusRcd>() ) ) {
92 edm::LogWarning(
"EBDcsInfoTask") <<
"EcalDCSTowerStatus record not found";
99 edm::LogWarning(
"EBDcsInfoTask") <<
"EcalDCSTowerStatus record not valid";
104 for(
int iz=-1; iz<=1; iz+=2) {
105 for(
int iptt=0 ; iptt<72; iptt++) {
106 for(
int iett=0 ; iett<17; iett++) {
111 uint16_t dbStatus = 0;
113 if ( dcsStatusIt != dcsStatus->
end() ) dbStatus = dcsStatusIt->getStatusCode();
115 if ( dbStatus > 0 ) {
117 int iettEB = (iz==-1) ? iett : 17+iett;
140 for (
int iett = 0; iett < 34; iett++ ) {
141 for (
int iptt = 0; iptt < 72; iptt++ ) {
158 for (
int i = 0;
i < 36;
i++) {
179 for (
int i = 0;
i < 36;
i++) {
191 float readySumTot = 0.;
193 for (
int iett = 0; iett < 34; iett++ ) {
194 for (
int iptt = 0; iptt < 72; iptt++ ) {
198 int ism = ( iett<17 ) ? iptt/4 : 18+iptt/4;
199 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)