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
EETrendTask Class Reference

#include <EETrendTask.h>

Inheritance diagram for EETrendTask:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 EETrendTask (const edm::ParameterSet &ps)
 
virtual ~EETrendTask ()
 
- 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 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_
 
edm::InputTag EEDetIdCollection0_
 
edm::InputTag EEDetIdCollection1_
 
edm::InputTag EEDetIdCollection2_
 
edm::InputTag EEDetIdCollection3_
 
edm::InputTag EEDetIdCollection4_
 
edm::InputTag EEDigiCollection_
 
edm::InputTag EESRFlagCollection_
 
bool enableCleanup_
 
edm::InputTag FEDRawDataCollection_
 
int ievt_
 
bool init_
 
int last_time_
 
bool mergeRuns_
 
MonitorElementnBasicClusterHourly_
 
MonitorElementnBasicClusterMinutely_
 
MonitorElementnBasicClusterSizeHourly_
 
MonitorElementnBasicClusterSizeMinutely_
 
MonitorElementnEcalPnDiodeDigiHourly_
 
MonitorElementnEcalPnDiodeDigiMinutely_
 
MonitorElementnEcalRecHitHourly_
 
MonitorElementnEcalRecHitMinutely_
 
MonitorElementnEcalTrigPrimDigiHourly_
 
MonitorElementnEcalTrigPrimDigiMinutely_
 
MonitorElementnEEDigiHourly_
 
MonitorElementnEEDigiMinutely_
 
MonitorElementnEESRFlagHourly_
 
MonitorElementnEESRFlagMinutely_
 
MonitorElementnFEDEEminusRawDataHourly_
 
MonitorElementnFEDEEminusRawDataMinutely_
 
MonitorElementnFEDEEplusRawDataHourly_
 
MonitorElementnFEDEEplusRawDataMinutely_
 
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 EETrendTask.h.

Constructor & Destructor Documentation

EETrendTask::EETrendTask ( const edm::ParameterSet ps)

Definition at line 46 of file EETrendTask.cc.

References BasicClusterCollection_, dqmStore_, EcalElectronicsIdCollection1_, EcalElectronicsIdCollection2_, EcalElectronicsIdCollection3_, EcalElectronicsIdCollection4_, EcalElectronicsIdCollection5_, EcalElectronicsIdCollection6_, EcalPnDiodeDigiCollection_, EcalRecHitCollection_, EcalTrigPrimDigiCollection_, EEDetIdCollection0_, EEDetIdCollection1_, EEDetIdCollection2_, EEDetIdCollection3_, EEDigiCollection_, EESRFlagCollection_, enableCleanup_, FEDRawDataCollection_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), init_, mergeRuns_, nBasicClusterHourly_, nBasicClusterMinutely_, nBasicClusterSizeHourly_, nBasicClusterSizeMinutely_, nEcalPnDiodeDigiHourly_, nEcalPnDiodeDigiMinutely_, nEcalRecHitHourly_, nEcalRecHitMinutely_, nEcalTrigPrimDigiHourly_, nEcalTrigPrimDigiMinutely_, nEEDigiHourly_, nEEDigiMinutely_, nEESRFlagHourly_, nEESRFlagMinutely_, nFEDEEminusRawDataHourly_, nFEDEEminusRawDataMinutely_, nFEDEEplusRawDataHourly_, nFEDEEplusRawDataMinutely_, 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  EEDigiCollection_ = ps.getParameter<edm::InputTag>("EEDigiCollection");
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  EEDetIdCollection0_ = ps.getParameter<edm::InputTag>("EEDetIdCollection0");
65  EEDetIdCollection1_ = ps.getParameter<edm::InputTag>("EEDetIdCollection1");
66  EEDetIdCollection2_ = ps.getParameter<edm::InputTag>("EEDetIdCollection2");
67  EEDetIdCollection3_ = ps.getParameter<edm::InputTag>("EEDetIdCollection3");
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  EESRFlagCollection_ = ps.getParameter<edm::InputTag>("EESRFlagCollection");
76 
77  // histograms...
78  nEEDigiMinutely_ = 0;
90 
91  nEEDigiHourly_ = 0;
102  nEESRFlagHourly_ = 0;
103 }
edm::InputTag EEDetIdCollection0_
Definition: EETrendTask.h:82
MonitorElement * nSuperClusterMinutely_
Definition: EETrendTask.h:102
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * nEEDigiMinutely_
Definition: EETrendTask.h:96
edm::InputTag EcalElectronicsIdCollection2_
Definition: EETrendTask.h:88
MonitorElement * nBasicClusterMinutely_
Definition: EETrendTask.h:100
edm::InputTag EcalElectronicsIdCollection1_
Definition: EETrendTask.h:87
bool verbose_
Definition: EETrendTask.h:74
edm::InputTag EcalElectronicsIdCollection3_
Definition: EETrendTask.h:89
bool enableCleanup_
Definition: EETrendTask.h:70
MonitorElement * nFEDEEplusRawDataHourly_
Definition: EETrendTask.h:119
MonitorElement * nEcalRecHitMinutely_
Definition: EETrendTask.h:98
edm::InputTag EcalElectronicsIdCollection4_
Definition: EETrendTask.h:90
MonitorElement * nEEDigiHourly_
Definition: EETrendTask.h:109
MonitorElement * nEcalPnDiodeDigiMinutely_
Definition: EETrendTask.h:97
edm::InputTag BasicClusterCollection_
Definition: EETrendTask.h:80
MonitorElement * nEcalPnDiodeDigiHourly_
Definition: EETrendTask.h:110
edm::InputTag EESRFlagCollection_
Definition: EETrendTask.h:94
MonitorElement * nEESRFlagHourly_
Definition: EETrendTask.h:120
MonitorElement * nBasicClusterSizeHourly_
Definition: EETrendTask.h:114
edm::InputTag EEDigiCollection_
Definition: EETrendTask.h:76
MonitorElement * nFEDEEminusRawDataMinutely_
Definition: EETrendTask.h:105
MonitorElement * nEcalRecHitHourly_
Definition: EETrendTask.h:111
MonitorElement * nFEDEEplusRawDataMinutely_
Definition: EETrendTask.h:106
DQMStore * dqmStore_
Definition: EETrendTask.h:66
MonitorElement * nFEDEEminusRawDataHourly_
Definition: EETrendTask.h:118
std::string prefixME_
Definition: EETrendTask.h:68
edm::InputTag EcalElectronicsIdCollection6_
Definition: EETrendTask.h:92
MonitorElement * nSuperClusterHourly_
Definition: EETrendTask.h:115
edm::InputTag EcalTrigPrimDigiCollection_
Definition: EETrendTask.h:79
MonitorElement * nBasicClusterHourly_
Definition: EETrendTask.h:113
edm::InputTag SuperClusterCollection_
Definition: EETrendTask.h:81
MonitorElement * nEESRFlagMinutely_
Definition: EETrendTask.h:107
MonitorElement * nSuperClusterSizeMinutely_
Definition: EETrendTask.h:103
MonitorElement * nSuperClusterSizeHourly_
Definition: EETrendTask.h:116
edm::InputTag EcalRecHitCollection_
Definition: EETrendTask.h:78
bool mergeRuns_
Definition: EETrendTask.h:72
edm::InputTag EEDetIdCollection1_
Definition: EETrendTask.h:83
MonitorElement * nIntegrityErrorHourly_
Definition: EETrendTask.h:117
edm::InputTag FEDRawDataCollection_
Definition: EETrendTask.h:93
MonitorElement * nEcalTrigPrimDigiMinutely_
Definition: EETrendTask.h:99
MonitorElement * nEcalTrigPrimDigiHourly_
Definition: EETrendTask.h:112
MonitorElement * nIntegrityErrorMinutely_
Definition: EETrendTask.h:104
edm::InputTag EcalPnDiodeDigiCollection_
Definition: EETrendTask.h:77
edm::InputTag EcalElectronicsIdCollection5_
Definition: EETrendTask.h:91
edm::InputTag EEDetIdCollection2_
Definition: EETrendTask.h:84
edm::InputTag EEDetIdCollection3_
Definition: EETrendTask.h:85
MonitorElement * nBasicClusterSizeMinutely_
Definition: EETrendTask.h:101
EETrendTask::~EETrendTask ( )
virtual

Definition at line 106 of file EETrendTask.cc.

106  {
107 }

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 381 of file EETrendTask.cc.

References BasicClusterCollection_, ecaldqm::calcBins(), current_time_, EcalElectronicsIdCollection1_, EcalElectronicsIdCollection2_, EcalElectronicsIdCollection3_, EcalElectronicsIdCollection4_, EcalElectronicsIdCollection5_, EcalElectronicsIdCollection6_, EcalPnDiodeDigiCollection_, EcalRecHitCollection_, EcalTrigPrimDigiCollection_, EEDetIdCollection0_, EEDetIdCollection1_, EEDetIdCollection2_, EEDetIdCollection3_, EEDigiCollection_, EESRFlagCollection_, FEDRawDataCollection_, MonitorElement::Fill(), edm::Event::getByLabel(), MonitorElement::getTProfile(), ievt_, init_, last_time_, nBasicClusterHourly_, nBasicClusterMinutely_, nBasicClusterSizeHourly_, nBasicClusterSizeMinutely_, nEcalPnDiodeDigiHourly_, nEcalPnDiodeDigiMinutely_, nEcalRecHitHourly_, nEcalRecHitMinutely_, nEcalTrigPrimDigiHourly_, nEcalTrigPrimDigiMinutely_, nEEDigiHourly_, nEEDigiMinutely_, nEESRFlagHourly_, nEESRFlagMinutely_, nFEDEEminusRawDataHourly_, nFEDEEminusRawDataMinutely_, nFEDEEplusRawDataHourly_, nFEDEEplusRawDataMinutely_, nIntegrityErrorHourly_, nIntegrityErrorMinutely_, nSuperClusterHourly_, nSuperClusterMinutely_, nSuperClusterSizeHourly_, nSuperClusterSizeMinutely_, setup(), ecaldqm::shift2Right(), start_time_, SuperClusterCollection_, and updateTime().

381  {
382 
383  if ( ! init_ ) this->setup();
384 
385  ievt_++;
386 
387  // --------------------------------------------------
388  // Collect time information
389  // --------------------------------------------------
390 
391  updateTime();
392 
393  long int minuteBinDiff = -1;
394  long int minuteDiff = -1;
395  ecaldqm::calcBins(5,60,start_time_,last_time_,current_time_,minuteBinDiff,minuteDiff);
396 
397  long int hourBinDiff = -1;
398  long int hourDiff = -1;
399  ecaldqm::calcBins(1,3600,start_time_,last_time_,current_time_,hourBinDiff,hourDiff);
400 
401 
402  // --------------------------------------------------
403  // EEDigiCollection
404  // --------------------------------------------------
405  int ndc = 0;
407  if ( e.getByLabel(EEDigiCollection_, digis) ) ndc = digis->size();
408  else edm::LogWarning("EETrendTask") << EEDigiCollection_ << " is not available";
409 
411  nEEDigiMinutely_->Fill(minuteDiff,ndc);
412 
414  nEEDigiHourly_->Fill(hourDiff,ndc);
415 
416 
417  // --------------------------------------------------
418  // EcalPnDiodeDigiCollection
419  // --------------------------------------------------
420  int npdc = 0;
422  if ( e.getByLabel(EcalPnDiodeDigiCollection_, pns) ) npdc = pns->size();
423  else edm::LogWarning("EETrendTask") << EcalPnDiodeDigiCollection_ << " is not available";
424 
426  nEcalPnDiodeDigiMinutely_->Fill(minuteDiff,npdc);
427 
429  nEcalPnDiodeDigiHourly_->Fill(hourDiff,npdc);
430 
431 
432  // --------------------------------------------------
433  // EcalRecHitCollection
434  // --------------------------------------------------
435  int nrhc = 0;
437  if ( e.getByLabel(EcalRecHitCollection_, hits) ) nrhc = hits->size();
438  else edm::LogWarning("EETrendTask") << EcalRecHitCollection_ << " is not available";
439 
441  nEcalRecHitMinutely_->Fill(minuteDiff,nrhc);
442 
444  nEcalRecHitHourly_->Fill(hourDiff,nrhc);
445 
446 
447  // --------------------------------------------------
448  // EcalTrigPrimDigiCollection
449  // --------------------------------------------------
450  int ntpdc = 0;
452  if ( e.getByLabel(EcalTrigPrimDigiCollection_, tpdigis) ) ntpdc = tpdigis->size();
453  else edm::LogWarning("EETrendTask") << EcalTrigPrimDigiCollection_ << " is not available";
454 
456  nEcalTrigPrimDigiMinutely_->Fill(minuteDiff,ntpdc);
457 
459  nEcalTrigPrimDigiHourly_->Fill(hourDiff,ntpdc);
460 
461 
462  // --------------------------------------------------
463  // BasicClusters
464  // --------------------------------------------------
465  int nbcc = 0;
466  float nbcc_size = 0.0;
468  if ( e.getByLabel(BasicClusterCollection_, pBasicClusters) ) {
469  nbcc = pBasicClusters->size();
470  for(reco::BasicClusterCollection::const_iterator it = pBasicClusters->begin();
471  it != pBasicClusters->end(); it++){
472  nbcc_size += it->size();
473  }
474  if(nbcc == 0) nbcc_size = 0;
475  else nbcc_size = nbcc_size / nbcc;
476  }
477  else edm::LogWarning("EETrendTask") << BasicClusterCollection_ << " is not available";
478 
480  nBasicClusterMinutely_->Fill(minuteDiff,nbcc);
481 
483  nBasicClusterHourly_->Fill(hourDiff,nbcc);
484 
486  nBasicClusterSizeMinutely_->Fill(minuteDiff,nbcc);
487 
489  nBasicClusterSizeHourly_->Fill(hourDiff,nbcc);
490 
491  // --------------------------------------------------
492  // SuperClusters
493  // --------------------------------------------------
494  int nscc = 0;
495  float nscc_size = 0.0;
497  if ( e.getByLabel(SuperClusterCollection_, pSuperClusters) ) {
498  nscc = pSuperClusters->size();
499  for(reco::SuperClusterCollection::const_iterator it = pSuperClusters->begin();
500  it != pSuperClusters->end(); it++){
501  nscc_size += it->clustersSize();
502  }
503  if(nscc == 0) nscc_size = 0;
504  else nscc_size = nscc_size / nscc;
505  }
506  else edm::LogWarning("EETrendTask") << SuperClusterCollection_ << " is not available";
507 
509  nSuperClusterMinutely_->Fill(minuteDiff,nscc);
510 
512  nSuperClusterHourly_->Fill(hourDiff,nscc);
513 
515  nSuperClusterSizeMinutely_->Fill(minuteDiff,nscc);
516 
518  nSuperClusterSizeHourly_->Fill(hourDiff,nscc);
519 
520 
521  // --------------------------------------------------
522  // Integrity errors (sum of collections' sizes)
523  // --------------------------------------------------
524  // double errorSum = 0.0;
525 
526  // --------------------------------------------------
527  // EEDetIdCollection0
528  // --------------------------------------------------
529  int ndic0 = 0;
531  if ( e.getByLabel(EEDetIdCollection0_, ids0) ) ndic0 = ids0->size();
532  else edm::LogWarning("EETrendTask") << EEDetIdCollection0_ << " is not available";
533 
534 
535  // --------------------------------------------------
536  // EEDetIdCollection1
537  // --------------------------------------------------
538  int ndic1 = 0;
540  if ( e.getByLabel(EEDetIdCollection1_, ids1) ) ndic1 = ids1->size();
541  else edm::LogWarning("EETrendTask") << EEDetIdCollection1_ << " is not available";
542 
543 
544  // --------------------------------------------------
545  // EEDetIdCollection2
546  // --------------------------------------------------
547  int ndic2 = 0;
549  if ( e.getByLabel(EEDetIdCollection2_, ids2) ) ndic2 = ids2->size();
550  else edm::LogWarning("EETrendTask") << EEDetIdCollection2_ << " is not available";
551 
552 
553  // --------------------------------------------------
554  // EEDetIdCollection3
555  // --------------------------------------------------
556  int ndic3 = 0;
558  if ( e.getByLabel(EEDetIdCollection3_, ids3) ) ndic3 = ids3->size();
559  else edm::LogWarning("EETrendTask") << EEDetIdCollection3_ << " is not available";
560 
561 
562  // --------------------------------------------------
563  // EcalElectronicsIdCollection1
564  // --------------------------------------------------
565  int neic1 = 0;
567  if ( e.getByLabel(EcalElectronicsIdCollection1_, eids1) ) neic1 = eids1->size();
568  else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection1_ << " is not available";
569 
570 
571  // --------------------------------------------------
572  // EcalElectronicsIdCollection2
573  // --------------------------------------------------
574  int neic2 = 0;
576  if ( e.getByLabel(EcalElectronicsIdCollection2_, eids2) ) neic2 = eids2->size();
577  else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection2_ << " is not available";
578 
579 
580  // --------------------------------------------------
581  // EcalElectronicsIdCollection3
582  // --------------------------------------------------
583  int neic3 = 0;
585  if ( e.getByLabel(EcalElectronicsIdCollection3_, eids3) ) neic3 = eids3->size();
586  else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection3_ << " is not available";
587 
588 
589  // --------------------------------------------------
590  // EcalElectronicsIdCollection4
591  // --------------------------------------------------
592  int neic4 = 0;
594  if ( e.getByLabel(EcalElectronicsIdCollection4_, eids4) ) neic4 = eids4->size();
595  else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection4_ << " is not available";
596 
597 
598  // --------------------------------------------------
599  // EcalElectronicsIdCollection5
600  // --------------------------------------------------
601  int neic5 = 0;
603  if ( e.getByLabel(EcalElectronicsIdCollection5_, eids5) ) neic5 = eids5->size();
604  else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection5_ << " is not available";
605 
606 
607  // --------------------------------------------------
608  // EcalElectronicsIdCollection6
609  // --------------------------------------------------
610  int neic6 = 0;
612  if ( e.getByLabel(EcalElectronicsIdCollection6_, eids6) ) neic6 = eids6->size();
613  else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection6_ << " is not available";
614 
615 
616  // --------------------------------------------------
617  // Integrity errors (sum of collections' sizes)
618  // --------------------------------------------------
619  double errorSum = ndic0 + ndic1 + ndic2 + ndic3 +
620  neic1 + neic2 + neic3 + neic4 + neic5 + neic6;
621 
623  nIntegrityErrorMinutely_->Fill(minuteDiff,errorSum);
624 
626  nIntegrityErrorHourly_->Fill(hourDiff,errorSum);
627 
628 
629  // --------------------------------------------------
630  // FEDRawDataCollection
631  // --------------------------------------------------
632  int nfedEEminus = 0;
633  int nfedEEplus = 0;
634 
635  // Barrel FEDs : 610 - 645
636  // Endcap FEDs : 601-609 (EE-) and 646-654 (EE+)
637  int eem1 = 601;
638  int eem2 = 609;
639  int eep1 = 646;
640  int eep2 = 654;
641  int kByte = 1024;
642 
643  edm::Handle<FEDRawDataCollection> allFedRawData;
644  if ( e.getByLabel(FEDRawDataCollection_, allFedRawData) ) {
645  for ( int iDcc = eem1; iDcc <= eep2; ++iDcc ) {
646  int sizeInKB = allFedRawData->FEDData(iDcc).size()/kByte;
647  if(iDcc >= eem1 && iDcc <= eem2) nfedEEminus += sizeInKB;
648  if(iDcc >= eep1 && iDcc <= eep2) nfedEEplus += sizeInKB;
649  }
650  }
651  else edm::LogWarning("EETrendTask") << FEDRawDataCollection_ << " is not available";
652 
654  nFEDEEminusRawDataMinutely_->Fill(minuteDiff,nfedEEminus);
655 
657  nFEDEEplusRawDataMinutely_->Fill(minuteDiff,nfedEEplus);
658 
660  nFEDEEminusRawDataHourly_->Fill(hourDiff,nfedEEminus);
661 
663  nFEDEEplusRawDataHourly_->Fill(hourDiff,nfedEEplus);
664 
665  // --------------------------------------------------
666  // EESRFlagCollection
667  // --------------------------------------------------
668  int nsfc = 0;
670  if ( e.getByLabel(EESRFlagCollection_,eeSrFlags) ) nsfc = eeSrFlags->size();
671  else edm::LogWarning("EETrendTask") << EESRFlagCollection_ << " is not available";
672 
674  nEESRFlagMinutely_->Fill(minuteDiff,nsfc);
675 
677  nEESRFlagHourly_->Fill(hourDiff,nsfc);
678 
679 }
edm::InputTag EEDetIdCollection0_
Definition: EETrendTask.h:82
MonitorElement * nSuperClusterMinutely_
Definition: EETrendTask.h:102
MonitorElement * nEEDigiMinutely_
Definition: EETrendTask.h:96
edm::InputTag EcalElectronicsIdCollection2_
Definition: EETrendTask.h:88
MonitorElement * nBasicClusterMinutely_
Definition: EETrendTask.h:100
edm::InputTag EcalElectronicsIdCollection1_
Definition: EETrendTask.h:87
edm::InputTag EcalElectronicsIdCollection3_
Definition: EETrendTask.h:89
MonitorElement * nFEDEEplusRawDataHourly_
Definition: EETrendTask.h:119
MonitorElement * nEcalRecHitMinutely_
Definition: EETrendTask.h:98
edm::InputTag EcalElectronicsIdCollection4_
Definition: EETrendTask.h:90
void Fill(long long x)
MonitorElement * nEEDigiHourly_
Definition: EETrendTask.h:109
MonitorElement * nEcalPnDiodeDigiMinutely_
Definition: EETrendTask.h:97
edm::InputTag BasicClusterCollection_
Definition: EETrendTask.h:80
MonitorElement * nEcalPnDiodeDigiHourly_
Definition: EETrendTask.h:110
void updateTime(void)
Definition: EETrendTask.cc:682
edm::InputTag EESRFlagCollection_
Definition: EETrendTask.h:94
MonitorElement * nEESRFlagHourly_
Definition: EETrendTask.h:120
MonitorElement * nBasicClusterSizeHourly_
Definition: EETrendTask.h:114
edm::InputTag EEDigiCollection_
Definition: EETrendTask.h:76
MonitorElement * nFEDEEminusRawDataMinutely_
Definition: EETrendTask.h:105
MonitorElement * nEcalRecHitHourly_
Definition: EETrendTask.h:111
MonitorElement * nFEDEEplusRawDataMinutely_
Definition: EETrendTask.h:106
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
MonitorElement * nFEDEEminusRawDataHourly_
Definition: EETrendTask.h:118
edm::InputTag EcalElectronicsIdCollection6_
Definition: EETrendTask.h:92
MonitorElement * nSuperClusterHourly_
Definition: EETrendTask.h:115
void setup(void)
Definition: EETrendTask.cc:169
edm::InputTag EcalTrigPrimDigiCollection_
Definition: EETrendTask.h:79
MonitorElement * nBasicClusterHourly_
Definition: EETrendTask.h:113
edm::InputTag SuperClusterCollection_
Definition: EETrendTask.h:81
MonitorElement * nEESRFlagMinutely_
Definition: EETrendTask.h:107
MonitorElement * nSuperClusterSizeMinutely_
Definition: EETrendTask.h:103
MonitorElement * nSuperClusterSizeHourly_
Definition: EETrendTask.h:116
edm::InputTag EcalRecHitCollection_
Definition: EETrendTask.h:78
int current_time_
Definition: EETrendTask.h:125
TProfile * getTProfile(void) const
edm::InputTag EEDetIdCollection1_
Definition: EETrendTask.h:83
MonitorElement * nIntegrityErrorHourly_
Definition: EETrendTask.h:117
void calcBins(int binWidth, int divisor, long int start_time, long int last_time, long int current_time, long int &binDiff, long int &diff)
edm::InputTag FEDRawDataCollection_
Definition: EETrendTask.h:93
MonitorElement * nEcalTrigPrimDigiMinutely_
Definition: EETrendTask.h:99
void shift2Right(TH1 *h, int bins)
MonitorElement * nEcalTrigPrimDigiHourly_
Definition: EETrendTask.h:112
MonitorElement * nIntegrityErrorMinutely_
Definition: EETrendTask.h:104
edm::InputTag EcalPnDiodeDigiCollection_
Definition: EETrendTask.h:77
edm::InputTag EcalElectronicsIdCollection5_
Definition: EETrendTask.h:91
edm::InputTag EEDetIdCollection2_
Definition: EETrendTask.h:84
edm::InputTag EEDetIdCollection3_
Definition: EETrendTask.h:85
MonitorElement * nBasicClusterSizeMinutely_
Definition: EETrendTask.h:101
void EETrendTask::beginJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 110 of file EETrendTask.cc.

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

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

Reimplemented from edm::EDAnalyzer.

Definition at line 122 of file EETrendTask.cc.

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

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

Definition at line 308 of file EETrendTask.cc.

References dqmStore_, MonitorElement::getName(), init_, nBasicClusterHourly_, nBasicClusterMinutely_, nBasicClusterSizeHourly_, nBasicClusterSizeMinutely_, nEcalPnDiodeDigiHourly_, nEcalPnDiodeDigiMinutely_, nEcalRecHitHourly_, nEcalRecHitMinutely_, nEcalTrigPrimDigiHourly_, nEcalTrigPrimDigiMinutely_, nEEDigiHourly_, nEEDigiMinutely_, nEESRFlagHourly_, nEESRFlagMinutely_, nFEDEEminusRawDataHourly_, nFEDEEminusRawDataMinutely_, nFEDEEplusRawDataHourly_, nFEDEEplusRawDataMinutely_, nIntegrityErrorHourly_, nIntegrityErrorMinutely_, nSuperClusterHourly_, nSuperClusterMinutely_, nSuperClusterSizeHourly_, nSuperClusterSizeMinutely_, prefixME_, DQMStore::removeElement(), and DQMStore::setCurrentFolder().

Referenced by endJob().

308  {
309 
310  if ( ! init_ ) return;
311 
312  if ( dqmStore_ ) {
313  dqmStore_->setCurrentFolder(prefixME_ + "/EETrendTask");
314 
316  nEEDigiMinutely_ = 0;
338  nEESRFlagMinutely_ = 0;
339 
341  nEEDigiHourly_ = 0;
345  nEcalRecHitHourly_ = 0;
363  nEESRFlagHourly_ = 0;
364 
365  }
366 
367  init_ = false;
368 
369 }
MonitorElement * nSuperClusterMinutely_
Definition: EETrendTask.h:102
const std::string & getName(void) const
get name of ME
MonitorElement * nEEDigiMinutely_
Definition: EETrendTask.h:96
MonitorElement * nBasicClusterMinutely_
Definition: EETrendTask.h:100
MonitorElement * nFEDEEplusRawDataHourly_
Definition: EETrendTask.h:119
MonitorElement * nEcalRecHitMinutely_
Definition: EETrendTask.h:98
MonitorElement * nEEDigiHourly_
Definition: EETrendTask.h:109
MonitorElement * nEcalPnDiodeDigiMinutely_
Definition: EETrendTask.h:97
MonitorElement * nEcalPnDiodeDigiHourly_
Definition: EETrendTask.h:110
void removeElement(const std::string &name)
Definition: DQMStore.cc:2577
MonitorElement * nEESRFlagHourly_
Definition: EETrendTask.h:120
MonitorElement * nBasicClusterSizeHourly_
Definition: EETrendTask.h:114
MonitorElement * nFEDEEminusRawDataMinutely_
Definition: EETrendTask.h:105
MonitorElement * nEcalRecHitHourly_
Definition: EETrendTask.h:111
MonitorElement * nFEDEEplusRawDataMinutely_
Definition: EETrendTask.h:106
DQMStore * dqmStore_
Definition: EETrendTask.h:66
MonitorElement * nFEDEEminusRawDataHourly_
Definition: EETrendTask.h:118
std::string prefixME_
Definition: EETrendTask.h:68
MonitorElement * nSuperClusterHourly_
Definition: EETrendTask.h:115
MonitorElement * nBasicClusterHourly_
Definition: EETrendTask.h:113
MonitorElement * nEESRFlagMinutely_
Definition: EETrendTask.h:107
MonitorElement * nSuperClusterSizeMinutely_
Definition: EETrendTask.h:103
MonitorElement * nSuperClusterSizeHourly_
Definition: EETrendTask.h:116
MonitorElement * nIntegrityErrorHourly_
Definition: EETrendTask.h:117
MonitorElement * nEcalTrigPrimDigiMinutely_
Definition: EETrendTask.h:99
MonitorElement * nEcalTrigPrimDigiHourly_
Definition: EETrendTask.h:112
MonitorElement * nIntegrityErrorMinutely_
Definition: EETrendTask.h:104
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
MonitorElement * nBasicClusterSizeMinutely_
Definition: EETrendTask.h:101
void EETrendTask::endJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 372 of file EETrendTask.cc.

References cleanup(), enableCleanup_, and ievt_.

372  {
373 
374  edm::LogInfo("EETrendTask") << "analyzed " << ievt_ << " events";
375 
376  if ( enableCleanup_ ) this->cleanup();
377 
378 }
bool enableCleanup_
Definition: EETrendTask.h:70
void cleanup(void)
Definition: EETrendTask.cc:308
void EETrendTask::endRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 133 of file EETrendTask.cc.

133  {
134 
135 }
void EETrendTask::reset ( void  )
protected

Definition at line 138 of file EETrendTask.cc.

References nBasicClusterHourly_, nBasicClusterMinutely_, nBasicClusterSizeHourly_, nBasicClusterSizeMinutely_, nEcalPnDiodeDigiHourly_, nEcalPnDiodeDigiMinutely_, nEcalRecHitHourly_, nEcalRecHitMinutely_, nEcalTrigPrimDigiHourly_, nEcalTrigPrimDigiMinutely_, nEEDigiHourly_, nEEDigiMinutely_, nEESRFlagHourly_, nEESRFlagMinutely_, nFEDEEminusRawDataHourly_, nFEDEEminusRawDataMinutely_, nFEDEEplusRawDataHourly_, nFEDEEplusRawDataMinutely_, nIntegrityErrorHourly_, nIntegrityErrorMinutely_, nSuperClusterHourly_, nSuperClusterMinutely_, nSuperClusterSizeHourly_, nSuperClusterSizeMinutely_, and MonitorElement::Reset().

Referenced by beginRun().

138  {
139 
152 
165 
166 }
MonitorElement * nSuperClusterMinutely_
Definition: EETrendTask.h:102
MonitorElement * nEEDigiMinutely_
Definition: EETrendTask.h:96
MonitorElement * nBasicClusterMinutely_
Definition: EETrendTask.h:100
MonitorElement * nFEDEEplusRawDataHourly_
Definition: EETrendTask.h:119
MonitorElement * nEcalRecHitMinutely_
Definition: EETrendTask.h:98
MonitorElement * nEEDigiHourly_
Definition: EETrendTask.h:109
MonitorElement * nEcalPnDiodeDigiMinutely_
Definition: EETrendTask.h:97
MonitorElement * nEcalPnDiodeDigiHourly_
Definition: EETrendTask.h:110
MonitorElement * nEESRFlagHourly_
Definition: EETrendTask.h:120
MonitorElement * nBasicClusterSizeHourly_
Definition: EETrendTask.h:114
MonitorElement * nFEDEEminusRawDataMinutely_
Definition: EETrendTask.h:105
MonitorElement * nEcalRecHitHourly_
Definition: EETrendTask.h:111
MonitorElement * nFEDEEplusRawDataMinutely_
Definition: EETrendTask.h:106
MonitorElement * nFEDEEminusRawDataHourly_
Definition: EETrendTask.h:118
MonitorElement * nSuperClusterHourly_
Definition: EETrendTask.h:115
MonitorElement * nBasicClusterHourly_
Definition: EETrendTask.h:113
MonitorElement * nEESRFlagMinutely_
Definition: EETrendTask.h:107
MonitorElement * nSuperClusterSizeMinutely_
Definition: EETrendTask.h:103
MonitorElement * nSuperClusterSizeHourly_
Definition: EETrendTask.h:116
MonitorElement * nIntegrityErrorHourly_
Definition: EETrendTask.h:117
MonitorElement * nEcalTrigPrimDigiMinutely_
Definition: EETrendTask.h:99
MonitorElement * nEcalTrigPrimDigiHourly_
Definition: EETrendTask.h:112
MonitorElement * nIntegrityErrorMinutely_
Definition: EETrendTask.h:104
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * nBasicClusterSizeMinutely_
Definition: EETrendTask.h:101
void EETrendTask::setup ( void  )
protected

Definition at line 169 of file EETrendTask.cc.

References DQMStore::bookProfile(), dqmStore_, init_, mergeVDriftHistosByStation::name, nBasicClusterHourly_, nBasicClusterMinutely_, nBasicClusterSizeHourly_, nBasicClusterSizeMinutely_, nEcalPnDiodeDigiHourly_, nEcalPnDiodeDigiMinutely_, nEcalRecHitHourly_, nEcalRecHitMinutely_, nEcalTrigPrimDigiHourly_, nEcalTrigPrimDigiMinutely_, nEEDigiHourly_, nEEDigiMinutely_, nEESRFlagHourly_, nEESRFlagMinutely_, nFEDEEminusRawDataHourly_, nFEDEEminusRawDataMinutely_, nFEDEEplusRawDataHourly_, nFEDEEplusRawDataMinutely_, nIntegrityErrorHourly_, nIntegrityErrorMinutely_, nSuperClusterHourly_, nSuperClusterMinutely_, nSuperClusterSizeHourly_, nSuperClusterSizeMinutely_, prefixME_, MonitorElement::setAxisTitle(), DQMStore::setCurrentFolder(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by analyze().

169  {
170 
171  init_ = true;
172 
174 
175  if ( dqmStore_ ) {
176  dqmStore_->setCurrentFolder(prefixME_ + "/EETrendTask");
177 
178  // minutely
179 
180  name = "AverageNumberOfEEDigiVs5Minutes";
181  nEEDigiMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
182  nEEDigiMinutely_->setAxisTitle("Minutes", 1);
183  nEEDigiMinutely_->setAxisTitle("Average Number of EEDigi / 5 minutes", 2);
184 
185  name = "AverageNumberOfEcalPnDiodeDigiVs5Minutes";
186  nEcalPnDiodeDigiMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
188  nEcalPnDiodeDigiMinutely_->setAxisTitle("Average Number of EcalPnDiodeDigi / 5 minutes", 2);
189 
190  name = "AverageNumberOfEcalRecHitVs5Minutes";
191  nEcalRecHitMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
192  nEcalRecHitMinutely_->setAxisTitle("Minutes", 1);
193  nEcalRecHitMinutely_->setAxisTitle("Average Number of EcalRecHit / 5 minutes", 2);
194 
195  name = "AverageNumberOfEcalTrigPrimDigiVs5Minutes";
196  nEcalTrigPrimDigiMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
198  nEcalTrigPrimDigiMinutely_->setAxisTitle("Average Number of EcalTrigPrimDigi / 5 minutes", 2);
199 
200  name = "AverageNumberOfBasicClusterVs5Minutes";
201  nBasicClusterMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
202  nBasicClusterMinutely_->setAxisTitle("Minutes", 1);
203  nBasicClusterMinutely_->setAxisTitle("Average Number of BasicClusters / 5 minutes", 2);
204 
205  name = "AverageNumberOfBasicClusterSizeVs5Minutes";
206  nBasicClusterSizeMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
208  nBasicClusterSizeMinutely_->setAxisTitle("Average Size of BasicClusters / 5 minutes", 2);
209 
210  name = "AverageNumberOfSuperClusterVs5Minutes";
211  nSuperClusterMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
212  nSuperClusterMinutely_->setAxisTitle("Minutes", 1);
213  nSuperClusterMinutely_->setAxisTitle("Average Number of SuperClusters / 5 minutes", 2);
214 
215  name = "AverageNumberOfSuperClusterSizeVs5Minutes";
216  nSuperClusterSizeMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
218  nSuperClusterSizeMinutely_->setAxisTitle("Average Size of SuperClusters / 5 minutes", 2);
219 
220  name = "AverageNumberOfIntegrityErrorVs5Minutes";
221  nIntegrityErrorMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
222  nIntegrityErrorMinutely_->setAxisTitle("Minutes", 1);
223  nIntegrityErrorMinutely_->setAxisTitle("Average IntegrityErrors / 5 minutes", 2);
224 
225  name = "AverageNumberOfFEDEEminusRawDataVs5Minutes";
226  nFEDEEminusRawDataMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
228  nFEDEEminusRawDataMinutely_->setAxisTitle("Average Number of FEDRawData in EE- / 5 minutes", 2);
229 
230  name = "AverageNumberOfFEDEEplusRawDataVs5Minutes";
231  nFEDEEplusRawDataMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
233  nFEDEEplusRawDataMinutely_->setAxisTitle("Average Number of FEDRawData in EE+ / 5 minutes", 2);
234 
235  name = "AverageNumberOfEESRFlagVs5Minutes";
236  nEESRFlagMinutely_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
237  nEESRFlagMinutely_->setAxisTitle("Minutes", 1);
238  nEESRFlagMinutely_->setAxisTitle("Average Number of EESRFlag / 5 minutes", 2);
239 
240 
241  // hourly
242 
243  name = "AverageNumberOfEEDigiVs1Hour";
244  nEEDigiHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
245  nEEDigiHourly_->setAxisTitle("Hours", 1);
246  nEEDigiHourly_->setAxisTitle("Average Number of EEDigi / hour", 2);
247 
248  name = "AverageNumberOfEcalPnDiodeDigiVs1Hour";
249  nEcalPnDiodeDigiHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
251  nEcalPnDiodeDigiHourly_->setAxisTitle("Average Number of EcalPnDiodeDigi / hour", 2);
252 
253  name = "AverageNumberOfEcalRecHitVs1Hour";
254  nEcalRecHitHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
255  nEcalRecHitHourly_->setAxisTitle("Hours", 1);
256  nEcalRecHitHourly_->setAxisTitle("Average Number of EcalRecHit / hour", 2);
257 
258  name = "AverageNumberOfEcalTrigPrimDigiVs1Hour";
259  nEcalTrigPrimDigiHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
261  nEcalTrigPrimDigiHourly_->setAxisTitle("Average Number of EcalTrigPrimDigi / hour", 2);
262 
263  name = "AverageNumberOfBasicClusterVs1Hour";
264  nBasicClusterHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
265  nBasicClusterHourly_->setAxisTitle("Hours", 1);
266  nBasicClusterHourly_->setAxisTitle("Average Number of BasicClusters / hour", 2);
267 
268  name = "AverageNumberOfBasicClusterSizeVs1Hour";
269  nBasicClusterSizeHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
271  nBasicClusterSizeHourly_->setAxisTitle("Average Size of BasicClusters / hour", 2);
272 
273  name = "AverageNumberOfSuperClusterVs1Hour";
274  nSuperClusterHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
275  nSuperClusterHourly_->setAxisTitle("Hours", 1);
276  nSuperClusterHourly_->setAxisTitle("Average Number of SuperClusters / hour", 2);
277 
278  name = "AverageNumberOfSuperClusterSizeVs1Hour";
279  nSuperClusterSizeHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
281  nSuperClusterSizeHourly_->setAxisTitle("Average Size of SuperClusters / hour", 2);
282 
283  name = "AverageNumberOfIntegrityErrorVs1Hour";
284  nIntegrityErrorHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
286  nIntegrityErrorHourly_->setAxisTitle("Average IntegrityErrors / hour", 2);
287 
288  name = "AverageNumberOfFEDEEminusRawDataVs1Hour";
289  nFEDEEminusRawDataHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
291  nFEDEEminusRawDataHourly_->setAxisTitle("Average Number of FEDRawData in EE- / hour", 2);
292 
293  name = "AverageNumberOfFEDEEplusRawDataVs1Hour";
294  nFEDEEplusRawDataHourly_ = dqmStore_->bookProfile(name, name, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s");
296  nFEDEEplusRawDataHourly_->setAxisTitle("Average Number of FEDRawData in EE+ / hour", 2);
297 
298  name = "AverageNumberOfEESRFlagVs1Hour";
299  nEESRFlagHourly_ = dqmStore_->bookProfile(name, name, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s");
300  nEESRFlagHourly_->setAxisTitle("Hours", 1);
301  nEESRFlagHourly_->setAxisTitle("Average Number of EESRFlag / hour", 2);
302 
303  }
304 
305 }
MonitorElement * nSuperClusterMinutely_
Definition: EETrendTask.h:102
MonitorElement * nEEDigiMinutely_
Definition: EETrendTask.h:96
MonitorElement * nBasicClusterMinutely_
Definition: EETrendTask.h:100
MonitorElement * nFEDEEplusRawDataHourly_
Definition: EETrendTask.h:119
MonitorElement * nEcalRecHitMinutely_
Definition: EETrendTask.h:98
MonitorElement * nEEDigiHourly_
Definition: EETrendTask.h:109
MonitorElement * nEcalPnDiodeDigiMinutely_
Definition: EETrendTask.h:97
MonitorElement * nEcalPnDiodeDigiHourly_
Definition: EETrendTask.h:110
MonitorElement * nEESRFlagHourly_
Definition: EETrendTask.h:120
MonitorElement * nBasicClusterSizeHourly_
Definition: EETrendTask.h:114
MonitorElement * nFEDEEminusRawDataMinutely_
Definition: EETrendTask.h:105
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 * nEcalRecHitHourly_
Definition: EETrendTask.h:111
MonitorElement * nFEDEEplusRawDataMinutely_
Definition: EETrendTask.h:106
DQMStore * dqmStore_
Definition: EETrendTask.h:66
MonitorElement * nFEDEEminusRawDataHourly_
Definition: EETrendTask.h:118
std::string prefixME_
Definition: EETrendTask.h:68
MonitorElement * nSuperClusterHourly_
Definition: EETrendTask.h:115
MonitorElement * nBasicClusterHourly_
Definition: EETrendTask.h:113
MonitorElement * nEESRFlagMinutely_
Definition: EETrendTask.h:107
MonitorElement * nSuperClusterSizeMinutely_
Definition: EETrendTask.h:103
MonitorElement * nSuperClusterSizeHourly_
Definition: EETrendTask.h:116
MonitorElement * nIntegrityErrorHourly_
Definition: EETrendTask.h:117
MonitorElement * nEcalTrigPrimDigiMinutely_
Definition: EETrendTask.h:99
MonitorElement * nEcalTrigPrimDigiHourly_
Definition: EETrendTask.h:112
MonitorElement * nIntegrityErrorMinutely_
Definition: EETrendTask.h:104
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
MonitorElement * nBasicClusterSizeMinutely_
Definition: EETrendTask.h:101
void EETrendTask::updateTime ( void  )
protected

Definition at line 682 of file EETrendTask.cc.

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

Referenced by analyze().

682  {
683 
686 
687 }
#define NULL
Definition: scimark2.h:8
int current_time_
Definition: EETrendTask.h:125

Member Data Documentation

edm::InputTag EETrendTask::BasicClusterCollection_
private

Definition at line 80 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

int EETrendTask::current_time_
private

Definition at line 125 of file EETrendTask.h.

Referenced by analyze(), and updateTime().

DQMStore* EETrendTask::dqmStore_
private

Definition at line 66 of file EETrendTask.h.

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

edm::InputTag EETrendTask::EcalElectronicsIdCollection1_
private

Definition at line 87 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EcalElectronicsIdCollection2_
private

Definition at line 88 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EcalElectronicsIdCollection3_
private

Definition at line 89 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EcalElectronicsIdCollection4_
private

Definition at line 90 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EcalElectronicsIdCollection5_
private

Definition at line 91 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EcalElectronicsIdCollection6_
private

Definition at line 92 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EcalPnDiodeDigiCollection_
private

Definition at line 77 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EcalRecHitCollection_
private

Definition at line 78 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EcalTrigPrimDigiCollection_
private

Definition at line 79 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EEDetIdCollection0_
private

Definition at line 82 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EEDetIdCollection1_
private

Definition at line 83 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EEDetIdCollection2_
private

Definition at line 84 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EEDetIdCollection3_
private

Definition at line 85 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EEDetIdCollection4_
private

Definition at line 86 of file EETrendTask.h.

edm::InputTag EETrendTask::EEDigiCollection_
private

Definition at line 76 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

edm::InputTag EETrendTask::EESRFlagCollection_
private

Definition at line 94 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

bool EETrendTask::enableCleanup_
private

Definition at line 70 of file EETrendTask.h.

Referenced by EETrendTask(), and endJob().

edm::InputTag EETrendTask::FEDRawDataCollection_
private

Definition at line 93 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

int EETrendTask::ievt_
private

Definition at line 64 of file EETrendTask.h.

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

bool EETrendTask::init_
private

Definition at line 122 of file EETrendTask.h.

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

int EETrendTask::last_time_
private

Definition at line 126 of file EETrendTask.h.

Referenced by analyze(), and updateTime().

bool EETrendTask::mergeRuns_
private

Definition at line 72 of file EETrendTask.h.

Referenced by beginRun(), and EETrendTask().

MonitorElement* EETrendTask::nBasicClusterHourly_
private

Definition at line 113 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nBasicClusterMinutely_
private

Definition at line 100 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nBasicClusterSizeHourly_
private

Definition at line 114 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nBasicClusterSizeMinutely_
private

Definition at line 101 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nEcalPnDiodeDigiHourly_
private

Definition at line 110 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nEcalPnDiodeDigiMinutely_
private

Definition at line 97 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nEcalRecHitHourly_
private

Definition at line 111 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nEcalRecHitMinutely_
private

Definition at line 98 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nEcalTrigPrimDigiHourly_
private

Definition at line 112 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nEcalTrigPrimDigiMinutely_
private

Definition at line 99 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nEEDigiHourly_
private

Definition at line 109 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nEEDigiMinutely_
private

Definition at line 96 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nEESRFlagHourly_
private

Definition at line 120 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nEESRFlagMinutely_
private

Definition at line 107 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nFEDEEminusRawDataHourly_
private

Definition at line 118 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nFEDEEminusRawDataMinutely_
private

Definition at line 105 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nFEDEEplusRawDataHourly_
private

Definition at line 119 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nFEDEEplusRawDataMinutely_
private

Definition at line 106 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nIntegrityErrorHourly_
private

Definition at line 117 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nIntegrityErrorMinutely_
private

Definition at line 104 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nSuperClusterHourly_
private

Definition at line 115 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nSuperClusterMinutely_
private

Definition at line 102 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nSuperClusterSizeHourly_
private

Definition at line 116 of file EETrendTask.h.

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

MonitorElement* EETrendTask::nSuperClusterSizeMinutely_
private

Definition at line 103 of file EETrendTask.h.

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

std::string EETrendTask::prefixME_
private

Definition at line 68 of file EETrendTask.h.

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

int EETrendTask::start_time_
private

Definition at line 124 of file EETrendTask.h.

Referenced by analyze(), and beginRun().

edm::InputTag EETrendTask::SuperClusterCollection_
private

Definition at line 81 of file EETrendTask.h.

Referenced by analyze(), and EETrendTask().

bool EETrendTask::verbose_
private

Definition at line 74 of file EETrendTask.h.

Referenced by EETrendTask().