60 for (
int i = 0;
i < 18;
i++) {
163 for (
int i = 0;
i < 18;
i++) {
233 for (
int i = 0;
i < 18;
i++) {
248 meEERecHitEnergy_[
i] =
dqmStore_->
bookProfile2D(name, name, 50,
Numbers::ix0EE(i+1)+0.,
Numbers::ix0EE(i+1)+50., 50,
Numbers::iy0EE(i+1)+0.,
Numbers::iy0EE(i+1)+50., 4096, 0., 4096.,
"s");
261 name =
"EEOT rec hit spectrum EE -";
265 name =
"EEOT rec hit spectrum EE +";
269 name =
"EEOT digi occupancy EE -";
273 name =
"EEOT digi occupancy EE - projection eta";
277 name =
"EEOT digi occupancy EE - projection phi";
282 name =
"EEOT digi occupancy EE +";
286 name =
"EEOT digi occupancy EE + projection eta";
290 name =
"EEOT digi occupancy EE + projection phi";
295 name =
"EEOT rec hit occupancy EE -";
299 name =
"EEOT rec hit occupancy EE - projection eta";
303 name =
"EEOT rec hit occupancy EE - projection phi";
308 name =
"EEOT rec hit occupancy EE +";
312 name =
"EEOT rec hit occupancy EE + projection eta";
316 name =
"EEOT rec hit occupancy EE + projection phi";
321 name =
"EEOT rec hit thr occupancy EE -";
325 name =
"EEOT rec hit thr occupancy EE - projection eta";
329 name =
"EEOT rec hit thr occupancy EE - projection phi";
334 name =
"EEOT rec hit thr occupancy EE +";
338 name =
"EEOT rec hit thr occupancy EE + projection eta";
342 name =
"EEOT rec hit thr occupancy EE + projection phi";
347 name =
"EEOT TP digi occupancy EE -";
351 name =
"EEOT TP digi occupancy EE - projection eta";
355 name =
"EEOT TP digi occupancy EE - projection phi";
360 name =
"EEOT TP digi occupancy EE +";
364 name =
"EEOT TP digi occupancy EE + projection eta";
368 name =
"EEOT TP digi occupancy EE + projection phi";
373 name =
"EEOT TP digi thr occupancy EE -";
377 name =
"EEOT TP digi thr occupancy EE - projection eta";
381 name =
"EEOT TP digi thr occupancy EE - projection phi";
386 name =
"EEOT TP digi thr occupancy EE +";
390 name =
"EEOT TP digi thr occupancy EE + projection eta";
394 name =
"EEOT TP digi thr occupancy EE + projection phi";
399 name =
"EEOT test pulse digi occupancy EE -";
404 name =
"EEOT test pulse digi occupancy EE +";
409 name =
"EEOT led digi occupancy EE -";
414 name =
"EEOT led digi occupancy EE +";
419 name =
"EEOT laser digi occupancy EE -";
424 name =
"EEOT laser digi occupancy EE +";
429 name =
"EEOT pedestal digi occupancy EE -";
434 name =
"EEOT pedestal digi occupancy EE +";
445 if ( !
init_ )
return;
452 for (
int i = 0;
i < 18;
i++) {
590 int runtype = dcchItr->getRunType();
617 int need = digis->size();
618 LogDebug(
"EEOccupancyTask") <<
"event " <<
ievt_ <<
" digi collection size " << need;
627 int hi =
id.hashedIndex();
640 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
642 float xix = ix - 0.5;
643 float xiy = iy - 0.5;
645 if ( xix <= 0. || xix >= 100. || xiy <= 0. || xiy >= 100. ) {
647 edm::LogWarning(
"EEOccupancyTask") <<
" sm, ix, iw " << ism <<
" " << ix <<
" " << iy;
648 edm::LogWarning(
"EEOccupancyTask") <<
" xix, xiy " << xix <<
" " << xiy;
656 float xeex = eex - 0.5;
657 float xeey = eey - 0.5;
661 if ( ism >=1 && ism <= 9 ) {
675 if ( ism >=1 && ism <= 9 ) {
683 if ( runType[ism-1] ==
laser ) {
685 if ( ism >=1 && ism <= 9 ) {
693 if ( runType[ism-1] ==
led ) {
695 if ( ism >=1 && ism <= 9 ) {
705 if ( ism >=1 && ism <= 9 ) {
734 float PnId = pnItr->id().iPnId();
739 for (
int chInStrip = 1; chInStrip <= 5; chInStrip++){
741 st = chInStrip - 0.5;
761 int nebrh = rechits->size();
762 LogDebug(
"EEOccupancyTask") <<
"event " <<
ievt_ <<
" rec hits collection size " << nebrh;
771 int hi =
id.hashedIndex();
785 float xix = ( ism >= 1 && ism <= 9 ) ? 101 - eex - 0.5 : eex - 0.5;
786 float xiy = eey - 0.5;
789 float xeex = eex - 0.5;
790 float xeey = eey - 0.5;
794 if ( ism >= 1 && ism <= 9 ) {
804 uint32_t
flag = rechitItr->recoFlag();
806 uint32_t sev = sevlv->severityLevel(
id, *rechits);
810 if ( ism >= 1 && ism <= 9 ) {
842 int nebtpg = trigPrimDigis->size();
843 LogDebug(
"EEOccupancyTask") <<
"event " <<
ievt_ <<
" trigger primitives digis collection size " << nebtpg;
853 for (
unsigned int i=0;
i<crystals->size();
i++ ) {
860 int hi =
id.hashedIndex();
871 float xeex = eex - 0.5;
872 float xeey = eey - 0.5;
876 if ( ism >= 1 && ism <= 9 ) {
888 if ( ism >= 1 && ism <= 9 ) {
MonitorElement * meEEPedestalDigiOccupancy_[2]
T getParameter(std::string const &) const
MonitorElement * meEETrigPrimDigiOccupancyProEtaThr_[2]
T getUntrackedParameter(std::string const &, T const &) const
static std::string sEE(const unsigned ism)
void beginJob(void)
BeginJob.
MonitorElement * meEETestPulseDigiOccupancy_[2]
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
MonitorElement * meEERecHitEnergy_[18]
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
Some "id" conversions.
MonitorElement * meEETrigPrimDigiOccupancyProPhi_[2]
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
Geom::Phi< T > phi() const
std::vector< T >::const_iterator const_iterator
MonitorElement * meEELaserDigiOccupancy_[2]
MonitorElement * meEERecHitOccupancyProEtaThr_[2]
edm::InputTag EcalPnDiodeDigiCollection_
MonitorElement * meSpectrum_[18]
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
MonitorElement * meEEDigiOccupancyProEta_[2]
static int ix0EE(const unsigned ism)
MonitorElement * book1DD(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
edm::ESHandle< CaloGeometry > pGeometry_
MonitorElement * meEERecHitOccupancyProPhi_[2]
static int iy0EE(const unsigned ism)
virtual ~EEOccupancyTask()
Destructor.
float geometryEE[EEDetId::kSizeForDenseIndexing][2]
void tag(MonitorElement *me, unsigned int myTag)
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
MonitorElement * meOccupancyMem_[18]
MonitorElement * meEETrigPrimDigiOccupancyThr_[2]
edm::InputTag EcalTrigPrimDigiCollection_
static std::vector< DetId > * crystals(const EcalTrigTowerDetId &id)
edm::InputTag EcalRawDataCollection_
void removeElement(const std::string &name)
std::string getName(Reflex::Type &cc)
MonitorElement * meEERecHitOccupancyProPhiThr_[2]
MonitorElement * meEERecHitOccupancy_[2]
MonitorElement * meEEDigiOccupancy_[2]
MonitorElement * meEETrigPrimDigiOccupancy_[2]
EEOccupancyTask(const edm::ParameterSet &ps)
Constructor.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * meEERecHitOccupancyThr_[2]
MonitorElement * meEEDigiOccupancyProPhi_[2]
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
MonitorElement * meEELedDigiOccupancy_[2]
MonitorElement * meEETrigPrimDigiOccupancyProEta_[2]
edm::InputTag EcalRecHitCollection_
MonitorElement * meOccupancy_[18]
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
MonitorElement * meEERecHitOccupancyProEta_[2]
edm::InputTag EEDigiCollection_
static EcalSubdetector subDet(const EBDetId &id)
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void cleanup(void)
Cleanup.
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)
MonitorElement * meEETrigPrimDigiOccupancyProPhiThr_[2]
MonitorElement * meEERecHitSpectrum_[2]
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")