42 for (
int i = 0;
i < 36;
i++) {
64 name =
"DAQSummaryMap";
71 for (
int i = 0;
i < 36;
i++) {
90 for (
int iett = 0; iett < 34; iett++ ) {
91 for (
int iptt = 0; iptt < 72; iptt++ ) {
97 if ( !iSetup.
find( edm::eventsetup::EventSetupRecordKey::makeKey<EcalDAQTowerStatusRcd>() ) ) {
98 edm::LogWarning(
"EBDaqInfoTask") <<
"EcalDAQTowerStatus record not found";
105 edm::LogWarning(
"EBDaqInfoTask") <<
"EcalDAQTowerStatus record not valid";
110 for(
int iz=-1; iz<=1; iz+=2) {
111 for(
int iptt=0 ; iptt<72; iptt++) {
112 for(
int iett=0 ; iett<17; iett++) {
117 uint16_t dbStatus = 0;
119 if ( daqStatusIt != daqStatus->
end() ) dbStatus = daqStatusIt->getStatusCode();
121 if ( dbStatus > 0 ) {
123 int iettEB = (iz==-1) ? iett : 17+iett;
147 for (
int iett = 0; iett < 34; iett++ ) {
148 for (
int iptt = 0; iptt < 72; iptt++ ) {
165 for (
int i = 0;
i < 36;
i++) {
186 for (
int i = 0;
i < 36;
i++) {
198 float readySumTot = 0.;
200 for (
int iett = 0; iett < 34; iett++ ) {
201 for (
int iptt = 0; iptt < 72; iptt++ ) {
205 int ism = ( iett<17 ) ? iptt/4 : 18+iptt/4;
206 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.