#include <DQM/HcalMonitorCluster/interface/HcalDCSInfo.h>
Public Member Functions | |
HcalDCSInfo (const edm::ParameterSet &ps) | |
Constructor. | |
virtual | ~HcalDCSInfo () |
Destructor. | |
Private Member Functions | |
void | analyze (edm::Event const &, edm::EventSetup const &) |
Analyze. | |
void | beginJob () |
BeginJob. | |
void | beginLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &iSetup) |
Begin Of Luminosity. | |
void | beginRun (edm::Run const &run, edm::EventSetup const &eSetup) |
Begin Run. | |
virtual void | endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) |
End Luminosity Block. | |
Private Attributes | |
MonitorElement * | DCSFraction_ |
MonitorElement * | DCSFractionHB_ |
MonitorElement * | DCSFractionHE_ |
MonitorElement * | DCSFractionHF_ |
MonitorElement * | DCSFractionHFlumi_ |
MonitorElement * | DCSFractionHO0_ |
MonitorElement * | DCSFractionHO12_ |
MonitorElement * | DCSFractionHO_ |
MonitorElement * | DCSSummaryMap_ |
int | debug_ |
DQMStore * | dqmStore_ |
unsigned long long | m_cacheID_ |
std::string | rootFolder_ |
Description: Checks the # of Hcal FEDs from DAQ Usage: <usage>
Definition at line 42 of file HcalDCSInfo.h.
HcalDCSInfo::HcalDCSInfo | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 20 of file HcalDCSInfo.cc.
References debug_, dqmStore_, edm::ParameterSet::getUntrackedParameter(), cmsCodeRules::cppFunctionSkipper::operator, and rootFolder_.
{ debug_ = pSet.getUntrackedParameter<int>("debug",0); rootFolder_ = pSet.getUntrackedParameter<std::string>("subSystemFolder","Hcal"); // Create MessageSender edm::LogInfo( "HcalDCSInfo") << "HcalDCSInfo::Creating HcalDCSInfo "; // get back-end interface dqmStore_ = edm::Service<DQMStore>().operator->(); }
HcalDCSInfo::~HcalDCSInfo | ( | ) | [virtual] |
Destructor.
Definition at line 31 of file HcalDCSInfo.cc.
{ edm::LogInfo("HcalDCSInfo") << "HcalDCSInfo::Deleting HcalDCSInfo "; } // destructor
void HcalDCSInfo::analyze | ( | edm::Event const & | event, |
edm::EventSetup const & | eSetup | ||
) | [private, virtual] |
void HcalDCSInfo::beginJob | ( | void | ) | [private, virtual] |
BeginJob.
Reimplemented from edm::EDAnalyzer.
Definition at line 40 of file HcalDCSInfo.cc.
References DQMStore::book2D(), DQMStore::bookFloat(), DCSFraction_, DCSFractionHB_, DCSFractionHE_, DCSFractionHF_, DCSFractionHFlumi_, DCSFractionHO0_, DCSFractionHO12_, DCSFractionHO_, DCSSummaryMap_, dqmStore_, rootFolder_, MonitorElement::setAxisRange(), MonitorElement::setBinLabel(), and DQMStore::setCurrentFolder().
{ dqmStore_->setCurrentFolder(rootFolder_+"/EventInfo/"); // Book MEs for Hcal DCS fractions DCSFraction_= dqmStore_->bookFloat("DCSSummary"); DCSSummaryMap_ = dqmStore_->book2D("DCSSummaryMap","HcalDCSSummaryMap",7,0.,7.,1,0.,1.); DCSSummaryMap_->setAxisRange(-1,1,3); DCSSummaryMap_->setBinLabel(1,"HB"); DCSSummaryMap_->setBinLabel(2,"HE"); DCSSummaryMap_->setBinLabel(3,"HO"); DCSSummaryMap_->setBinLabel(4,"HF"); DCSSummaryMap_->setBinLabel(5,"H00"); DCSSummaryMap_->setBinLabel(6,"H012"); DCSSummaryMap_->setBinLabel(7,"HFlumi"); DCSSummaryMap_->setBinLabel(1,"Status",2); dqmStore_->setCurrentFolder(rootFolder_+"/EventInfo/DCSContents"); DCSFractionHB_= dqmStore_->bookFloat("Hcal_HB"); DCSFractionHE_= dqmStore_->bookFloat("Hcal_HE"); DCSFractionHO_= dqmStore_->bookFloat("Hcal_HO"); DCSFractionHF_= dqmStore_->bookFloat("Hcal_HF"); DCSFractionHO0_= dqmStore_->bookFloat("Hcal_HO0"); DCSFractionHO12_= dqmStore_->bookFloat("Hcal_HO12"); DCSFractionHFlumi_= dqmStore_->bookFloat("Hcal_HFlumi"); }
void HcalDCSInfo::beginLuminosityBlock | ( | edm::LuminosityBlock const & | lumiSeg, |
edm::EventSetup const & | iSetup | ||
) | [private, virtual] |
Begin Of Luminosity.
Reimplemented from edm::EDAnalyzer.
Definition at line 90 of file HcalDCSInfo.cc.
{ edm::LogInfo ("HcalDCSInfo") <<"HcalDCSInfo:: Luminosity Block"; }
void HcalDCSInfo::beginRun | ( | edm::Run const & | run, |
edm::EventSetup const & | eSetup | ||
) | [private, virtual] |
Begin Run.
Reimplemented from edm::EDAnalyzer.
Definition at line 74 of file HcalDCSInfo.cc.
{ edm::LogInfo ("HcalDCSInfo") <<"HcalDCSInfo:: Begining of Run"; return; }
void HcalDCSInfo::endLuminosityBlock | ( | const edm::LuminosityBlock & | lumiSeg, |
const edm::EventSetup & | eSetup | ||
) | [private, virtual] |
End Luminosity Block.
Reimplemented from edm::EDAnalyzer.
Definition at line 95 of file HcalDCSInfo.cc.
References DCSFraction_, DCSFractionHB_, DCSFractionHE_, DCSFractionHF_, DCSFractionHFlumi_, DCSFractionHO0_, DCSFractionHO12_, DCSFractionHO_, DCSSummaryMap_, MonitorElement::Fill(), and MonitorElement::setBinContent().
{ edm::LogInfo ("HcalDCSInfo") <<"HcalDCSInfo:: Luminosity Block"; // Fill them with -1 to start with for (int ii=0;ii<7;ii++) DCSSummaryMap_->setBinContent(ii+1,1,-1.0); DCSFraction_->Fill(-1.0); DCSFractionHB_->Fill(-1.0); DCSFractionHE_->Fill(-1.0); DCSFractionHO_->Fill(-1.0); DCSFractionHF_->Fill(-1.0); DCSFractionHO0_->Fill(-1.0); DCSFractionHO12_->Fill(-1.0); DCSFractionHFlumi_->Fill(-1.0); // Fill them with 1 for (int ii=0;ii<7;ii++) DCSSummaryMap_->setBinContent(ii+1,1,1.0); DCSFraction_->Fill(1.0); DCSFractionHB_->Fill(1.0); DCSFractionHE_->Fill(1.0); DCSFractionHO_->Fill(1.0); DCSFractionHF_->Fill(1.0); DCSFractionHO0_->Fill(1.0); DCSFractionHO12_->Fill(1.0); DCSFractionHFlumi_->Fill(1.0); }
MonitorElement* HcalDCSInfo::DCSFraction_ [private] |
Definition at line 78 of file HcalDCSInfo.h.
Referenced by beginJob(), and endLuminosityBlock().
MonitorElement* HcalDCSInfo::DCSFractionHB_ [private] |
Definition at line 79 of file HcalDCSInfo.h.
Referenced by beginJob(), and endLuminosityBlock().
MonitorElement* HcalDCSInfo::DCSFractionHE_ [private] |
Definition at line 80 of file HcalDCSInfo.h.
Referenced by beginJob(), and endLuminosityBlock().
MonitorElement* HcalDCSInfo::DCSFractionHF_ [private] |
Definition at line 82 of file HcalDCSInfo.h.
Referenced by beginJob(), and endLuminosityBlock().
MonitorElement* HcalDCSInfo::DCSFractionHFlumi_ [private] |
Definition at line 85 of file HcalDCSInfo.h.
Referenced by beginJob(), and endLuminosityBlock().
MonitorElement* HcalDCSInfo::DCSFractionHO0_ [private] |
Definition at line 83 of file HcalDCSInfo.h.
Referenced by beginJob(), and endLuminosityBlock().
MonitorElement* HcalDCSInfo::DCSFractionHO12_ [private] |
Definition at line 84 of file HcalDCSInfo.h.
Referenced by beginJob(), and endLuminosityBlock().
MonitorElement* HcalDCSInfo::DCSFractionHO_ [private] |
Definition at line 81 of file HcalDCSInfo.h.
Referenced by beginJob(), and endLuminosityBlock().
MonitorElement* HcalDCSInfo::DCSSummaryMap_ [private] |
Definition at line 77 of file HcalDCSInfo.h.
Referenced by beginJob(), and endLuminosityBlock().
int HcalDCSInfo::debug_ [private] |
Definition at line 72 of file HcalDCSInfo.h.
Referenced by HcalDCSInfo().
DQMStore* HcalDCSInfo::dqmStore_ [private] |
Definition at line 76 of file HcalDCSInfo.h.
Referenced by beginJob(), and HcalDCSInfo().
unsigned long long HcalDCSInfo::m_cacheID_ [private] |
Definition at line 87 of file HcalDCSInfo.h.
std::string HcalDCSInfo::rootFolder_ [private] |
Definition at line 88 of file HcalDCSInfo.h.
Referenced by beginJob(), and HcalDCSInfo().