CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
EBTrendTask Class Reference

#include <EBTrendTask.h>

Inheritance diagram for EBTrendTask:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 EBTrendTask (const edm::ParameterSet &ps)
 
virtual ~EBTrendTask ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 
void beginJob (void)
 
void beginRun (const edm::Run &r, const edm::EventSetup &c)
 
void cleanup (void)
 
void endJob (void)
 
void endRun (const edm::Run &r, const edm::EventSetup &c)
 
void reset (void)
 
void setup (void)
 
void updateTime (void)
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Attributes

edm::InputTag BasicClusterCollection_
 
int current_time_
 
DQMStoredqmStore_
 
edm::InputTag EBDetIdCollection0_
 
edm::InputTag EBDetIdCollection1_
 
edm::InputTag EBDetIdCollection2_
 
edm::InputTag EBDetIdCollection3_
 
edm::InputTag EBDetIdCollection4_
 
edm::InputTag EBDigiCollection_
 
edm::InputTag EBSRFlagCollection_
 
edm::InputTag EcalElectronicsIdCollection1_
 
edm::InputTag EcalElectronicsIdCollection2_
 
edm::InputTag EcalElectronicsIdCollection3_
 
edm::InputTag EcalElectronicsIdCollection4_
 
edm::InputTag EcalElectronicsIdCollection5_
 
edm::InputTag EcalElectronicsIdCollection6_
 
edm::InputTag EcalPnDiodeDigiCollection_
 
edm::InputTag EcalRecHitCollection_
 
edm::InputTag EcalTrigPrimDigiCollection_
 
bool enableCleanup_
 
edm::InputTag FEDRawDataCollection_
 
int ievt_
 
bool init_
 
int last_time_
 
bool mergeRuns_
 
MonitorElementnBasicClusterHourly_
 
MonitorElementnBasicClusterMinutely_
 
MonitorElementnBasicClusterSizeHourly_
 
MonitorElementnBasicClusterSizeMinutely_
 
MonitorElementnEBDigiHourly_
 
MonitorElementnEBDigiMinutely_
 
MonitorElementnEBSRFlagHourly_
 
MonitorElementnEBSRFlagMinutely_
 
MonitorElementnEcalPnDiodeDigiHourly_
 
MonitorElementnEcalPnDiodeDigiMinutely_
 
MonitorElementnEcalRecHitHourly_
 
MonitorElementnEcalRecHitMinutely_
 
MonitorElementnEcalTrigPrimDigiHourly_
 
MonitorElementnEcalTrigPrimDigiMinutely_
 
MonitorElementnFEDEBRawDataHourly_
 
MonitorElementnFEDEBRawDataMinutely_
 
MonitorElementnIntegrityErrorHourly_
 
MonitorElementnIntegrityErrorMinutely_
 
MonitorElementnSuperClusterHourly_
 
MonitorElementnSuperClusterMinutely_
 
MonitorElementnSuperClusterSizeHourly_
 
MonitorElementnSuperClusterSizeMinutely_
 
std::string prefixME_
 
int start_time_
 
edm::InputTag SuperClusterCollection_
 
bool verbose_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 21 of file EBTrendTask.h.

Constructor & Destructor Documentation

EBTrendTask::EBTrendTask ( const edm::ParameterSet ps)

Definition at line 46 of file EBTrendTask.cc.

References BasicClusterCollection_, dqmStore_, EBDetIdCollection0_, EBDetIdCollection1_, EBDetIdCollection2_, EBDetIdCollection3_, EBDigiCollection_, EBSRFlagCollection_, EcalElectronicsIdCollection1_, EcalElectronicsIdCollection2_, EcalElectronicsIdCollection3_, EcalElectronicsIdCollection4_, EcalElectronicsIdCollection5_, EcalElectronicsIdCollection6_, EcalPnDiodeDigiCollection_, EcalRecHitCollection_, EcalTrigPrimDigiCollection_, enableCleanup_, FEDRawDataCollection_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), init_, mergeRuns_, nBasicClusterHourly_, nBasicClusterMinutely_, nBasicClusterSizeHourly_, nBasicClusterSizeMinutely_, nEBDigiHourly_, nEBDigiMinutely_, nEBSRFlagHourly_, nEBSRFlagMinutely_, nEcalPnDiodeDigiHourly_, nEcalPnDiodeDigiMinutely_, nEcalRecHitHourly_, nEcalRecHitMinutely_, nEcalTrigPrimDigiHourly_, nEcalTrigPrimDigiMinutely_, nFEDEBRawDataHourly_, nFEDEBRawDataMinutely_, nIntegrityErrorHourly_, nIntegrityErrorMinutely_, nSuperClusterHourly_, nSuperClusterMinutely_, nSuperClusterSizeHourly_, nSuperClusterSizeMinutely_, cppFunctionSkipper::operator, prefixME_, AlCaHLTBitMon_QueryRunRegistry::string, SuperClusterCollection_, and verbose_.

46  {
47 
48  init_ = false;
49 
51 
52  prefixME_ = ps.getUntrackedParameter<std::string>("prefixME", "");
53  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false);
54  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns", false);
55  verbose_ = ps.getUntrackedParameter<bool>("verbose", false);
56 
57  // parameters...
58  EBDigiCollection_ = ps.getParameter<edm::InputTag>("EBDigiCollection");
59  EcalPnDiodeDigiCollection_ = ps.getParameter<edm::InputTag>("EcalPnDiodeDigiCollection");
60  EcalTrigPrimDigiCollection_ = ps.getParameter<edm::InputTag>("EcalTrigPrimDigiCollection");
61  EcalRecHitCollection_ = ps.getParameter<edm::InputTag>("EcalRecHitCollection");
62  BasicClusterCollection_ = ps.getParameter<edm::InputTag>("BasicClusterCollection");
63  SuperClusterCollection_ = ps.getParameter<edm::InputTag>("SuperClusterCollection");
64  EBDetIdCollection0_ = ps.getParameter<edm::InputTag>("EBDetIdCollection0");
65  EBDetIdCollection1_ = ps.getParameter<edm::InputTag>("EBDetIdCollection1");
66  EBDetIdCollection2_ = ps.getParameter<edm::InputTag>("EBDetIdCollection2");
67  EBDetIdCollection3_ = ps.getParameter<edm::InputTag>("EBDetIdCollection3");
68  EcalElectronicsIdCollection1_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection1");
69  EcalElectronicsIdCollection2_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection2");
70  EcalElectronicsIdCollection3_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection3");
71  EcalElectronicsIdCollection4_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection4");
72  EcalElectronicsIdCollection5_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection5");
73  EcalElectronicsIdCollection6_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection6");
74  FEDRawDataCollection_ = ps.getParameter<edm::InputTag>("FEDRawDataCollection");
75  EBSRFlagCollection_ = ps.getParameter<edm::InputTag>("EBSRFlagCollection");
76 
77  // histograms...
78  nEBDigiMinutely_ = 0;
89 
90  nEBDigiHourly_ = 0;
100  nEBSRFlagHourly_ = 0;
101 }
T getParameter(std::string const &) const
MonitorElement * nSuperClusterSizeMinutely_
Definition: EBTrendTask.h:103
MonitorElement * nEBDigiHourly_
Definition: EBTrendTask.h:108
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * nBasicClusterHourly_
Definition: EBTrendTask.h:112
edm::InputTag EcalPnDiodeDigiCollection_
Definition: EBTrendTask.h:77
MonitorElement * nEcalTrigPrimDigiMinutely_
Definition: EBTrendTask.h:99
edm::InputTag EcalElectronicsIdCollection6_
Definition: EBTrendTask.h:92
DQMStore * dqmStore_
Definition: EBTrendTask.h:66
edm::InputTag EBDetIdCollection1_
Definition: EBTrendTask.h:83
MonitorElement * nBasicClusterSizeHourly_
Definition: EBTrendTask.h:113
bool verbose_
Definition: EBTrendTask.h:74
edm::InputTag BasicClusterCollection_
Definition: EBTrendTask.h:80
edm::InputTag EcalTrigPrimDigiCollection_
Definition: EBTrendTask.h:79
MonitorElement * nSuperClusterHourly_
Definition: EBTrendTask.h:114
edm::InputTag EBDetIdCollection2_
Definition: EBTrendTask.h:84
MonitorElement * nFEDEBRawDataMinutely_
Definition: EBTrendTask.h:105
MonitorElement * nEcalPnDiodeDigiHourly_
Definition: EBTrendTask.h:109
edm::InputTag EBSRFlagCollection_
Definition: EBTrendTask.h:94
MonitorElement * nBasicClusterMinutely_
Definition: EBTrendTask.h:100
MonitorElement * nEcalTrigPrimDigiHourly_
Definition: EBTrendTask.h:111
edm::InputTag EBDetIdCollection3_
Definition: EBTrendTask.h:85
edm::InputTag EcalElectronicsIdCollection2_
Definition: EBTrendTask.h:88
edm::InputTag EBDetIdCollection0_
Definition: EBTrendTask.h:82
edm::InputTag SuperClusterCollection_
Definition: EBTrendTask.h:81
std::string prefixME_
Definition: EBTrendTask.h:68
edm::InputTag FEDRawDataCollection_
Definition: EBTrendTask.h:93
edm::InputTag EcalElectronicsIdCollection5_
Definition: EBTrendTask.h:91
MonitorElement * nEBDigiMinutely_
Definition: EBTrendTask.h:96
edm::InputTag EcalElectronicsIdCollection1_
Definition: EBTrendTask.h:87
bool mergeRuns_
Definition: EBTrendTask.h:72
MonitorElement * nEcalRecHitHourly_
Definition: EBTrendTask.h:110
MonitorElement * nBasicClusterSizeMinutely_
Definition: EBTrendTask.h:101
bool enableCleanup_
Definition: EBTrendTask.h:70
MonitorElement * nEBSRFlagMinutely_
Definition: EBTrendTask.h:106
MonitorElement * nFEDEBRawDataHourly_
Definition: EBTrendTask.h:117
MonitorElement * nIntegrityErrorHourly_
Definition: EBTrendTask.h:116
MonitorElement * nEBSRFlagHourly_
Definition: EBTrendTask.h:118
MonitorElement * nSuperClusterMinutely_
Definition: EBTrendTask.h:102
MonitorElement * nEcalRecHitMinutely_
Definition: EBTrendTask.h:98
MonitorElement * nSuperClusterSizeHourly_
Definition: EBTrendTask.h:115
MonitorElement * nIntegrityErrorMinutely_
Definition: EBTrendTask.h:104
edm::InputTag EcalElectronicsIdCollection4_
Definition: EBTrendTask.h:90
edm::InputTag EcalElectronicsIdCollection3_
Definition: EBTrendTask.h:89
MonitorElement * nEcalPnDiodeDigiMinutely_
Definition: EBTrendTask.h:97
edm::InputTag EcalRecHitCollection_
Definition: EBTrendTask.h:78
edm::InputTag EBDigiCollection_
Definition: EBTrendTask.h:76
EBTrendTask::~EBTrendTask ( )
virtual

Definition at line 104 of file EBTrendTask.cc.

104  {
105 }

Member Function Documentation

void EBTrendTask::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Implements edm::EDAnalyzer.

Definition at line 362 of file EBTrendTask.cc.

References BasicClusterCollection_, ecaldqm::calcBins(), current_time_, EBDetIdCollection0_, EBDetIdCollection1_, EBDetIdCollection2_, EBDetIdCollection3_, EBDigiCollection_, EBSRFlagCollection_, EcalElectronicsIdCollection1_, EcalElectronicsIdCollection2_, EcalElectronicsIdCollection3_, EcalElectronicsIdCollection4_, EcalElectronicsIdCollection5_, EcalElectronicsIdCollection6_, EcalPnDiodeDigiCollection_, EcalRecHitCollection_, EcalTrigPrimDigiCollection_, edm::EventID::event(), FEDRawDataCollection_, MonitorElement::Fill(), edm::Event::getByLabel(), MonitorElement::getTProfile(), edm::EventBase::id(), ievt_, init_, last_time_, nBasicClusterHourly_, nBasicClusterMinutely_, nBasicClusterSizeHourly_, nBasicClusterSizeMinutely_, nEBDigiHourly_, nEBDigiMinutely_, nEBSRFlagHourly_, nEBSRFlagMinutely_, nEcalPnDiodeDigiHourly_, nEcalPnDiodeDigiMinutely_, nEcalRecHitHourly_, nEcalRecHitMinutely_, nEcalTrigPrimDigiHourly_, nEcalTrigPrimDigiMinutely_, nFEDEBRawDataHourly_, nFEDEBRawDataMinutely_, nIntegrityErrorHourly_, nIntegrityErrorMinutely_, nSuperClusterHourly_, nSuperClusterMinutely_, nSuperClusterSizeHourly_, nSuperClusterSizeMinutely_, edm::EventID::run(), setup(), ecaldqm::shift2Right(), start_time_, SuperClusterCollection_, updateTime(), and verbose_.

362  {
363 
364  if ( ! init_ ) this->setup();
365 
366  ievt_++;
367 
368  // --------------------------------------------------
369  // Collect time information
370  // --------------------------------------------------
371 
372  updateTime();
373 
374  long int minuteBinDiff = -1;
375  long int minuteDiff = -1;
376  ecaldqm::calcBins(5,60,start_time_,last_time_,current_time_,minuteBinDiff,minuteDiff);
377 
378  long int hourBinDiff = -1;
379  long int hourDiff = -1;
380  ecaldqm::calcBins(1,3600,start_time_,last_time_,current_time_,hourBinDiff,hourDiff);
381 
382 
383  // --------------------------------------------------
384  // EBDigiCollection
385  // --------------------------------------------------
386  int ndc = 0;
388  if ( e.getByLabel(EBDigiCollection_, digis) ) ndc = digis->size();
389  else edm::LogWarning("EBTrendTask") << EBDigiCollection_ << " is not available";
390 
392  nEBDigiMinutely_->Fill(minuteDiff,ndc);
393 
395  nEBDigiHourly_->Fill(hourDiff,ndc);
396 
397 
398  // --------------------------------------------------
399  // EcalPnDiodeDigiCollection
400  // --------------------------------------------------
401  int npdc = 0;
403  if ( e.getByLabel(EcalPnDiodeDigiCollection_, pns) ) npdc = pns->size();
404  else edm::LogWarning("EBTrendTask") << EcalPnDiodeDigiCollection_ << " is not available";
405 
407  nEcalPnDiodeDigiMinutely_->Fill(minuteDiff,npdc);
408 
410  nEcalPnDiodeDigiHourly_->Fill(hourDiff,npdc);
411 
412 
413  // --------------------------------------------------
414  // EcalRecHitCollection
415  // --------------------------------------------------
416  int nrhc = 0;
418  if ( e.getByLabel(EcalRecHitCollection_, hits) ) nrhc = hits->size();
419  else edm::LogWarning("EBTrendTask") << EcalRecHitCollection_ << " is not available";
420 
422  nEcalRecHitMinutely_->Fill(minuteDiff,nrhc);
423 
425  nEcalRecHitHourly_->Fill(hourDiff,nrhc);
426 
427  // --------------------------------------------------
428  // EcalTrigPrimDigiCollection
429  // --------------------------------------------------
430  int ntpdc = 0;
432  if ( e.getByLabel(EcalTrigPrimDigiCollection_, tpdigis) ) ntpdc = tpdigis->size();
433  else edm::LogWarning("EBTrendTask") << EcalTrigPrimDigiCollection_ << " is not available";
434 
436  nEcalTrigPrimDigiMinutely_->Fill(minuteDiff,ntpdc);
437 
439  nEcalTrigPrimDigiHourly_->Fill(hourDiff,ntpdc);
440 
441  // --------------------------------------------------
442  // BasicClusters
443  // --------------------------------------------------
444  int nbcc = 0;
445  float nbcc_size = 0.0;
447  if ( e.getByLabel(BasicClusterCollection_, pBasicClusters) ) {
448  nbcc = pBasicClusters->size();
449  for(reco::BasicClusterCollection::const_iterator it = pBasicClusters->begin();
450  it != pBasicClusters->end(); it++){
451  nbcc_size += it->size();
452  }
453  if(nbcc == 0) nbcc_size = 0;
454  else nbcc_size = nbcc_size / nbcc;
455  }
456  else edm::LogWarning("EBTrendTask") << BasicClusterCollection_ << " is not available";
457 
459  nBasicClusterMinutely_->Fill(minuteDiff,nbcc);
460 
462  nBasicClusterHourly_->Fill(hourDiff,nbcc);
463 
465  nBasicClusterSizeMinutely_->Fill(minuteDiff,nbcc);
466 
468  nBasicClusterSizeHourly_->Fill(hourDiff,nbcc);
469 
470  // --------------------------------------------------
471  // SuperClusters
472  // --------------------------------------------------
473  int nscc = 0;
474  float nscc_size = 0.0;
476  if ( e.getByLabel(SuperClusterCollection_, pSuperClusters) ) {
477  nscc = pSuperClusters->size();
478  for(reco::SuperClusterCollection::const_iterator it = pSuperClusters->begin();
479  it != pSuperClusters->end(); it++){
480  nscc_size += it->clustersSize();
481  }
482  if(nscc == 0) nscc_size = 0;
483  else nscc_size = nscc_size / nscc;
484  }
485  else edm::LogWarning("EBTrendTask") << SuperClusterCollection_ << " is not available";
486 
488  nSuperClusterMinutely_->Fill(minuteDiff,nscc);
489 
491  nSuperClusterHourly_->Fill(hourDiff,nscc);
492 
494  nSuperClusterSizeMinutely_->Fill(minuteDiff,nscc);
495 
497  nSuperClusterSizeHourly_->Fill(hourDiff,nscc);
498 
499 
500  // --------------------------------------------------
501  // Integrity errors (sum of collections' sizes)
502  // --------------------------------------------------
503  // double errorSum = 0.0;
504 
505  // --------------------------------------------------
506  // EBDetIdCollection0
507  // --------------------------------------------------
508  int ndic0 = 0;
510  if ( e.getByLabel(EBDetIdCollection0_, ids0) ) ndic0 = ids0->size();
511  else edm::LogWarning("EBTrendTask") << EBDetIdCollection0_ << " is not available";
512 
513 
514  // --------------------------------------------------
515  // EBDetIdCollection1
516  // --------------------------------------------------
517  int ndic1 = 0;
519  if ( e.getByLabel(EBDetIdCollection1_, ids1) ) ndic1 = ids1->size();
520  else edm::LogWarning("EBTrendTask") << EBDetIdCollection1_ << " is not available";
521 
522 
523  // --------------------------------------------------
524  // EBDetIdCollection2
525  // --------------------------------------------------
526  int ndic2 = 0;
528  if ( e.getByLabel(EBDetIdCollection2_, ids2) ) ndic2 = ids2->size();
529  else edm::LogWarning("EBTrendTask") << EBDetIdCollection2_ << " is not available";
530 
531 
532  // --------------------------------------------------
533  // EBDetIdCollection3
534  // --------------------------------------------------
535  int ndic3 = 0;
537  if ( e.getByLabel(EBDetIdCollection3_, ids3) ) ndic3 = ids3->size();
538  else edm::LogWarning("EBTrendTask") << EBDetIdCollection3_ << " is not available";
539 
540 
541  // --------------------------------------------------
542  // EcalElectronicsIdCollection1
543  // --------------------------------------------------
544  int neic1 = 0;
546  if ( e.getByLabel(EcalElectronicsIdCollection1_, eids1) ) neic1 = eids1->size();
547  else edm::LogWarning("EBTrendTask") << EcalElectronicsIdCollection1_ << " is not available";
548 
549 
550  // --------------------------------------------------
551  // EcalElectronicsIdCollection2
552  // --------------------------------------------------
553  int neic2 = 0;
555  if ( e.getByLabel(EcalElectronicsIdCollection2_, eids2) ) neic2 = eids2->size();
556  else edm::LogWarning("EBTrendTask") << EcalElectronicsIdCollection2_ << " is not available";
557 
558 
559  // --------------------------------------------------
560  // EcalElectronicsIdCollection3
561  // --------------------------------------------------
562  int neic3 = 0;
564  if ( e.getByLabel(EcalElectronicsIdCollection3_, eids3) ) neic3 = eids3->size();
565  else edm::LogWarning("EBTrendTask") << EcalElectronicsIdCollection3_ << " is not available";
566 
567 
568  // --------------------------------------------------
569  // EcalElectronicsIdCollection4
570  // --------------------------------------------------
571  int neic4 = 0;
573  if ( e.getByLabel(EcalElectronicsIdCollection4_, eids4) ) neic4 = eids4->size();
574  else edm::LogWarning("EBTrendTask") << EcalElectronicsIdCollection4_ << " is not available";
575 
576 
577  // --------------------------------------------------
578  // EcalElectronicsIdCollection5
579  // --------------------------------------------------
580  int neic5 = 0;
582  if ( e.getByLabel(EcalElectronicsIdCollection5_, eids5) ) neic5 = eids5->size();
583  else edm::LogWarning("EBTrendTask") << EcalElectronicsIdCollection5_ << " is not available";
584 
585 
586  // --------------------------------------------------
587  // EcalElectronicsIdCollection6
588  // --------------------------------------------------
589  int neic6 = 0;
591  if ( e.getByLabel(EcalElectronicsIdCollection6_, eids6) ) neic6 = eids6->size();
592  else edm::LogWarning("EBTrendTask") << EcalElectronicsIdCollection6_ << " is not available";
593 
594 
595  // --------------------------------------------------
596  // Integrity errors (sum of collections' sizes)
597  // --------------------------------------------------
598  double errorSum = ndic0 + ndic1 + ndic2 + ndic3 +
599  neic1 + neic2 + neic3 + neic4 + neic5 + neic6;
600 
602  nIntegrityErrorMinutely_->Fill(minuteDiff,errorSum);
603 
605  nIntegrityErrorHourly_->Fill(hourDiff,errorSum);
606 
607  // --------------------------------------------------
608  // FEDRawDataCollection
609  // --------------------------------------------------
610  int nfedEB = 0;
611 
612  // Barrel FEDs : 610 - 645
613  // Endcap FEDs : 601-609 (EE-) and 646-654 (EE+)
614  int eb1 = 610;
615  int eb2 = 645;
616  int kByte = 1024;
617 
618  edm::Handle<FEDRawDataCollection> allFedRawData;
619  if ( e.getByLabel(FEDRawDataCollection_, allFedRawData) ) {
620  for ( int iDcc = eb1; iDcc <= eb2; ++iDcc ) {
621  int sizeInKB = allFedRawData->FEDData(iDcc).size()/kByte;
622  if(iDcc >= eb1 && iDcc <= eb2) nfedEB += sizeInKB;
623  }
624  }
625  else edm::LogWarning("EBTrendTask") << FEDRawDataCollection_ << " is not available";
626 
628  nFEDEBRawDataMinutely_->Fill(minuteDiff,nfedEB);
629 
631  nFEDEBRawDataHourly_->Fill(hourDiff,nfedEB);
632 
633 
634  // --------------------------------------------------
635  // EBSRFlagCollection
636  // --------------------------------------------------
637  int nsfc = 0;
639  if ( e.getByLabel(EBSRFlagCollection_,ebSrFlags) ) nsfc = ebSrFlags->size();
640  else edm::LogWarning("EBTrendTask") << EBSRFlagCollection_ << " is not available";
641 
643  nEBSRFlagMinutely_->Fill(minuteDiff,nsfc);
644 
646  nEBSRFlagHourly_->Fill(hourDiff,nsfc);
647 
648 
649  if(verbose_){
650  printf("run(%d), event(%d), ndc(%d), npdc(%d), nrhc(%d), ntpdc(%d), nbcc(%d), ",
651  e.id().run(),e.id().event(), ndc, npdc, nrhc, ntpdc, nbcc);
652  printf("nscc(%d), ndic0(%d), ndic1(%d), ndic2(%d), ndic3(%d), neic1(%d), neic2(%d), neic3(%d), ",
653  nscc, ndic0, ndic1, ndic2, ndic3, neic1, neic2, neic3);
654  printf("neic4(%d), neic5(%d), neic6(%d), errorSum(%f), nsfc(%d), ",
655  neic4, neic5, neic6, errorSum, nsfc);
656  }
657 
658 }
RunNumber_t run() const
Definition: EventID.h:42
EventNumber_t event() const
Definition: EventID.h:44
MonitorElement * nSuperClusterSizeMinutely_
Definition: EBTrendTask.h:103
MonitorElement * nEBDigiHourly_
Definition: EBTrendTask.h:108
MonitorElement * nBasicClusterHourly_
Definition: EBTrendTask.h:112
edm::InputTag EcalPnDiodeDigiCollection_
Definition: EBTrendTask.h:77
MonitorElement * nEcalTrigPrimDigiMinutely_
Definition: EBTrendTask.h:99
edm::InputTag EcalElectronicsIdCollection6_
Definition: EBTrendTask.h:92
edm::InputTag EBDetIdCollection1_
Definition: EBTrendTask.h:83
void updateTime(void)
Definition: EBTrendTask.cc:661
MonitorElement * nBasicClusterSizeHourly_
Definition: EBTrendTask.h:113
bool verbose_
Definition: EBTrendTask.h:74
edm::InputTag BasicClusterCollection_
Definition: EBTrendTask.h:80
edm::InputTag EcalTrigPrimDigiCollection_
Definition: EBTrendTask.h:79
MonitorElement * nSuperClusterHourly_
Definition: EBTrendTask.h:114
edm::InputTag EBDetIdCollection2_
Definition: EBTrendTask.h:84
MonitorElement * nFEDEBRawDataMinutely_
Definition: EBTrendTask.h:105
MonitorElement * nEcalPnDiodeDigiHourly_
Definition: EBTrendTask.h:109
edm::InputTag EBSRFlagCollection_
Definition: EBTrendTask.h:94
void Fill(long long x)
MonitorElement * nBasicClusterMinutely_
Definition: EBTrendTask.h:100
MonitorElement * nEcalTrigPrimDigiHourly_
Definition: EBTrendTask.h:111
edm::InputTag EBDetIdCollection3_
Definition: EBTrendTask.h:85
void setup(void)
Definition: EBTrendTask.cc:165
edm::InputTag EcalElectronicsIdCollection2_
Definition: EBTrendTask.h:88
edm::InputTag EBDetIdCollection0_
Definition: EBTrendTask.h:82
edm::InputTag SuperClusterCollection_
Definition: EBTrendTask.h:81
edm::InputTag FEDRawDataCollection_
Definition: EBTrendTask.h:93
edm::InputTag EcalElectronicsIdCollection5_
Definition: EBTrendTask.h:91
MonitorElement * nEBDigiMinutely_
Definition: EBTrendTask.h:96
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
edm::InputTag EcalElectronicsIdCollection1_
Definition: EBTrendTask.h:87
MonitorElement * nEcalRecHitHourly_
Definition: EBTrendTask.h:110
edm::EventID id() const
Definition: EventBase.h:56
MonitorElement * nBasicClusterSizeMinutely_
Definition: EBTrendTask.h:101
MonitorElement * nEBSRFlagMinutely_
Definition: EBTrendTask.h:106
MonitorElement * nFEDEBRawDataHourly_
Definition: EBTrendTask.h:117
TProfile * getTProfile(void) const
MonitorElement * nIntegrityErrorHourly_
Definition: EBTrendTask.h:116
MonitorElement * nEBSRFlagHourly_
Definition: EBTrendTask.h:118
MonitorElement * nSuperClusterMinutely_
Definition: EBTrendTask.h:102
MonitorElement * nEcalRecHitMinutely_
Definition: EBTrendTask.h:98
void calcBins(int binWidth, int divisor, long int start_time, long int last_time, long int current_time, long int &binDiff, long int &diff)
void shift2Right(TH1 *h, int bins)
MonitorElement * nSuperClusterSizeHourly_
Definition: EBTrendTask.h:115
MonitorElement * nIntegrityErrorMinutely_
Definition: EBTrendTask.h:104
edm::InputTag EcalElectronicsIdCollection4_
Definition: EBTrendTask.h:90
edm::InputTag EcalElectronicsIdCollection3_
Definition: EBTrendTask.h:89
MonitorElement * nEcalPnDiodeDigiMinutely_
Definition: EBTrendTask.h:97
edm::InputTag EcalRecHitCollection_
Definition: EBTrendTask.h:78
int current_time_
Definition: EBTrendTask.h:123
edm::InputTag EBDigiCollection_
Definition: EBTrendTask.h:76
void EBTrendTask::beginJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 108 of file EBTrendTask.cc.

References dqmStore_, ievt_, prefixME_, DQMStore::rmdir(), and DQMStore::setCurrentFolder().

108  {
109 
110  ievt_ = 0;
111 
112  if ( dqmStore_ ) {
113  dqmStore_->setCurrentFolder(prefixME_ + "/EBTrendTask");
114  dqmStore_->rmdir(prefixME_ + "/EBTrendTask");
115  }
116 
117 }
DQMStore * dqmStore_
Definition: EBTrendTask.h:66
void rmdir(const std::string &fullpath)
Definition: DQMStore.cc:2535
std::string prefixME_
Definition: EBTrendTask.h:68
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
void EBTrendTask::beginRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 120 of file EBTrendTask.cc.

References Numbers::initGeometry(), mergeRuns_, NULL, reset(), start_time_, and cond::rpcobgas::time.

120  {
121 
122  Numbers::initGeometry(c, false);
123 
124  if ( ! mergeRuns_ ) this->reset();
125 
126  start_time_ = time(NULL);
127 
128 }
#define NULL
Definition: scimark2.h:8
void reset(void)
Definition: EBTrendTask.cc:136
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
Definition: Numbers.cc:50
bool mergeRuns_
Definition: EBTrendTask.h:72
void EBTrendTask::cleanup ( void  )
protected

Definition at line 293 of file EBTrendTask.cc.

References dqmStore_, MonitorElement::getName(), init_, nBasicClusterHourly_, nBasicClusterMinutely_, nBasicClusterSizeHourly_, nBasicClusterSizeMinutely_, nEBDigiHourly_, nEBDigiMinutely_, nEBSRFlagHourly_, nEBSRFlagMinutely_, nEcalPnDiodeDigiHourly_, nEcalPnDiodeDigiMinutely_, nEcalRecHitHourly_, nEcalRecHitMinutely_, nEcalTrigPrimDigiHourly_, nEcalTrigPrimDigiMinutely_, nFEDEBRawDataHourly_, nFEDEBRawDataMinutely_, nIntegrityErrorHourly_, nIntegrityErrorMinutely_, nSuperClusterHourly_, nSuperClusterMinutely_, nSuperClusterSizeHourly_, nSuperClusterSizeMinutely_, prefixME_, DQMStore::removeElement(), and DQMStore::setCurrentFolder().

Referenced by endJob().

293  {
294 
295  if ( ! init_ ) return;
296 
297  if ( dqmStore_ ) {
298  dqmStore_->setCurrentFolder(prefixME_ + "/EBTrendTask");
299 
301  nEBDigiMinutely_ = 0;
322 
324  nEBDigiHourly_ = 0;
328  nEcalRecHitHourly_ = 0;
344  nEBSRFlagHourly_ = 0;
345 
346  }
347 
348  init_ = false;
349 
350 }
MonitorElement * nSuperClusterSizeMinutely_
Definition: EBTrendTask.h:103
MonitorElement * nEBDigiHourly_
Definition: EBTrendTask.h:108
const std::string & getName(void) const
get name of ME
MonitorElement * nBasicClusterHourly_
Definition: EBTrendTask.h:112
MonitorElement * nEcalTrigPrimDigiMinutely_
Definition: EBTrendTask.h:99
DQMStore * dqmStore_
Definition: EBTrendTask.h:66
MonitorElement * nBasicClusterSizeHourly_
Definition: EBTrendTask.h:113
MonitorElement * nSuperClusterHourly_
Definition: EBTrendTask.h:114
MonitorElement * nFEDEBRawDataMinutely_
Definition: EBTrendTask.h:105
MonitorElement * nEcalPnDiodeDigiHourly_
Definition: EBTrendTask.h:109
MonitorElement * nBasicClusterMinutely_
Definition: EBTrendTask.h:100
MonitorElement * nEcalTrigPrimDigiHourly_
Definition: EBTrendTask.h:111
void removeElement(const std::string &name)
Definition: DQMStore.cc:2577
std::string prefixME_
Definition: EBTrendTask.h:68
MonitorElement * nEBDigiMinutely_
Definition: EBTrendTask.h:96
MonitorElement * nEcalRecHitHourly_
Definition: EBTrendTask.h:110
MonitorElement * nBasicClusterSizeMinutely_
Definition: EBTrendTask.h:101
MonitorElement * nEBSRFlagMinutely_
Definition: EBTrendTask.h:106
MonitorElement * nFEDEBRawDataHourly_
Definition: EBTrendTask.h:117
MonitorElement * nIntegrityErrorHourly_
Definition: EBTrendTask.h:116
MonitorElement * nEBSRFlagHourly_
Definition: EBTrendTask.h:118
MonitorElement * nSuperClusterMinutely_
Definition: EBTrendTask.h:102
MonitorElement * nEcalRecHitMinutely_
Definition: EBTrendTask.h:98
MonitorElement * nSuperClusterSizeHourly_
Definition: EBTrendTask.h:115
MonitorElement * nIntegrityErrorMinutely_
Definition: EBTrendTask.h:104
MonitorElement * nEcalPnDiodeDigiMinutely_
Definition: EBTrendTask.h:97
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
void EBTrendTask::endJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 353 of file EBTrendTask.cc.

References cleanup(), enableCleanup_, and ievt_.

353  {
354 
355  edm::LogInfo("EBTrendTask") << "analyzed " << ievt_ << " events";
356 
357  if ( enableCleanup_ ) this->cleanup();
358 
359 }
bool enableCleanup_
Definition: EBTrendTask.h:70
void cleanup(void)
Definition: EBTrendTask.cc:293
void EBTrendTask::endRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 131 of file EBTrendTask.cc.

131  {
132 
133 }
void EBTrendTask::reset ( void  )
protected

Definition at line 136 of file EBTrendTask.cc.

References nBasicClusterHourly_, nBasicClusterMinutely_, nBasicClusterSizeHourly_, nBasicClusterSizeMinutely_, nEBDigiHourly_, nEBDigiMinutely_, nEBSRFlagHourly_, nEBSRFlagMinutely_, nEcalPnDiodeDigiHourly_, nEcalPnDiodeDigiMinutely_, nEcalRecHitHourly_, nEcalRecHitMinutely_, nEcalTrigPrimDigiHourly_, nEcalTrigPrimDigiMinutely_, nFEDEBRawDataHourly_, nFEDEBRawDataMinutely_, nIntegrityErrorHourly_, nIntegrityErrorMinutely_, nSuperClusterHourly_, nSuperClusterMinutely_, nSuperClusterSizeHourly_, nSuperClusterSizeMinutely_, and MonitorElement::Reset().

Referenced by beginRun().

136  {
137 
149 
161 
162 }
MonitorElement * nSuperClusterSizeMinutely_
Definition: EBTrendTask.h:103
MonitorElement * nEBDigiHourly_
Definition: EBTrendTask.h:108
MonitorElement * nBasicClusterHourly_
Definition: EBTrendTask.h:112
MonitorElement * nEcalTrigPrimDigiMinutely_
Definition: EBTrendTask.h:99
MonitorElement * nBasicClusterSizeHourly_
Definition: EBTrendTask.h:113
MonitorElement * nSuperClusterHourly_
Definition: EBTrendTask.h:114
MonitorElement * nFEDEBRawDataMinutely_
Definition: EBTrendTask.h:105
MonitorElement * nEcalPnDiodeDigiHourly_
Definition: EBTrendTask.h:109
MonitorElement * nBasicClusterMinutely_
Definition: EBTrendTask.h:100
MonitorElement * nEcalTrigPrimDigiHourly_
Definition: EBTrendTask.h:111
MonitorElement * nEBDigiMinutely_
Definition: EBTrendTask.h:96
MonitorElement * nEcalRecHitHourly_
Definition: EBTrendTask.h:110
MonitorElement * nBasicClusterSizeMinutely_
Definition: EBTrendTask.h:101
MonitorElement * nEBSRFlagMinutely_
Definition: EBTrendTask.h:106
MonitorElement * nFEDEBRawDataHourly_
Definition: EBTrendTask.h:117
MonitorElement * nIntegrityErrorHourly_
Definition: EBTrendTask.h:116
MonitorElement * nEBSRFlagHourly_
Definition: EBTrendTask.h:118
MonitorElement * nSuperClusterMinutely_
Definition: EBTrendTask.h:102
MonitorElement * nEcalRecHitMinutely_
Definition: EBTrendTask.h:98
MonitorElement * nSuperClusterSizeHourly_
Definition: EBTrendTask.h:115
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * nIntegrityErrorMinutely_
Definition: EBTrendTask.h:104
MonitorElement * nEcalPnDiodeDigiMinutely_
Definition: EBTrendTask.h:97
void EBTrendTask::setup ( void  )
protected

Definition at line 165 of file EBTrendTask.cc.

References DQMStore::bookProfile(), dqmStore_, init_, mergeVDriftHistosByStation::name, nBasicClusterHourly_, nBasicClusterMinutely_, nBasicClusterSizeHourly_, nBasicClusterSizeMinutely_, nEBDigiHourly_, nEBDigiMinutely_, nEBSRFlagHourly_, nEBSRFlagMinutely_, nEcalPnDiodeDigiHourly_, nEcalPnDiodeDigiMinutely_, nEcalRecHitHourly_, nEcalRecHitMinutely_, nEcalTrigPrimDigiHourly_, nEcalTrigPrimDigiMinutely_, nFEDEBRawDataHourly_, nFEDEBRawDataMinutely_, nIntegrityErrorHourly_, nIntegrityErrorMinutely_, nSuperClusterHourly_, nSuperClusterMinutely_, nSuperClusterSizeHourly_, nSuperClusterSizeMinutely_, prefixME_, MonitorElement::setAxisTitle(), DQMStore::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by analyze().

165  {
166 
167  init_ = true;
168 
170 
171  if ( dqmStore_ ) {
172  dqmStore_->setCurrentFolder(prefixME_ + "/EBTrendTask");
173 
174  // minutely
175 
176  name = "AverageNumberOfEBDigiVs5Minutes";
177  nEBDigiMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
178  nEBDigiMinutely_->setAxisTitle("Minutes", 1);
179  nEBDigiMinutely_->setAxisTitle("Average Number of EBDigi / 5 minutes", 2);
180 
181  name = "AverageNumberOfEcalPnDiodeDigiVs5Minutes";
182  nEcalPnDiodeDigiMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
184  nEcalPnDiodeDigiMinutely_->setAxisTitle("Average Number of EcalPnDiodeDigi / 5 minutes", 2);
185 
186  name = "AverageNumberOfEcalRecHitVs5Minutes";
187  nEcalRecHitMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
188  nEcalRecHitMinutely_->setAxisTitle("Minutes", 1);
189  nEcalRecHitMinutely_->setAxisTitle("Average Number of EcalRecHit / 5 minutes", 2);
190 
191  name = "AverageNumberOfEcalTrigPrimDigiVs5Minutes";
192  nEcalTrigPrimDigiMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
194  nEcalTrigPrimDigiMinutely_->setAxisTitle("Average Number of EcalTrigPrimDigi / 5 minutes", 2);
195 
196  name = "AverageNumberOfBasicClusterVs5Minutes";
197  nBasicClusterMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
198  nBasicClusterMinutely_->setAxisTitle("Minutes", 1);
199  nBasicClusterMinutely_->setAxisTitle("Average Number of BasicClusters / 5 minutes", 2);
200 
201  name = "AverageNumberOfBasicClusterSizeVs5Minutes";
202  nBasicClusterSizeMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
204  nBasicClusterSizeMinutely_->setAxisTitle("Average Size of BasicClusters / 5 minutes", 2);
205 
206  name = "AverageNumberOfSuperClusterVs5Minutes";
207  nSuperClusterMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
208  nSuperClusterMinutely_->setAxisTitle("Minutes", 1);
209  nSuperClusterMinutely_->setAxisTitle("Average Number of SuperClusters / 5 minutes", 2);
210 
211  name = "AverageNumberOfSuperClusterSizeVs5Minutes";
212  nSuperClusterSizeMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
214  nSuperClusterSizeMinutely_->setAxisTitle("Average Size of SuperClusters / 5 minutes", 2);
215 
216  name = "AverageNumberOfIntegrityErrorVs5Minutes";
217  nIntegrityErrorMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
218  nIntegrityErrorMinutely_->setAxisTitle("Minutes", 1);
219  nIntegrityErrorMinutely_->setAxisTitle("Average IntegrityErrors / 5 minutes", 2);
220 
221  name = "AverageNumberOfFEDEBRawDataVs5Minutes";
222  nFEDEBRawDataMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
223  nFEDEBRawDataMinutely_->setAxisTitle("Minutes", 1);
224  nFEDEBRawDataMinutely_->setAxisTitle("Average Number of FEDRawData in EB / 5 minutes", 2);
225 
226  name = "AverageNumberOfEBSRFlagVs5Minutes";
227  nEBSRFlagMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
228  nEBSRFlagMinutely_->setAxisTitle("Minutes", 1);
229  nEBSRFlagMinutely_->setAxisTitle("Average Number of EBSRFlag / 5 minutes", 2);
230 
231  // hourly
232 
233  name = "AverageNumberOfEBDigiVs1Hour";
234  nEBDigiHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
235  nEBDigiHourly_->setAxisTitle("Hours", 1);
236  nEBDigiHourly_->setAxisTitle("Average Number of EBDigi / hour", 2);
237 
238  name = "AverageNumberOfEcalPnDiodeDigiVs1Hour";
239  nEcalPnDiodeDigiHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
241  nEcalPnDiodeDigiHourly_->setAxisTitle("Average Number of EcalPnDiodeDigi / hour", 2);
242 
243  name = "AverageNumberOfEcalRecHitVs1Hour";
244  nEcalRecHitHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
245  nEcalRecHitHourly_->setAxisTitle("Hours", 1);
246  nEcalRecHitHourly_->setAxisTitle("Average Number of EcalRecHit / hour", 2);
247 
248  name = "AverageNumberOfEcalTrigPrimDigiVs1Hour";
249  nEcalTrigPrimDigiHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
251  nEcalTrigPrimDigiHourly_->setAxisTitle("Average Number of EcalTrigPrimDigi / hour", 2);
252 
253  name = "AverageNumberOfBasicClusterVs1Hour";
254  nBasicClusterHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
255  nBasicClusterHourly_->setAxisTitle("Hours", 1);
256  nBasicClusterHourly_->setAxisTitle("Average Number of BasicClusters / hour", 2);
257 
258  name = "AverageNumberOfBasicClusterSizeVs1Hour";
259  nBasicClusterSizeHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
261  nBasicClusterSizeHourly_->setAxisTitle("Average Size of BasicClusters / hour", 2);
262 
263  name = "AverageNumberOfSuperClusterVs1Hour";
264  nSuperClusterHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
265  nSuperClusterHourly_->setAxisTitle("Hours", 1);
266  nSuperClusterHourly_->setAxisTitle("Average Number of SuperClusters / hour", 2);
267 
268  name = "AverageNumberOfSuperClusterSizeVs1Hour";
269  nSuperClusterSizeHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
271  nSuperClusterSizeHourly_->setAxisTitle("Average Size of SuperClusters / hour", 2);
272 
273  name = "AverageNumberOfIntegrityErrorVs1Hour";
274  nIntegrityErrorHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
276  nIntegrityErrorHourly_->setAxisTitle("Average IntegrityErrors / hour", 2);
277 
278  name = "AverageNumberOfFEDEBRawDataVs1Hour";
279  nFEDEBRawDataHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
280  nFEDEBRawDataHourly_->setAxisTitle("Hours", 1);
281  nFEDEBRawDataHourly_->setAxisTitle("Average Number of FEDRawData in EB / hour", 2);
282 
283  name = "AverageNumberOfEBSRFlagVs1Hour";
284  nEBSRFlagHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
285  nEBSRFlagHourly_->setAxisTitle("Hours", 1);
286  nEBSRFlagHourly_->setAxisTitle("Average Number of EBSRFlag / hour", 2);
287 
288  }
289 
290 }
MonitorElement * nSuperClusterSizeMinutely_
Definition: EBTrendTask.h:103
MonitorElement * nEBDigiHourly_
Definition: EBTrendTask.h:108
MonitorElement * nBasicClusterHourly_
Definition: EBTrendTask.h:112
MonitorElement * nEcalTrigPrimDigiMinutely_
Definition: EBTrendTask.h:99
DQMStore * dqmStore_
Definition: EBTrendTask.h:66
MonitorElement * nBasicClusterSizeHourly_
Definition: EBTrendTask.h:113
MonitorElement * nSuperClusterHourly_
Definition: EBTrendTask.h:114
MonitorElement * nFEDEBRawDataMinutely_
Definition: EBTrendTask.h:105
MonitorElement * nEcalPnDiodeDigiHourly_
Definition: EBTrendTask.h:109
MonitorElement * nBasicClusterMinutely_
Definition: EBTrendTask.h:100
MonitorElement * nEcalTrigPrimDigiHourly_
Definition: EBTrendTask.h:111
std::string prefixME_
Definition: EBTrendTask.h:68
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1036
MonitorElement * nEBDigiMinutely_
Definition: EBTrendTask.h:96
MonitorElement * nEcalRecHitHourly_
Definition: EBTrendTask.h:110
MonitorElement * nBasicClusterSizeMinutely_
Definition: EBTrendTask.h:101
MonitorElement * nEBSRFlagMinutely_
Definition: EBTrendTask.h:106
MonitorElement * nFEDEBRawDataHourly_
Definition: EBTrendTask.h:117
MonitorElement * nIntegrityErrorHourly_
Definition: EBTrendTask.h:116
MonitorElement * nEBSRFlagHourly_
Definition: EBTrendTask.h:118
MonitorElement * nSuperClusterMinutely_
Definition: EBTrendTask.h:102
MonitorElement * nEcalRecHitMinutely_
Definition: EBTrendTask.h:98
MonitorElement * nSuperClusterSizeHourly_
Definition: EBTrendTask.h:115
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * nIntegrityErrorMinutely_
Definition: EBTrendTask.h:104
MonitorElement * nEcalPnDiodeDigiMinutely_
Definition: EBTrendTask.h:97
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
void EBTrendTask::updateTime ( void  )
protected

Definition at line 661 of file EBTrendTask.cc.

References current_time_, last_time_, NULL, and cond::rpcobgas::time.

Referenced by analyze().

661  {
662 
665 
666 }
#define NULL
Definition: scimark2.h:8
int current_time_
Definition: EBTrendTask.h:123

Member Data Documentation

edm::InputTag EBTrendTask::BasicClusterCollection_
private

Definition at line 80 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

int EBTrendTask::current_time_
private

Definition at line 123 of file EBTrendTask.h.

Referenced by analyze(), and updateTime().

DQMStore* EBTrendTask::dqmStore_
private

Definition at line 66 of file EBTrendTask.h.

Referenced by beginJob(), cleanup(), EBTrendTask(), and setup().

edm::InputTag EBTrendTask::EBDetIdCollection0_
private

Definition at line 82 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EBDetIdCollection1_
private

Definition at line 83 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EBDetIdCollection2_
private

Definition at line 84 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EBDetIdCollection3_
private

Definition at line 85 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EBDetIdCollection4_
private

Definition at line 86 of file EBTrendTask.h.

edm::InputTag EBTrendTask::EBDigiCollection_
private

Definition at line 76 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EBSRFlagCollection_
private

Definition at line 94 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EcalElectronicsIdCollection1_
private

Definition at line 87 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EcalElectronicsIdCollection2_
private

Definition at line 88 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EcalElectronicsIdCollection3_
private

Definition at line 89 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EcalElectronicsIdCollection4_
private

Definition at line 90 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EcalElectronicsIdCollection5_
private

Definition at line 91 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EcalElectronicsIdCollection6_
private

Definition at line 92 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EcalPnDiodeDigiCollection_
private

Definition at line 77 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EcalRecHitCollection_
private

Definition at line 78 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

edm::InputTag EBTrendTask::EcalTrigPrimDigiCollection_
private

Definition at line 79 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

bool EBTrendTask::enableCleanup_
private

Definition at line 70 of file EBTrendTask.h.

Referenced by EBTrendTask(), and endJob().

edm::InputTag EBTrendTask::FEDRawDataCollection_
private

Definition at line 93 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

int EBTrendTask::ievt_
private

Definition at line 64 of file EBTrendTask.h.

Referenced by analyze(), beginJob(), and endJob().

bool EBTrendTask::init_
private

Definition at line 120 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), and setup().

int EBTrendTask::last_time_
private

Definition at line 124 of file EBTrendTask.h.

Referenced by analyze(), and updateTime().

bool EBTrendTask::mergeRuns_
private

Definition at line 72 of file EBTrendTask.h.

Referenced by beginRun(), and EBTrendTask().

MonitorElement* EBTrendTask::nBasicClusterHourly_
private

Definition at line 112 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nBasicClusterMinutely_
private

Definition at line 100 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nBasicClusterSizeHourly_
private

Definition at line 113 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nBasicClusterSizeMinutely_
private

Definition at line 101 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nEBDigiHourly_
private

Definition at line 108 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nEBDigiMinutely_
private

Definition at line 96 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nEBSRFlagHourly_
private

Definition at line 118 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nEBSRFlagMinutely_
private

Definition at line 106 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nEcalPnDiodeDigiHourly_
private

Definition at line 109 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nEcalPnDiodeDigiMinutely_
private

Definition at line 97 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nEcalRecHitHourly_
private

Definition at line 110 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nEcalRecHitMinutely_
private

Definition at line 98 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nEcalTrigPrimDigiHourly_
private

Definition at line 111 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nEcalTrigPrimDigiMinutely_
private

Definition at line 99 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nFEDEBRawDataHourly_
private

Definition at line 117 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nFEDEBRawDataMinutely_
private

Definition at line 105 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nIntegrityErrorHourly_
private

Definition at line 116 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nIntegrityErrorMinutely_
private

Definition at line 104 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nSuperClusterHourly_
private

Definition at line 114 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nSuperClusterMinutely_
private

Definition at line 102 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nSuperClusterSizeHourly_
private

Definition at line 115 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

MonitorElement* EBTrendTask::nSuperClusterSizeMinutely_
private

Definition at line 103 of file EBTrendTask.h.

Referenced by analyze(), cleanup(), EBTrendTask(), reset(), and setup().

std::string EBTrendTask::prefixME_
private

Definition at line 68 of file EBTrendTask.h.

Referenced by beginJob(), cleanup(), EBTrendTask(), and setup().

int EBTrendTask::start_time_
private

Definition at line 122 of file EBTrendTask.h.

Referenced by analyze(), and beginRun().

edm::InputTag EBTrendTask::SuperClusterCollection_
private

Definition at line 81 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().

bool EBTrendTask::verbose_
private

Definition at line 74 of file EBTrendTask.h.

Referenced by analyze(), and EBTrendTask().