49 for (
int i = 0;
i < 36;
i++) {
106 for (
int i = 0;
i < 36;
i++) {
137 name =
"EBIT DCC size error";
139 for (
int i = 0;
i < 36;
i++) {
147 name =
"EBIT weighted integrity errors by lumi";
150 for (
int i = 0;
i < 36;
i++) {
156 for (
int i = 0;
i < 36;
i++) {
166 for (
int i = 0;
i < 36;
i++) {
176 for (
int i = 0;
i < 36;
i++) {
186 for (
int i = 0;
i < 36;
i++) {
196 for (
int i = 0;
i < 36;
i++) {
206 for (
int i = 0;
i < 36;
i++) {
218 for (
int i = 0;
i < 36;
i++) {
228 for (
int i = 0;
i < 36;
i++) {
238 for (
int i = 0;
i < 36;
i++) {
253 if ( !
init_ )
return;
271 for (
int i = 0;
i < 36;
i++) {
277 for (
int i = 0;
i < 36;
i++) {
283 for (
int i = 0;
i < 36;
i++) {
289 for (
int i = 0;
i < 36;
i++) {
295 for (
int i = 0;
i < 36;
i++) {
301 for (
int i = 0;
i < 36;
i++) {
307 for (
int i = 0;
i < 36;
i++) {
313 for (
int i = 0;
i < 36;
i++) {
319 for (
int i = 0;
i < 36;
i++) {
356 int ie = (ic-1)/20 + 1;
357 int ip = (ic-1)%20 + 1;
360 float xism = ism + 0.5;
362 float xie = ie - 0.5;
363 float xip = ip - 0.5;
372 edm::LogWarning(
"EBIntegrityTask") <<
"EBDetIdCollection1 not available";
385 int ie = (ic-1)/20 + 1;
386 int ip = (ic-1)%20 + 1;
389 float xism = ism + 0.5;
391 float xie = ie - 0.5;
392 float xip = ip - 0.5;
401 edm::LogWarning(
"EBIntegrityTask") <<
"EBDetIdCollection2 not available";
414 int ie = (ic-1)/20 + 1;
415 int ip = (ic-1)%20 + 1;
418 float xism = ism + 0.5;
420 float xie = ie - 0.5;
421 float xip = ip - 0.5;
430 edm::LogWarning(
"EBIntegrityTask") <<
"EBDetIdCollection3 not available";
442 int itt = idItr->towerId();
444 int iet = (itt-1)/4 + 1;
445 int ipt = (itt-1)%4 + 1;
448 float xismt = ismt + 0.5;
450 float xiet = iet - 0.5;
451 float xipt = ipt - 0.5;
460 edm::LogWarning(
"EBIntegrityTask") <<
"EcalElectronicsIdCollection1 not available";
472 int itt = idItr->towerId();
474 int iet = (itt-1)/4 + 1;
475 int ipt = (itt-1)%4 + 1;
478 float xismt = ismt + 0.5;
480 float xiet = iet - 0.5;
481 float xipt = ipt - 0.5;
490 edm::LogWarning(
"EBIntegrityTask") <<
"EcalElectronicsIdCollection2 not available";
504 int itt = idItr->towerId();
505 float iTt = itt + 0.5 - 69;
513 edm::LogWarning(
"EBIntegrityTask") <<
"EcalElectronicsIdCollection3 not available";
527 int itt = idItr->towerId();
528 float iTt = itt + 0.5 - 69;
536 edm::LogWarning(
"EBIntegrityTask") <<
"EcalElectronicsIdCollection4 not available";
550 int chid = idItr->channelId();
554 int itt = idItr->towerId();
557 float xie = ie - 0.5;
558 float xip = ip - 0.5;
566 edm::LogWarning(
"EBIntegrityTask") <<
"EcalElectronicsIdCollection5 not available";
580 int chid = idItr->channelId();
584 int itt = idItr->towerId();
587 float xie = ie - 0.5;
588 float xip = ip - 0.5;
596 edm::LogWarning(
"EBIntegrityTask") <<
"EcalElectronicsIdCollection6 not available";
T getParameter(std::string const &) const
edm::EDGetTokenT< EBDetIdCollection > EBDetIdCollection2_
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
edm::EDGetTokenT< EBDetIdCollection > EBDetIdCollection1_
edm::EDGetTokenT< EBDetIdCollection > EBDetIdCollection3_
MonitorElement * meIntegrityTTBlockSize[36]
MonitorElement * meIntegrityMemTTBlockSize[36]
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
virtual ~EBIntegrityTask()
Destructor.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Some "id" conversions.
static std::string sEB(const unsigned ism)
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 * meIntegrityGainSwitch[36]
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
EndLuminosityBlock.
EBIntegrityTask(const edm::ParameterSet &ps)
Constructor.
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection6_
MonitorElement * meIntegrityMemGain[36]
static const int chMemAbscissa[25]
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection4_
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
void tag(MonitorElement *me, unsigned int myTag)
MonitorElement * meIntegrityGain[36]
MonitorElement * meIntegrityErrorsByLumi
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
MonitorElement * meIntegrityMemTTId[36]
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection2_
void removeElement(const std::string &name)
MonitorElement * meIntegrityMemChId[36]
int ic() const
get ECAL/crystal number inside SM
MonitorElement * meIntegrityTTId[36]
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection1_
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
BeginLuminosityBlock.
static const int chMemOrdinate[25]
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
MonitorElement * meIntegrityDCCSize
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection3_
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
MonitorElement * meIntegrityChId[36]
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection5_
static EcalSubdetector subDet(const EBDetId &id)
void cleanup(void)
Cleanup.
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)
void setCurrentFolder(const std::string &fullpath)
void beginJob(void)
BeginJob.
std::vector< EBDetId >::const_iterator const_iterator