39 for (
int i = 0;
i < 36;
i++) {
91 for (
int i = 0;
i < 36;
i++) {
116 for (
int i = 0;
i < 36;
i++) {
147 for (
int i = 0;
i < 36;
i++) {
154 name =
"EBSFT MEM front-end status " +
Numbers::sEB(i+1);
160 name =
"EBSFT front-end status bits " +
Numbers::sEB(i+1);
184 name =
"EBSFT weighted frontend errors by lumi";
187 for (
int i = 0;
i < 36;
i++) {
197 if ( !
init_ )
return;
208 for (
int i = 0;
i < 36;
i++) {
214 for (
int i = 0;
i < 36;
i++) {
258 float xism = ism + 0.5;
262 const std::vector<short>
status = dcchItr->getFEStatus();
264 for (
unsigned int itt=1; itt<=status.size(); itt++ ) {
266 if ( itt > 70 )
continue;
268 if ( itt >= 1 && itt <= 68 ) {
270 int iet = (itt-1)/4 + 1;
271 int ipt = (itt-1)%4 + 1;
273 float xiet = iet - 0.5;
274 float xipt = ipt - 0.5;
276 if ( ! ( status[itt-1] == 0 || status[itt-1] == 1 || status[itt-1] == 7 || status[itt-1] == 8 || status[itt-1] == 12 || status[itt-1] == 15 ) ) {
281 }
else if ( itt == 69 || itt == 70 ) {
283 if ( ! ( status[itt-1] == 0 || status[itt-1] == 1 || status[itt-1] == 7 || status[itt-1] == 8 || status[itt-1] == 12 || status[itt-1] == 15 ) ) {
297 edm::LogWarning(
"EBStatusFlagsTask") <<
"EcalRawDataCollection not available";
MonitorElement * meFEchErrors_[36][3]
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Some "id" conversions.
static std::string sEB(const unsigned ism)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
std::vector< EcalDCCHeaderBlock >::const_iterator const_iterator
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
void cleanup(void)
Cleanup.
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
EndLuminosityBlock.
void tag(MonitorElement *me, unsigned int myTag)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
void removeElement(const std::string &name)
MonitorElement * meFEchErrorsByLumi_
virtual ~EBStatusFlagsTask()
Destructor.
void beginJob(void)
BeginJob.
MonitorElement * meEvtType_[36]
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
BeginLuminosityBlock.
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
static EcalSubdetector subDet(const EBDetId &id)
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
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)
EBStatusFlagsTask(const edm::ParameterSet &ps)
Constructor.
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)
edm::EDGetTokenT< EcalRawDataCollection > EcalRawDataCollection_
void setCurrentFolder(const std::string &fullpath)