42 for (
int i = 0;
i < 18;
i++) {
94 for (
int i = 0;
i < 18;
i++) {
120 for (
int i = 0;
i < 18;
i++) {
151 for (
int i = 0;
i < 18;
i++) {
159 name =
"EESFT MEM front-end status " +
Numbers::sEE(i+1);
165 name =
"EESFT front-end status bits " +
Numbers::sEE(i+1);
189 name =
"EESFT weighted frontend errors by lumi";
192 for (
int i = 0;
i < 18;
i++) {
202 if ( !
init_ )
return;
212 for (
int i = 0;
i < 18;
i++) {
218 for (
int i = 0;
i < 18;
i++) {
262 float xism = ism + 0.5;
266 const std::vector<short>
status = dcchItr->getFEStatus();
268 for (
unsigned int itt=1; itt<=status.size(); itt++ ) {
270 if ( itt > 70 )
continue;
272 if ( itt >= 42 && itt <= 68 )
continue;
274 if ( ( ism == 8 || ism == 17 ) && ( itt >= 18 && itt <= 24 ) )
continue;
276 if ( itt >= 1 && itt <= 41 ) {
280 for (
unsigned int i=0;
i<crystals->size();
i++ ) {
287 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
289 float xix = ix - 0.5;
290 float xiy = iy - 0.5;
292 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 ) ) {
299 }
else if ( itt == 69 || itt == 70 ) {
301 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 ) ) {
315 edm::LogWarning(
"EEStatusFlagsTask") <<
"EcalRawDataCollection not available";
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
static std::string sEE(const unsigned ism)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void rmdir(const std::string &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Some "id" conversions.
virtual ~EEStatusFlagsTask()
Destructor.
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.
MonitorElement * meFEchErrorsByLumi_
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
BeginLuminosityBlock.
void beginJob(void)
BeginJob.
static int ix0EE(const unsigned ism)
MonitorElement * meEvtType_[18]
static int iy0EE(const unsigned ism)
edm::EDGetTokenT< EcalRawDataCollection > EcalRawDataCollection_
void tag(MonitorElement *me, unsigned int myTag)
static std::vector< DetId > * crystals(const EcalTrigTowerDetId &id)
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
EndLuminosityBlock.
void removeElement(const std::string &name)
EEStatusFlagsTask(const edm::ParameterSet &ps)
Constructor.
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
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)
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)
MonitorElement * meFEchErrors_[18][3]
void setCurrentFolder(const std::string &fullpath)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.