50 for (
int i = 0;
i < 18;
i++) {
106 for (
int i = 0;
i < 18;
i++) {
137 name =
"EEIT DCC size error";
139 for (
int i = 0;
i < 18;
i++) {
147 name =
"EEIT weighted integrity errors by lumi";
150 for (
int i = 0;
i < 18;
i++) {
156 for (
int i = 0;
i < 18;
i++) {
167 for (
int i = 0;
i < 18;
i++) {
178 for (
int i = 0;
i < 18;
i++) {
189 for (
int i = 0;
i < 18;
i++) {
200 for (
int i = 0;
i < 18;
i++) {
211 for (
int i = 0;
i < 18;
i++) {
223 for (
int i = 0;
i < 18;
i++) {
233 for (
int i = 0;
i < 18;
i++) {
243 for (
int i = 0;
i < 18;
i++) {
257 if ( !
init_ )
return;
276 for (
int i = 0;
i < 18;
i++) {
282 for (
int i = 0;
i < 18;
i++) {
288 for (
int i = 0;
i < 18;
i++) {
294 for (
int i = 0;
i < 18;
i++) {
300 for (
int i = 0;
i < 18;
i++) {
306 for (
int i = 0;
i < 18;
i++) {
312 for (
int i = 0;
i < 18;
i++) {
318 for (
int i = 0;
i < 18;
i++) {
324 for (
int i = 0;
i < 18;
i++) {
364 float xism = ism + 0.5;
366 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
368 float xix = ix - 0.5;
369 float xiy = iy - 0.5;
378 edm::LogWarning(
"EEIntegrityTask") <<
"EEDetIdCollection1 not available";
394 float xism = ism + 0.5;
396 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
398 float xix = ix - 0.5;
399 float xiy = iy - 0.5;
408 edm::LogWarning(
"EEIntegrityTask") <<
"EEDetIdCollection2 not available";
424 float xism = ism + 0.5;
426 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
428 float xix = ix - 0.5;
429 float xiy = iy - 0.5;
438 edm::LogWarning(
"EEIntegrityTask") <<
"EEDetIdCollection3 not available";
451 float xism = ism + 0.5;
455 for (
unsigned int i=0;
i<crystals->size();
i++ ) {
462 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
464 float xix = ix - 0.5;
465 float xiy = iy - 0.5;
476 edm::LogWarning(
"EEIntegrityTask") <<
"EcalElectronicsIdCollection1 not available";
489 float xism = ism + 0.5;
493 for (
unsigned int i=0;
i<crystals->size();
i++ ) {
500 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
502 float xix = ix - 0.5;
503 float xiy = iy - 0.5;
514 edm::LogWarning(
"EEIntegrityTask") <<
"EcalElectronicsIdCollection2 not available";
528 int itt = idItr->towerId();
529 float iTt = itt + 0.5 - 69;
537 edm::LogWarning(
"EEIntegrityTask") <<
"EcalElectronicsIdCollection3 not available";
551 int itt = idItr->towerId();
552 float iTt = itt + 0.5 - 69;
560 edm::LogWarning(
"EEIntegrityTask") <<
"EcalElectronicsIdCollection4 not available";
574 int chid = idItr->channelId();
578 int itt = idItr->towerId();
581 float xix = ie - 0.5;
582 float xiy = ip - 0.5;
590 edm::LogWarning(
"EEIntegrityTask") <<
"EcalElectronicsIdCollection5 not available";
604 int chid = idItr->channelId();
608 int itt = idItr->towerId();
611 float xix = ie - 0.5;
612 float xiy = ip - 0.5;
620 edm::LogWarning(
"EEIntegrityTask") <<
"EcalElectronicsIdCollection6 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 * meIntegrityTTId[18]
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.
MonitorElement * meIntegrityErrorsByLumi
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
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)
MonitorElement * meIntegrityTTBlockSize[18]
void cleanup(void)
Cleanup.
MonitorElement * meIntegrityDCCSize
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
BeginLuminosityBlock.
static int ix0EE(const unsigned ism)
edm::EDGetTokenT< EEDetIdCollection > EEDetIdCollection3_
static int iy0EE(const unsigned ism)
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection5_
void tag(MonitorElement *me, unsigned int myTag)
static std::vector< DetId > * crystals(const EcalTrigTowerDetId &id)
MonitorElement * meIntegrityGainSwitch[18]
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection1_
void beginJob(void)
BeginJob.
MonitorElement * meIntegrityMemChId[18]
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
void removeElement(const std::string &name)
edm::EDGetTokenT< EEDetIdCollection > EEDetIdCollection2_
static const int chMemAbscissa[25]
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection6_
MonitorElement * meIntegrityGain[18]
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
MonitorElement * meIntegrityMemTTId[18]
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
static const int chMemOrdinate[25]
EEIntegrityTask(const edm::ParameterSet &ps)
Constructor.
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection2_
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
EndLuminosityBlock.
MonitorElement * meIntegrityMemGain[18]
static EcalSubdetector subDet(const EBDetId &id)
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
MonitorElement * meIntegrityChId[18]
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection4_
edm::EDGetTokenT< EEDetIdCollection > EEDetIdCollection1_
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)
virtual ~EEIntegrityTask()
Destructor.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * meIntegrityMemTTBlockSize[18]
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection3_
std::vector< EEDetId >::const_iterator const_iterator