40 for (
int i = 0;
i < 36;
i++) {
62 name =
"DAQSummaryMap";
69 for (
int i = 0;
i < 36;
i++) {
88 for (
int iett = 0; iett < 34; iett++ ) {
89 for (
int iptt = 0; iptt < 72; iptt++ ) {
95 if ( !iSetup.
find( edm::eventsetup::EventSetupRecordKey::makeKey<EcalDAQTowerStatusRcd>() ) ) {
96 edm::LogWarning(
"EBDaqInfoTask") <<
"EcalDAQTowerStatus record not found";
103 edm::LogWarning(
"EBDaqInfoTask") <<
"EcalDAQTowerStatus record not valid";
108 for(
int iz=-1; iz<=1; iz+=2) {
109 for(
int iptt=0 ; iptt<72; iptt++) {
110 for(
int iett=0 ; iett<17; iett++) {
115 uint16_t dbStatus = 0;
117 if ( daqStatusIt != daqStatus->
end() ) dbStatus = daqStatusIt->getStatusCode();
119 if ( dbStatus > 0 ) {
121 int iettEB = (iz==-1) ? iett : 17+iett;
145 for (
int iett = 0; iett < 34; iett++ ) {
146 for (
int iptt = 0; iptt < 72; iptt++ ) {
163 for (
int i = 0;
i < 36;
i++) {
184 for (
int i = 0;
i < 36;
i++) {
196 float readySumTot = 0.;
198 for (
int iett = 0; iett < 34; iett++ ) {
199 for (
int iptt = 0; iptt < 72; iptt++ ) {
203 int ism = ( iett<17 ) ? iptt/4 : 18+iptt/4;
204 if(ready[iptt][iett]) {
void cleanup(void)
Cleanup.
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
BeginLuminosityBlock.
void setBinContent(int binx, double content)
set content of bin (1-D)
const_iterator end() const
void fillMonitorElements(int ready[72][34])
Some "id" conversions.
static std::string sEB(const unsigned ism)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
const_iterator find(uint32_t rawId) const
MonitorElement * bookFloat(const char *name)
Book float.
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
uint32_t rawId() const
get the raw id
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void removeElement(const std::string &name)
MonitorElement * meEBDaqActiveMap_
MonitorElement * meEBDaqFraction_
void beginJob(void)
BeginJob.
T const * product() const
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
EndLuminosityBlock.
virtual ~EBDaqInfoTask()
Destructor.
static bool validDetId(int iz, EcalSubdetector sd, int i, int j)
check if a valid index combination
std::vector< Item >::const_iterator const_iterator
MonitorElement * meEBDaqActive_[36]
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 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)
EBDaqInfoTask(const edm::ParameterSet &ps)
Constructor.
void setCurrentFolder(const std::string &fullpath)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.