55 for (
int i = 0;
i < 18;
i++) {
158 for (
int i = 0;
i < 18;
i++) {
228 for (
int i = 0;
i < 18;
i++) {
243 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");
256 name =
"EEOT rec hit spectrum EE -";
260 name =
"EEOT rec hit spectrum EE +";
264 name =
"EEOT digi occupancy EE -";
268 name =
"EEOT digi occupancy EE - projection eta";
272 name =
"EEOT digi occupancy EE - projection phi";
277 name =
"EEOT digi occupancy EE +";
281 name =
"EEOT digi occupancy EE + projection eta";
285 name =
"EEOT digi occupancy EE + projection phi";
290 name =
"EEOT rec hit occupancy EE -";
294 name =
"EEOT rec hit occupancy EE - projection eta";
298 name =
"EEOT rec hit occupancy EE - projection phi";
303 name =
"EEOT rec hit occupancy EE +";
307 name =
"EEOT rec hit occupancy EE + projection eta";
311 name =
"EEOT rec hit occupancy EE + projection phi";
316 name =
"EEOT rec hit thr occupancy EE -";
320 name =
"EEOT rec hit thr occupancy EE - projection eta";
324 name =
"EEOT rec hit thr occupancy EE - projection phi";
329 name =
"EEOT rec hit thr occupancy EE +";
333 name =
"EEOT rec hit thr occupancy EE + projection eta";
337 name =
"EEOT rec hit thr occupancy EE + projection phi";
342 name =
"EEOT TP digi occupancy EE -";
346 name =
"EEOT TP digi occupancy EE - projection eta";
350 name =
"EEOT TP digi occupancy EE - projection phi";
355 name =
"EEOT TP digi occupancy EE +";
359 name =
"EEOT TP digi occupancy EE + projection eta";
363 name =
"EEOT TP digi occupancy EE + projection phi";
368 name =
"EEOT TP digi thr occupancy EE -";
372 name =
"EEOT TP digi thr occupancy EE - projection eta";
376 name =
"EEOT TP digi thr occupancy EE - projection phi";
381 name =
"EEOT TP digi thr occupancy EE +";
385 name =
"EEOT TP digi thr occupancy EE + projection eta";
389 name =
"EEOT TP digi thr occupancy EE + projection phi";
394 name =
"EEOT test pulse digi occupancy EE -";
399 name =
"EEOT test pulse digi occupancy EE +";
404 name =
"EEOT led digi occupancy EE -";
409 name =
"EEOT led digi occupancy EE +";
414 name =
"EEOT laser digi occupancy EE -";
419 name =
"EEOT laser digi occupancy EE +";
424 name =
"EEOT pedestal digi occupancy EE -";
429 name =
"EEOT pedestal digi occupancy EE +";
440 if ( !
init_ )
return;
447 for (
int i = 0;
i < 18;
i++) {
585 int runtype = dcchItr->getRunType();
605 edm::LogWarning(
"EEOccupancyTask") <<
"EcalRawDataCollection not available";
612 int need = digis->size();
613 LogDebug(
"EEOccupancyTask") <<
"event " <<
ievt_ <<
" digi collection size " << need;
622 int hi =
id.hashedIndex();
635 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
637 float xix = ix - 0.5;
638 float xiy = iy - 0.5;
640 if ( xix <= 0. || xix >= 100. || xiy <= 0. || xiy >= 100. ) {
642 edm::LogWarning(
"EEOccupancyTask") <<
" sm, ix, iw " << ism <<
" " << ix <<
" " << iy;
643 edm::LogWarning(
"EEOccupancyTask") <<
" xix, xiy " << xix <<
" " << xiy;
651 float xeex = eex - 0.5;
652 float xeey = eey - 0.5;
656 if ( ism >=1 && ism <= 9 ) {
670 if ( ism >=1 && ism <= 9 ) {
678 if ( runType[ism-1] ==
laser ) {
680 if ( ism >=1 && ism <= 9 ) {
688 if ( runType[ism-1] ==
led ) {
690 if ( ism >=1 && ism <= 9 ) {
700 if ( ism >=1 && ism <= 9 ) {
712 edm::LogWarning(
"EEOccupancyTask") <<
"EEDigiCollection not available";
729 float PnId = pnItr->id().iPnId();
734 for (
int chInStrip = 1; chInStrip <= 5; chInStrip++){
736 st = chInStrip - 0.5;
745 edm::LogWarning(
"EEOccupancyTask") <<
"EcalPnDiodeDigiCollection not available";
756 int nebrh = rechits->size();
757 LogDebug(
"EEOccupancyTask") <<
"event " <<
ievt_ <<
" rec hits collection size " << nebrh;
766 int hi =
id.hashedIndex();
780 float xix = ( ism >= 1 && ism <= 9 ) ? 101 - eex - 0.5 : eex - 0.5;
781 float xiy = eey - 0.5;
784 float xeex = eex - 0.5;
785 float xeey = eey - 0.5;
789 if ( ism >= 1 && ism <= 9 ) {
799 uint32_t flag = rechitItr->recoFlag();
801 uint32_t sev = sevlv->severityLevel(
id, *rechits);
805 if ( ism >= 1 && ism <= 9 ) {
829 edm::LogWarning(
"EEOccupancyTask") <<
"EcalRecHitCollection not available";
837 int nebtpg = trigPrimDigis->size();
838 LogDebug(
"EEOccupancyTask") <<
"event " <<
ievt_ <<
" trigger primitives digis collection size " << nebtpg;
848 for (
unsigned int i=0;
i<crystals->size();
i++ ) {
855 int hi =
id.hashedIndex();
866 float xeex = eex - 0.5;
867 float xeey = eey - 0.5;
871 if ( ism >= 1 && ism <= 9 ) {
883 if ( ism >= 1 && ism <= 9 ) {
901 edm::LogWarning(
"EEOccupancyTask") <<
"EcalTrigPrimDigiCollection not available";
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)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Some "id" conversions.
MonitorElement * meEETrigPrimDigiOccupancyProPhi_[2]
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
Geom::Phi< T > phi() const
std::vector< EcalDCCHeaderBlock >::const_iterator const_iterator
MonitorElement * meEELaserDigiOccupancy_[2]
MonitorElement * meEERecHitOccupancyProEtaThr_[2]
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::EDGetTokenT< EcalPnDiodeDigiCollection > EcalPnDiodeDigiCollection_
edm::ESHandle< CaloGeometry > pGeometry_
edm::EDGetTokenT< EcalRecHitCollection > EcalRecHitCollection_
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::EDGetTokenT< EcalTrigPrimDigiCollection > EcalTrigPrimDigiCollection_
static std::vector< DetId > * crystals(const EcalTrigTowerDetId &id)
void removeElement(const std::string &name)
MonitorElement * meEERecHitOccupancyProPhiThr_[2]
MonitorElement * meEERecHitOccupancy_[2]
MonitorElement * meEEDigiOccupancy_[2]
MonitorElement * meEETrigPrimDigiOccupancy_[2]
EEOccupancyTask(const edm::ParameterSet &ps)
Constructor.
MonitorElement * meEERecHitOccupancyThr_[2]
MonitorElement * meEEDigiOccupancyProPhi_[2]
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
edm::EDGetTokenT< EEDigiCollection > EEDigiCollection_
MonitorElement * meEELedDigiOccupancy_[2]
MonitorElement * meEETrigPrimDigiOccupancyProEta_[2]
MonitorElement * meOccupancy_[18]
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
MonitorElement * meEERecHitOccupancyProEta_[2]
edm::EDGetTokenT< EcalRawDataCollection > EcalRawDataCollection_
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")