#include <EETrendTask.h>
Definition at line 21 of file EETrendTask.h.
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_, cmsCodeRules::cppFunctionSkipper::operator, prefixME_, SuperClusterCollection_, and verbose_.
{ init_ = false; dqmStore_ = edm::Service<DQMStore>().operator->(); prefixME_ = ps.getUntrackedParameter<std::string>("prefixME", ""); enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false); mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns", false); verbose_ = ps.getUntrackedParameter<bool>("verbose", false); // parameters... EEDigiCollection_ = ps.getParameter<edm::InputTag>("EEDigiCollection"); EcalPnDiodeDigiCollection_ = ps.getParameter<edm::InputTag>("EcalPnDiodeDigiCollection"); EcalTrigPrimDigiCollection_ = ps.getParameter<edm::InputTag>("EcalTrigPrimDigiCollection"); EcalRecHitCollection_ = ps.getParameter<edm::InputTag>("EcalRecHitCollection"); BasicClusterCollection_ = ps.getParameter<edm::InputTag>("BasicClusterCollection"); SuperClusterCollection_ = ps.getParameter<edm::InputTag>("SuperClusterCollection"); EEDetIdCollection0_ = ps.getParameter<edm::InputTag>("EEDetIdCollection0"); EEDetIdCollection1_ = ps.getParameter<edm::InputTag>("EEDetIdCollection1"); EEDetIdCollection2_ = ps.getParameter<edm::InputTag>("EEDetIdCollection2"); EEDetIdCollection3_ = ps.getParameter<edm::InputTag>("EEDetIdCollection3"); EcalElectronicsIdCollection1_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection1"); EcalElectronicsIdCollection2_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection2"); EcalElectronicsIdCollection3_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection3"); EcalElectronicsIdCollection4_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection4"); EcalElectronicsIdCollection5_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection5"); EcalElectronicsIdCollection6_ = ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection6"); FEDRawDataCollection_ = ps.getParameter<edm::InputTag>("FEDRawDataCollection"); EESRFlagCollection_ = ps.getParameter<edm::InputTag>("EESRFlagCollection"); // histograms... nEEDigiMinutely_ = 0; nEcalPnDiodeDigiMinutely_ = 0; nEcalRecHitMinutely_ = 0; nEcalTrigPrimDigiMinutely_ = 0; nBasicClusterMinutely_ = 0; nBasicClusterSizeMinutely_ = 0; nSuperClusterMinutely_ = 0; nSuperClusterSizeMinutely_ = 0; nIntegrityErrorMinutely_ = 0; nFEDEEminusRawDataMinutely_ = 0; nFEDEEplusRawDataMinutely_ = 0; nEESRFlagMinutely_ = 0; nEEDigiHourly_ = 0; nEcalPnDiodeDigiHourly_ = 0; nEcalRecHitHourly_ = 0; nEcalTrigPrimDigiHourly_ = 0; nBasicClusterHourly_ = 0; nBasicClusterSizeHourly_ = 0; nSuperClusterHourly_ = 0; nSuperClusterSizeHourly_ = 0; nIntegrityErrorHourly_ = 0; nFEDEEminusRawDataHourly_ = 0; nFEDEEplusRawDataHourly_ = 0; nEESRFlagHourly_ = 0; }
EETrendTask::~EETrendTask | ( | ) | [virtual] |
Definition at line 106 of file EETrendTask.cc.
{ }
void EETrendTask::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
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().
{ if ( ! init_ ) this->setup(); ievt_++; // -------------------------------------------------- // Collect time information // -------------------------------------------------- updateTime(); long int minuteBinDiff = -1; long int minuteDiff = -1; ecaldqm::calcBins(5,60,start_time_,last_time_,current_time_,minuteBinDiff,minuteDiff); long int hourBinDiff = -1; long int hourDiff = -1; ecaldqm::calcBins(1,3600,start_time_,last_time_,current_time_,hourBinDiff,hourDiff); // -------------------------------------------------- // EEDigiCollection // -------------------------------------------------- int ndc = 0; edm::Handle<EEDigiCollection> digis; if ( e.getByLabel(EEDigiCollection_, digis) ) ndc = digis->size(); else edm::LogWarning("EETrendTask") << EEDigiCollection_ << " is not available"; ecaldqm::shift2Right(nEEDigiMinutely_->getTProfile(), minuteBinDiff); nEEDigiMinutely_->Fill(minuteDiff,ndc); ecaldqm::shift2Right(nEEDigiHourly_->getTProfile(), hourBinDiff); nEEDigiHourly_->Fill(hourDiff,ndc); // -------------------------------------------------- // EcalPnDiodeDigiCollection // -------------------------------------------------- int npdc = 0; edm::Handle<EcalPnDiodeDigiCollection> pns; if ( e.getByLabel(EcalPnDiodeDigiCollection_, pns) ) npdc = pns->size(); else edm::LogWarning("EETrendTask") << EcalPnDiodeDigiCollection_ << " is not available"; ecaldqm::shift2Right(nEcalPnDiodeDigiMinutely_->getTProfile(), minuteBinDiff); nEcalPnDiodeDigiMinutely_->Fill(minuteDiff,npdc); ecaldqm::shift2Right(nEcalPnDiodeDigiHourly_->getTProfile(), hourBinDiff); nEcalPnDiodeDigiHourly_->Fill(hourDiff,npdc); // -------------------------------------------------- // EcalRecHitCollection // -------------------------------------------------- int nrhc = 0; edm::Handle<EcalRecHitCollection> hits; if ( e.getByLabel(EcalRecHitCollection_, hits) ) nrhc = hits->size(); else edm::LogWarning("EETrendTask") << EcalRecHitCollection_ << " is not available"; ecaldqm::shift2Right(nEcalRecHitMinutely_->getTProfile(), minuteBinDiff); nEcalRecHitMinutely_->Fill(minuteDiff,nrhc); ecaldqm::shift2Right(nEcalRecHitHourly_->getTProfile(), hourBinDiff); nEcalRecHitHourly_->Fill(hourDiff,nrhc); // -------------------------------------------------- // EcalTrigPrimDigiCollection // -------------------------------------------------- int ntpdc = 0; edm::Handle<EcalTrigPrimDigiCollection> tpdigis; if ( e.getByLabel(EcalTrigPrimDigiCollection_, tpdigis) ) ntpdc = tpdigis->size(); else edm::LogWarning("EETrendTask") << EcalTrigPrimDigiCollection_ << " is not available"; ecaldqm::shift2Right(nEcalTrigPrimDigiMinutely_->getTProfile(), minuteBinDiff); nEcalTrigPrimDigiMinutely_->Fill(minuteDiff,ntpdc); ecaldqm::shift2Right(nEcalTrigPrimDigiHourly_->getTProfile(), hourBinDiff); nEcalTrigPrimDigiHourly_->Fill(hourDiff,ntpdc); // -------------------------------------------------- // BasicClusters // -------------------------------------------------- int nbcc = 0; float nbcc_size = 0.0; edm::Handle<reco::BasicClusterCollection> pBasicClusters; if ( e.getByLabel(BasicClusterCollection_, pBasicClusters) ) { nbcc = pBasicClusters->size(); for(reco::BasicClusterCollection::const_iterator it = pBasicClusters->begin(); it != pBasicClusters->end(); it++){ nbcc_size += it->size(); } if(nbcc == 0) nbcc_size = 0; else nbcc_size = nbcc_size / nbcc; } else edm::LogWarning("EETrendTask") << BasicClusterCollection_ << " is not available"; ecaldqm::shift2Right(nBasicClusterMinutely_->getTProfile(), minuteBinDiff); nBasicClusterMinutely_->Fill(minuteDiff,nbcc); ecaldqm::shift2Right(nBasicClusterHourly_->getTProfile(), hourBinDiff); nBasicClusterHourly_->Fill(hourDiff,nbcc); ecaldqm::shift2Right(nBasicClusterSizeMinutely_->getTProfile(), minuteBinDiff); nBasicClusterSizeMinutely_->Fill(minuteDiff,nbcc); ecaldqm::shift2Right(nBasicClusterSizeHourly_->getTProfile(), hourBinDiff); nBasicClusterSizeHourly_->Fill(hourDiff,nbcc); // -------------------------------------------------- // SuperClusters // -------------------------------------------------- int nscc = 0; float nscc_size = 0.0; edm::Handle<reco::SuperClusterCollection> pSuperClusters; if ( e.getByLabel(SuperClusterCollection_, pSuperClusters) ) { nscc = pSuperClusters->size(); for(reco::SuperClusterCollection::const_iterator it = pSuperClusters->begin(); it != pSuperClusters->end(); it++){ nscc_size += it->clustersSize(); } if(nscc == 0) nscc_size = 0; else nscc_size = nscc_size / nscc; } else edm::LogWarning("EETrendTask") << SuperClusterCollection_ << " is not available"; ecaldqm::shift2Right(nSuperClusterMinutely_->getTProfile(), minuteBinDiff); nSuperClusterMinutely_->Fill(minuteDiff,nscc); ecaldqm::shift2Right(nSuperClusterHourly_->getTProfile(), hourBinDiff); nSuperClusterHourly_->Fill(hourDiff,nscc); ecaldqm::shift2Right(nSuperClusterSizeMinutely_->getTProfile(), minuteBinDiff); nSuperClusterSizeMinutely_->Fill(minuteDiff,nscc); ecaldqm::shift2Right(nSuperClusterSizeHourly_->getTProfile(), hourBinDiff); nSuperClusterSizeHourly_->Fill(hourDiff,nscc); // -------------------------------------------------- // Integrity errors (sum of collections' sizes) // -------------------------------------------------- // double errorSum = 0.0; // -------------------------------------------------- // EEDetIdCollection0 // -------------------------------------------------- int ndic0 = 0; edm::Handle<EEDetIdCollection> ids0; if ( e.getByLabel(EEDetIdCollection0_, ids0) ) ndic0 = ids0->size(); else edm::LogWarning("EETrendTask") << EEDetIdCollection0_ << " is not available"; // -------------------------------------------------- // EEDetIdCollection1 // -------------------------------------------------- int ndic1 = 0; edm::Handle<EEDetIdCollection> ids1; if ( e.getByLabel(EEDetIdCollection1_, ids1) ) ndic1 = ids1->size(); else edm::LogWarning("EETrendTask") << EEDetIdCollection1_ << " is not available"; // -------------------------------------------------- // EEDetIdCollection2 // -------------------------------------------------- int ndic2 = 0; edm::Handle<EEDetIdCollection> ids2; if ( e.getByLabel(EEDetIdCollection2_, ids2) ) ndic2 = ids2->size(); else edm::LogWarning("EETrendTask") << EEDetIdCollection2_ << " is not available"; // -------------------------------------------------- // EEDetIdCollection3 // -------------------------------------------------- int ndic3 = 0; edm::Handle<EEDetIdCollection> ids3; if ( e.getByLabel(EEDetIdCollection3_, ids3) ) ndic3 = ids3->size(); else edm::LogWarning("EETrendTask") << EEDetIdCollection3_ << " is not available"; // -------------------------------------------------- // EcalElectronicsIdCollection1 // -------------------------------------------------- int neic1 = 0; edm::Handle<EcalElectronicsIdCollection> eids1; if ( e.getByLabel(EcalElectronicsIdCollection1_, eids1) ) neic1 = eids1->size(); else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection1_ << " is not available"; // -------------------------------------------------- // EcalElectronicsIdCollection2 // -------------------------------------------------- int neic2 = 0; edm::Handle<EcalElectronicsIdCollection> eids2; if ( e.getByLabel(EcalElectronicsIdCollection2_, eids2) ) neic2 = eids2->size(); else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection2_ << " is not available"; // -------------------------------------------------- // EcalElectronicsIdCollection3 // -------------------------------------------------- int neic3 = 0; edm::Handle<EcalElectronicsIdCollection> eids3; if ( e.getByLabel(EcalElectronicsIdCollection3_, eids3) ) neic3 = eids3->size(); else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection3_ << " is not available"; // -------------------------------------------------- // EcalElectronicsIdCollection4 // -------------------------------------------------- int neic4 = 0; edm::Handle<EcalElectronicsIdCollection> eids4; if ( e.getByLabel(EcalElectronicsIdCollection4_, eids4) ) neic4 = eids4->size(); else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection4_ << " is not available"; // -------------------------------------------------- // EcalElectronicsIdCollection5 // -------------------------------------------------- int neic5 = 0; edm::Handle<EcalElectronicsIdCollection> eids5; if ( e.getByLabel(EcalElectronicsIdCollection5_, eids5) ) neic5 = eids5->size(); else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection5_ << " is not available"; // -------------------------------------------------- // EcalElectronicsIdCollection6 // -------------------------------------------------- int neic6 = 0; edm::Handle<EcalElectronicsIdCollection> eids6; if ( e.getByLabel(EcalElectronicsIdCollection6_, eids6) ) neic6 = eids6->size(); else edm::LogWarning("EETrendTask") << EcalElectronicsIdCollection6_ << " is not available"; // -------------------------------------------------- // Integrity errors (sum of collections' sizes) // -------------------------------------------------- double errorSum = ndic0 + ndic1 + ndic2 + ndic3 + neic1 + neic2 + neic3 + neic4 + neic5 + neic6; ecaldqm::shift2Right(nIntegrityErrorMinutely_->getTProfile(), minuteBinDiff); nIntegrityErrorMinutely_->Fill(minuteDiff,errorSum); ecaldqm::shift2Right(nIntegrityErrorHourly_->getTProfile(), hourBinDiff); nIntegrityErrorHourly_->Fill(hourDiff,errorSum); // -------------------------------------------------- // FEDRawDataCollection // -------------------------------------------------- int nfedEEminus = 0; int nfedEEplus = 0; // Barrel FEDs : 610 - 645 // Endcap FEDs : 601-609 (EE-) and 646-654 (EE+) int eem1 = 601; int eem2 = 609; int eep1 = 646; int eep2 = 654; int kByte = 1024; edm::Handle<FEDRawDataCollection> allFedRawData; if ( e.getByLabel(FEDRawDataCollection_, allFedRawData) ) { for ( int iDcc = eem1; iDcc <= eep2; ++iDcc ) { int sizeInKB = allFedRawData->FEDData(iDcc).size()/kByte; if(iDcc >= eem1 && iDcc <= eem2) nfedEEminus += sizeInKB; if(iDcc >= eep1 && iDcc <= eep2) nfedEEplus += sizeInKB; } } else edm::LogWarning("EETrendTask") << FEDRawDataCollection_ << " is not available"; ecaldqm::shift2Right(nFEDEEminusRawDataMinutely_->getTProfile(), minuteBinDiff); nFEDEEminusRawDataMinutely_->Fill(minuteDiff,nfedEEminus); ecaldqm::shift2Right(nFEDEEplusRawDataMinutely_->getTProfile(), minuteBinDiff); nFEDEEplusRawDataMinutely_->Fill(minuteDiff,nfedEEplus); ecaldqm::shift2Right(nFEDEEminusRawDataHourly_->getTProfile(), hourBinDiff); nFEDEEminusRawDataHourly_->Fill(hourDiff,nfedEEminus); ecaldqm::shift2Right(nFEDEEplusRawDataHourly_->getTProfile(), hourBinDiff); nFEDEEplusRawDataHourly_->Fill(hourDiff,nfedEEplus); // -------------------------------------------------- // EESRFlagCollection // -------------------------------------------------- int nsfc = 0; edm::Handle<EESrFlagCollection> eeSrFlags; if ( e.getByLabel(EESRFlagCollection_,eeSrFlags) ) nsfc = eeSrFlags->size(); else edm::LogWarning("EETrendTask") << EESRFlagCollection_ << " is not available"; ecaldqm::shift2Right(nEESRFlagMinutely_->getTProfile(), minuteBinDiff); nEESRFlagMinutely_->Fill(minuteDiff,nsfc); ecaldqm::shift2Right(nEESRFlagHourly_->getTProfile(), hourBinDiff); nEESRFlagHourly_->Fill(hourDiff,nsfc); }
void EETrendTask::beginJob | ( | void | ) | [protected, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 110 of file EETrendTask.cc.
References dqmStore_, ievt_, prefixME_, DQMStore::rmdir(), and DQMStore::setCurrentFolder().
void EETrendTask::beginRun | ( | const edm::Run & | r, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 122 of file EETrendTask.cc.
References Numbers::initGeometry(), mergeRuns_, NULL, reset(), start_time_, and cond::rpcobgas::time.
{ Numbers::initGeometry(c, false); if ( ! mergeRuns_ ) this->reset(); start_time_ = time(NULL); }
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().
{ if ( ! init_ ) return; if ( dqmStore_ ) { dqmStore_->setCurrentFolder(prefixME_ + "/EETrendTask"); if(nEEDigiMinutely_) dqmStore_->removeElement( nEEDigiMinutely_->getName()); nEEDigiMinutely_ = 0; if(nEcalPnDiodeDigiMinutely_) dqmStore_->removeElement( nEcalPnDiodeDigiMinutely_->getName()); nEcalPnDiodeDigiMinutely_ = 0; if(nEcalRecHitMinutely_) dqmStore_->removeElement( nEcalRecHitMinutely_->getName()); nEcalRecHitMinutely_ = 0; if(nEcalTrigPrimDigiMinutely_) dqmStore_->removeElement( nEcalTrigPrimDigiMinutely_->getName()); nEcalTrigPrimDigiMinutely_ = 0; if(nBasicClusterMinutely_) dqmStore_->removeElement( nBasicClusterMinutely_->getName()); nBasicClusterMinutely_ = 0; if(nBasicClusterSizeMinutely_) dqmStore_->removeElement( nBasicClusterSizeMinutely_->getName()); nBasicClusterSizeMinutely_ = 0; if(nSuperClusterMinutely_) dqmStore_->removeElement( nSuperClusterMinutely_->getName()); nSuperClusterMinutely_ = 0; if(nSuperClusterSizeMinutely_) dqmStore_->removeElement( nSuperClusterSizeMinutely_->getName()); nSuperClusterSizeMinutely_ = 0; if(nIntegrityErrorMinutely_) dqmStore_->removeElement( nIntegrityErrorMinutely_->getName()); nIntegrityErrorMinutely_ = 0; if(nFEDEEminusRawDataMinutely_) dqmStore_->removeElement( nFEDEEminusRawDataMinutely_->getName()); nFEDEEminusRawDataMinutely_ = 0; if(nFEDEEplusRawDataMinutely_) dqmStore_->removeElement( nFEDEEplusRawDataMinutely_->getName()); nFEDEEplusRawDataMinutely_ = 0; if(nEESRFlagMinutely_) dqmStore_->removeElement( nEESRFlagMinutely_->getName()); nEESRFlagMinutely_ = 0; if(nEEDigiHourly_) dqmStore_->removeElement( nEEDigiHourly_->getName()); nEEDigiHourly_ = 0; if(nEcalPnDiodeDigiHourly_) dqmStore_->removeElement( nEcalPnDiodeDigiHourly_->getName()); nEcalPnDiodeDigiHourly_ = 0; if(nEcalRecHitHourly_) dqmStore_->removeElement( nEcalRecHitHourly_->getName()); nEcalRecHitHourly_ = 0; if(nEcalTrigPrimDigiHourly_) dqmStore_->removeElement( nEcalTrigPrimDigiHourly_->getName()); nEcalTrigPrimDigiHourly_ = 0; if(nBasicClusterHourly_) dqmStore_->removeElement( nBasicClusterHourly_->getName()); nBasicClusterHourly_ = 0; if(nBasicClusterSizeHourly_) dqmStore_->removeElement( nBasicClusterSizeHourly_->getName()); nBasicClusterSizeHourly_ = 0; if(nSuperClusterHourly_) dqmStore_->removeElement( nSuperClusterHourly_->getName()); nSuperClusterHourly_ = 0; if(nSuperClusterSizeHourly_) dqmStore_->removeElement( nSuperClusterSizeHourly_->getName()); nSuperClusterSizeHourly_ = 0; if(nIntegrityErrorHourly_) dqmStore_->removeElement( nIntegrityErrorHourly_->getName()); nIntegrityErrorHourly_ = 0; if(nFEDEEminusRawDataHourly_) dqmStore_->removeElement( nFEDEEminusRawDataHourly_->getName()); nFEDEEminusRawDataHourly_ = 0; if(nFEDEEplusRawDataHourly_) dqmStore_->removeElement( nFEDEEplusRawDataHourly_->getName()); nFEDEEplusRawDataHourly_ = 0; if(nEESRFlagHourly_) dqmStore_->removeElement( nEESRFlagHourly_->getName()); nEESRFlagHourly_ = 0; } init_ = false; }
void EETrendTask::endJob | ( | void | ) | [protected, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 372 of file EETrendTask.cc.
References cleanup(), enableCleanup_, and ievt_.
{ edm::LogInfo("EETrendTask") << "analyzed " << ievt_ << " events"; if ( enableCleanup_ ) this->cleanup(); }
void EETrendTask::endRun | ( | const edm::Run & | r, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
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().
{ if(nEEDigiMinutely_) nEEDigiMinutely_->Reset(); if(nEcalPnDiodeDigiMinutely_) nEcalPnDiodeDigiMinutely_->Reset(); if(nEcalRecHitMinutely_) nEcalRecHitMinutely_->Reset(); if(nEcalTrigPrimDigiMinutely_) nEcalTrigPrimDigiMinutely_->Reset(); if(nBasicClusterMinutely_) nBasicClusterMinutely_->Reset(); if(nBasicClusterSizeMinutely_) nBasicClusterSizeMinutely_->Reset(); if(nSuperClusterMinutely_) nSuperClusterMinutely_->Reset(); if(nSuperClusterSizeMinutely_) nSuperClusterSizeMinutely_->Reset(); if(nIntegrityErrorMinutely_) nIntegrityErrorMinutely_->Reset(); if(nFEDEEminusRawDataMinutely_) nFEDEEminusRawDataMinutely_->Reset(); if(nFEDEEplusRawDataMinutely_) nFEDEEplusRawDataMinutely_->Reset(); if(nEESRFlagMinutely_) nEESRFlagMinutely_->Reset(); if(nEEDigiHourly_) nEEDigiHourly_->Reset(); if(nEcalPnDiodeDigiHourly_) nEcalPnDiodeDigiHourly_->Reset(); if(nEcalRecHitHourly_) nEcalRecHitHourly_->Reset(); if(nEcalTrigPrimDigiHourly_) nEcalTrigPrimDigiHourly_->Reset(); if(nBasicClusterHourly_) nBasicClusterHourly_->Reset(); if(nBasicClusterSizeHourly_) nBasicClusterSizeHourly_->Reset(); if(nSuperClusterHourly_) nSuperClusterHourly_->Reset(); if(nSuperClusterSizeHourly_) nSuperClusterSizeHourly_->Reset(); if(nIntegrityErrorHourly_) nIntegrityErrorHourly_->Reset(); if(nFEDEEminusRawDataHourly_) nFEDEEminusRawDataHourly_->Reset(); if(nFEDEEplusRawDataHourly_) nFEDEEplusRawDataHourly_->Reset(); if(nEESRFlagHourly_) nEESRFlagHourly_->Reset(); }
void EETrendTask::setup | ( | void | ) | [protected] |
Definition at line 169 of file EETrendTask.cc.
References DQMStore::bookProfile(), dqmStore_, trackerHits::histo, 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_, MonitorElement::setAxisTitle(), and DQMStore::setCurrentFolder().
Referenced by analyze().
{ init_ = true; char histo[200]; if ( dqmStore_ ) { dqmStore_->setCurrentFolder(prefixME_ + "/EETrendTask"); // minutely sprintf(histo, "AverageNumberOfEEDigiVs5Minutes"); nEEDigiMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nEEDigiMinutely_->setAxisTitle("Minutes", 1); nEEDigiMinutely_->setAxisTitle("Average Number of EEDigi / 5 minutes", 2); sprintf(histo, "AverageNumberOfEcalPnDiodeDigiVs5Minutes"); nEcalPnDiodeDigiMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nEcalPnDiodeDigiMinutely_->setAxisTitle("Minutes", 1); nEcalPnDiodeDigiMinutely_->setAxisTitle("Average Number of EcalPnDiodeDigi / 5 minutes", 2); sprintf(histo, "AverageNumberOfEcalRecHitVs5Minutes"); nEcalRecHitMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nEcalRecHitMinutely_->setAxisTitle("Minutes", 1); nEcalRecHitMinutely_->setAxisTitle("Average Number of EcalRecHit / 5 minutes", 2); sprintf(histo, "AverageNumberOfEcalTrigPrimDigiVs5Minutes"); nEcalTrigPrimDigiMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nEcalTrigPrimDigiMinutely_->setAxisTitle("Minutes", 1); nEcalTrigPrimDigiMinutely_->setAxisTitle("Average Number of EcalTrigPrimDigi / 5 minutes", 2); sprintf(histo, "AverageNumberOfBasicClusterVs5Minutes"); nBasicClusterMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nBasicClusterMinutely_->setAxisTitle("Minutes", 1); nBasicClusterMinutely_->setAxisTitle("Average Number of BasicClusters / 5 minutes", 2); sprintf(histo, "AverageNumberOfBasicClusterSizeVs5Minutes"); nBasicClusterSizeMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nBasicClusterSizeMinutely_->setAxisTitle("Minutes", 1); nBasicClusterSizeMinutely_->setAxisTitle("Average Size of BasicClusters / 5 minutes", 2); sprintf(histo, "AverageNumberOfSuperClusterVs5Minutes"); nSuperClusterMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nSuperClusterMinutely_->setAxisTitle("Minutes", 1); nSuperClusterMinutely_->setAxisTitle("Average Number of SuperClusters / 5 minutes", 2); sprintf(histo, "AverageNumberOfSuperClusterSizeVs5Minutes"); nSuperClusterSizeMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nSuperClusterSizeMinutely_->setAxisTitle("Minutes", 1); nSuperClusterSizeMinutely_->setAxisTitle("Average Size of SuperClusters / 5 minutes", 2); sprintf(histo, "AverageNumberOfIntegrityErrorVs5Minutes"); nIntegrityErrorMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nIntegrityErrorMinutely_->setAxisTitle("Minutes", 1); nIntegrityErrorMinutely_->setAxisTitle("Average IntegrityErrors / 5 minutes", 2); sprintf(histo, "AverageNumberOfFEDEEminusRawDataVs5Minutes"); nFEDEEminusRawDataMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nFEDEEminusRawDataMinutely_->setAxisTitle("Minutes", 1); nFEDEEminusRawDataMinutely_->setAxisTitle("Average Number of FEDRawData in EE- / 5 minutes", 2); sprintf(histo, "AverageNumberOfFEDEEplusRawDataVs5Minutes"); nFEDEEplusRawDataMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nFEDEEplusRawDataMinutely_->setAxisTitle("Minutes", 1); nFEDEEplusRawDataMinutely_->setAxisTitle("Average Number of FEDRawData in EE+ / 5 minutes", 2); sprintf(histo, "AverageNumberOfEESRFlagVs5Minutes"); nEESRFlagMinutely_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nEESRFlagMinutely_->setAxisTitle("Minutes", 1); nEESRFlagMinutely_->setAxisTitle("Average Number of EESRFlag / 5 minutes", 2); // hourly sprintf(histo, "AverageNumberOfEEDigiVs1Hour"); nEEDigiHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nEEDigiHourly_->setAxisTitle("Hours", 1); nEEDigiHourly_->setAxisTitle("Average Number of EEDigi / hour", 2); sprintf(histo, "AverageNumberOfEcalPnDiodeDigiVs1Hour"); nEcalPnDiodeDigiHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nEcalPnDiodeDigiHourly_->setAxisTitle("Hours", 1); nEcalPnDiodeDigiHourly_->setAxisTitle("Average Number of EcalPnDiodeDigi / hour", 2); sprintf(histo, "AverageNumberOfEcalRecHitVs1Hour"); nEcalRecHitHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nEcalRecHitHourly_->setAxisTitle("Hours", 1); nEcalRecHitHourly_->setAxisTitle("Average Number of EcalRecHit / hour", 2); sprintf(histo, "AverageNumberOfEcalTrigPrimDigiVs1Hour"); nEcalTrigPrimDigiHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nEcalTrigPrimDigiHourly_->setAxisTitle("Hours", 1); nEcalTrigPrimDigiHourly_->setAxisTitle("Average Number of EcalTrigPrimDigi / hour", 2); sprintf(histo, "AverageNumberOfBasicClusterVs1Hour"); nBasicClusterHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nBasicClusterHourly_->setAxisTitle("Hours", 1); nBasicClusterHourly_->setAxisTitle("Average Number of BasicClusters / hour", 2); sprintf(histo, "AverageNumberOfBasicClusterSizeVs1Hour"); nBasicClusterSizeHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nBasicClusterSizeHourly_->setAxisTitle("Hours", 1); nBasicClusterSizeHourly_->setAxisTitle("Average Size of BasicClusters / hour", 2); sprintf(histo, "AverageNumberOfSuperClusterVs1Hour"); nSuperClusterHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nSuperClusterHourly_->setAxisTitle("Hours", 1); nSuperClusterHourly_->setAxisTitle("Average Number of SuperClusters / hour", 2); sprintf(histo, "AverageNumberOfSuperClusterSizeVs1Hour"); nSuperClusterSizeHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nSuperClusterSizeHourly_->setAxisTitle("Hours", 1); nSuperClusterSizeHourly_->setAxisTitle("Average Size of SuperClusters / hour", 2); sprintf(histo, "AverageNumberOfIntegrityErrorVs1Hour"); nIntegrityErrorHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nIntegrityErrorHourly_->setAxisTitle("Hours", 1); nIntegrityErrorHourly_->setAxisTitle("Average IntegrityErrors / hour", 2); sprintf(histo, "AverageNumberOfFEDEEminusRawDataVs1Hour"); nFEDEEminusRawDataHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nFEDEEminusRawDataHourly_->setAxisTitle("Hours", 1); nFEDEEminusRawDataHourly_->setAxisTitle("Average Number of FEDRawData in EE- / hour", 2); sprintf(histo, "AverageNumberOfFEDEEplusRawDataVs1Hour"); nFEDEEplusRawDataHourly_ = dqmStore_->bookProfile(histo, histo, 24, 0.0, 24.0, 100, 0.0, 1.0e6, "s"); nFEDEEplusRawDataHourly_->setAxisTitle("Hours", 1); nFEDEEplusRawDataHourly_->setAxisTitle("Average Number of FEDRawData in EE+ / hour", 2); sprintf(histo, "AverageNumberOfEESRFlagVs1Hour"); nEESRFlagHourly_ = dqmStore_->bookProfile(histo, histo, 12, 0.0, 60.0, 100, 0.0, 1.0e6, "s"); nEESRFlagHourly_->setAxisTitle("Hours", 1); nEESRFlagHourly_->setAxisTitle("Average Number of EESRFlag / hour", 2); } }
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().
{ last_time_ = current_time_; current_time_ = time(NULL); }
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().
Definition at line 87 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 88 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 89 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 90 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 91 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 92 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 77 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 78 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 79 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 82 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 83 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 84 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
Definition at line 85 of file EETrendTask.h.
Referenced by analyze(), and EETrendTask().
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().
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().
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().
Definition at line 100 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
Definition at line 114 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
Definition at line 101 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
Definition at line 110 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
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().
Definition at line 112 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
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().
Definition at line 118 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
Definition at line 105 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
Definition at line 119 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
Definition at line 106 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
Definition at line 117 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
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().
Definition at line 102 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
Definition at line 116 of file EETrendTask.h.
Referenced by analyze(), cleanup(), EETrendTask(), reset(), and setup().
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().
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().