58 for (
int i = 0;
i < 18;
i++) {
159 for (
int i = 0;
i < 18;
i++) {
227 for (
int i = 0;
i < 18;
i++) {
242 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");
255 name =
"EEOT rec hit spectrum EE -";
259 name =
"EEOT rec hit spectrum EE +";
263 name =
"EEOT digi occupancy EE -";
267 name =
"EEOT digi occupancy EE - projection eta";
271 name =
"EEOT digi occupancy EE - projection phi";
276 name =
"EEOT digi occupancy EE +";
280 name =
"EEOT digi occupancy EE + projection eta";
284 name =
"EEOT digi occupancy EE + projection phi";
289 name =
"EEOT rec hit occupancy EE -";
293 name =
"EEOT rec hit occupancy EE - projection eta";
297 name =
"EEOT rec hit occupancy EE - projection phi";
302 name =
"EEOT rec hit occupancy EE +";
306 name =
"EEOT rec hit occupancy EE + projection eta";
310 name =
"EEOT rec hit occupancy EE + projection phi";
315 name =
"EEOT rec hit thr occupancy EE -";
319 name =
"EEOT rec hit thr occupancy EE - projection eta";
323 name =
"EEOT rec hit thr occupancy EE - projection phi";
328 name =
"EEOT rec hit thr occupancy EE +";
332 name =
"EEOT rec hit thr occupancy EE + projection eta";
336 name =
"EEOT rec hit thr occupancy EE + projection phi";
341 name =
"EEOT TP digi occupancy EE -";
345 name =
"EEOT TP digi occupancy EE - projection eta";
349 name =
"EEOT TP digi occupancy EE - projection phi";
354 name =
"EEOT TP digi occupancy EE +";
358 name =
"EEOT TP digi occupancy EE + projection eta";
362 name =
"EEOT TP digi occupancy EE + projection phi";
367 name =
"EEOT TP digi thr occupancy EE -";
371 name =
"EEOT TP digi thr occupancy EE - projection eta";
375 name =
"EEOT TP digi thr occupancy EE - projection phi";
380 name =
"EEOT TP digi thr occupancy EE +";
384 name =
"EEOT TP digi thr occupancy EE + projection eta";
388 name =
"EEOT TP digi thr occupancy EE + projection phi";
393 name =
"EEOT test pulse digi occupancy EE -";
398 name =
"EEOT test pulse digi occupancy EE +";
403 name =
"EEOT led digi occupancy EE -";
408 name =
"EEOT led digi occupancy EE +";
413 name =
"EEOT laser digi occupancy EE -";
418 name =
"EEOT laser digi occupancy EE +";
423 name =
"EEOT pedestal digi occupancy EE -";
428 name =
"EEOT pedestal digi occupancy EE +";
439 if ( !
init_ )
return;
444 for (
int i = 0;
i < 18;
i++) {
582 int runtype = dcchItr->getRunType();
609 int need = digis->size();
610 LogDebug(
"EEOccupancyTask") <<
"event " <<
ievt_ <<
" digi collection size " << need;
619 int hi =
id.hashedIndex();
632 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
634 float xix = ix - 0.5;
635 float xiy = iy - 0.5;
637 if ( xix <= 0. || xix >= 100. || xiy <= 0. || xiy >= 100. ) {
639 edm::LogWarning(
"EEOccupancyTask") <<
" sm, ix, iw " << ism <<
" " << ix <<
" " << iy;
640 edm::LogWarning(
"EEOccupancyTask") <<
" xix, xiy " << xix <<
" " << xiy;
648 float xeex = eex - 0.5;
649 float xeey = eey - 0.5;
653 if ( ism >=1 && ism <= 9 ) {
667 if ( ism >=1 && ism <= 9 ) {
675 if ( runType[ism-1] ==
laser ) {
677 if ( ism >=1 && ism <= 9 ) {
685 if ( runType[ism-1] ==
led ) {
687 if ( ism >=1 && ism <= 9 ) {
697 if ( ism >=1 && ism <= 9 ) {
726 float PnId = pnItr->id().iPnId();
731 for (
int chInStrip = 1; chInStrip <= 5; chInStrip++){
733 st = chInStrip - 0.5;
753 int nebrh = rechits->size();
754 LogDebug(
"EEOccupancyTask") <<
"event " <<
ievt_ <<
" rec hits collection size " << nebrh;
763 int hi =
id.hashedIndex();
777 float xix = ( ism >= 1 && ism <= 9 ) ? 101 - eex - 0.5 : eex - 0.5;
778 float xiy = eey - 0.5;
781 float xeex = eex - 0.5;
782 float xeey = eey - 0.5;
786 if ( ism >= 1 && ism <= 9 ) {
796 uint32_t
flag = rechitItr->recoFlag();
798 uint32_t sev = sevlv->severityLevel(
id, *rechits);
802 if ( ism >= 1 && ism <= 9 ) {
834 int nebtpg = trigPrimDigis->size();
835 LogDebug(
"EEOccupancyTask") <<
"event " <<
ievt_ <<
" trigger primitives digis collection size " << nebtpg;
845 for (
unsigned int i=0;
i<crystals->size();
i++ ) {
852 int hi =
id.hashedIndex();
863 float xeex = eex - 0.5;
864 float xeey = eey - 0.5;
868 if ( ism >= 1 && ism <= 9 ) {
880 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
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)
static int iy0EE(const int ism)
Some "id" conversions.
MonitorElement * meEETrigPrimDigiOccupancyProPhi_[2]
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
static std::string sEE(const int ism)
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]
MonitorElement * book1DD(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
edm::ESHandle< CaloGeometry > pGeometry_
MonitorElement * meEERecHitOccupancyProPhi_[2]
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)
static int iSM(const int ism, const EcalSubdetector subdet)
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]
MonitorElement * meEERecHitOccupancyProEta_[2]
static int ix0EE(const int ism)
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")