57 for (
int i = 0;
i < 36;
i++) {
126 for (
int i = 0;
i < 36;
i++) {
172 for (
int i = 0;
i < 36;
i++) {
186 meEBRecHitEnergy_[
i] =
dqmStore_->
bookProfile2D(name, name, 85, 0., 85., 20, 0., 20., 100, 0., 100.,
"s");
198 name =
"EBOT rec hit spectrum";
202 name =
"EBOT digi occupancy";
206 name =
"EBOT digi occupancy projection eta";
210 name =
"EBOT digi occupancy projection phi";
215 name =
"EBOT rec hit occupancy";
219 name =
"EBOT rec hit occupancy projection eta";
223 name =
"EBOT rec hit occupancy projection phi";
228 name =
"EBOT rec hit thr occupancy";
232 name =
"EBOT rec hit thr occupancy projection eta";
236 name =
"EBOT rec hit thr occupancy projection phi";
241 name =
"EBOT TP digi occupancy";
245 name =
"EBOT TP digi occupancy projection eta";
249 name =
"EBOT TP digi occupancy projection phi";
254 name =
"EBOT TP digi thr occupancy";
258 name =
"EBOT TP digi thr occupancy projection eta";
262 name =
"EBOT TP digi thr occupancy projection phi";
267 name =
"EBOT test pulse digi occupancy";
272 name =
"EBOT laser digi occupancy";
277 name =
"EBOT pedestal digi occupancy";
288 if ( !
init_ )
return;
295 for (
int i = 0;
i < 36;
i++) {
385 int runtype = dcchItr->getRunType();
410 int nebd = digis->size();
411 LogDebug(
"EBOccupancyTask") <<
"event " <<
ievt_ <<
" digi collection size " << nebd;
418 int ie = (ic-1)/20 + 1;
419 int ip = (ic-1)%20 + 1;
423 float xie = ie - 0.5;
424 float xip = ip - 0.5;
426 if ( xie <= 0. || xie >= 85. || xip <= 0. || xip >= 20. ) {
428 edm::LogWarning(
"EBOccupancyTask") <<
" sm, ieta, iphi " << ism <<
" " << ie <<
" " << ip;
429 edm::LogWarning(
"EBOccupancyTask") <<
" xie, xip " << xie <<
" " << xip;
434 int ebeta =
id.ieta();
435 int ebphi =
id.iphi();
437 float xebeta = ebeta - 0.5*
id.zside();
438 float xebphi = ebphi - 0.5;
454 if ( runType[ism-1] ==
laser ) {
487 float PnId = pnItr->id().iPnId();
492 for (
int chInStrip = 1; chInStrip <= 5; chInStrip++){
494 st = chInStrip - 0.5;
514 int nebrh = rechits->size();
515 LogDebug(
"EBOccupancyTask") <<
"event " <<
ievt_ <<
" rec hits collection size " << nebrh;
522 int ebeta =
id.
ieta();
523 int ebphi =
id.iphi();
525 float xebeta = ebeta - 0.5*
id.zside();
526 float xebphi = ebphi - 0.5;
532 int ie = (ic-1)/20 + 1;
533 int ip = (ic-1)%20 + 1;
535 float xie = ie - 0.5;
536 float xip = ip - 0.5;
544 uint32_t
flag = rechitItr->recoFlag();
546 uint32_t sev = sevlv->severityLevel(
id, *rechits);
575 int nebtpg = trigPrimDigis->size();
576 LogDebug(
"EBOccupancyTask") <<
"event " <<
ievt_ <<
" trigger primitives digis collection size " << nebtpg;
582 int ebeta = tpdigiItr->id().ieta();
583 int ebphi = tpdigiItr->id().iphi();
588 if ( ebphi > 72 ) ebphi = ebphi - 72;
590 float xebeta = ebeta-0.5*tpdigiItr->id().zside();
591 float xebphi = ebphi-0.5;
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
virtual ~EBOccupancyTask()
Destructor.
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
MonitorElement * meEBTestPulseDigiOccupancy_
MonitorElement * meEBTrigPrimDigiOccupancyProjEtaThr_
MonitorElement * meEBTrigPrimDigiOccupancy_
MonitorElement * meEBRecHitOccupancyProjEta_
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
MonitorElement * meOccupancy_[36]
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
MonitorElement * meEBTrigPrimDigiOccupancyProjPhi_
Some "id" conversions.
void beginJob(void)
BeginJob.
MonitorElement * meEBDigiOccupancy_
static std::string sEB(const unsigned ism)
std::vector< T >::const_iterator const_iterator
edm::InputTag EBDigiCollection_
MonitorElement * meEBLaserDigiOccupancy_
MonitorElement * book1DD(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1S histogram.
MonitorElement * meEBRecHitOccupancyThr_
MonitorElement * meEBRecHitEnergy_[36]
MonitorElement * meEBRecHitSpectrum_
MonitorElement * meOccupancyMem_[36]
MonitorElement * meEBTrigPrimDigiOccupancyProjEta_
MonitorElement * meEBTrigPrimDigiOccupancyThr_
void tag(MonitorElement *me, unsigned int myTag)
edm::InputTag EcalRecHitCollection_
void cleanup(void)
Cleanup.
MonitorElement * meEBRecHitOccupancyProjPhi_
void removeElement(const std::string &name)
MonitorElement * meSpectrum_[36]
int ieta() const
get the crystal ieta
std::string getName(Reflex::Type &cc)
MonitorElement * meEBRecHitOccupancyProjPhiThr_
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
int ic() const
get ECAL/crystal number inside SM
MonitorElement * meEBDigiOccupancyProjEta_
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
MonitorElement * meEBPedestalDigiOccupancy_
edm::InputTag EcalPnDiodeDigiCollection_
MonitorElement * meEBDigiOccupancyProjPhi_
MonitorElement * meEBTrigPrimDigiOccupancyProjPhiThr_
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
MonitorElement * meEBRecHitOccupancyProjEtaThr_
edm::InputTag EcalRawDataCollection_
static EcalSubdetector subDet(const EBDetId &id)
EBOccupancyTask(const edm::ParameterSet &ps)
Constructor.
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)
edm::InputTag EcalTrigPrimDigiCollection_
MonitorElement * meEBRecHitOccupancy_
void setCurrentFolder(const std::string &fullpath)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
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")