#include <EwkTauDQM.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
void | beginJob () |
void | endJob () |
EwkTauDQM (const edm::ParameterSet &) | |
~EwkTauDQM () | |
Private Attributes | |
std::string | dqmDirectory_ |
int | dqmError_ |
DQMStore * | dqmStore_ |
EwkElecTauHistManager * | elecTauHistManager_ |
int | maxNumWarnings_ |
EwkMuTauHistManager * | muTauHistManager_ |
Booking and filling of histograms for data-quality monitoring purposes in EWK tau analyses; individual channels are implemented in separate Ewk..HistManager classes, so far: o Z --> electron + tau-jet channel (EwkElecTauHistManager) o Z --> muon + tau-jet channel (EwkMuTauHistManager)
Definition at line 31 of file EwkTauDQM.h.
EwkTauDQM::EwkTauDQM | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 20 of file EwkTauDQM.cc.
References edm::ParameterSet::addParameter(), dqmDirectory_, dqmDirectoryName(), dqmError_, elecTauHistManager_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), maxNumWarnings_, and muTauHistManager_.
: dqmDirectory_(cfg.getParameter<std::string>("dqmDirectory")), dqmError_(0) { if ( !edm::Service<DQMStore>().isAvailable() ) { edm::LogError ("EwkTauDQM") << " Failed to access dqmStore --> histograms will NEITHER be booked NOR filled !!"; dqmError_ = 1; return; } DQMStore* dqmStore = &(*edm::Service<DQMStore>()); maxNumWarnings_ = cfg.exists("maxNumWarnings") ? cfg.getParameter<int>("maxNumWarnings") : 1; edm::ParameterSet cfgChannels = cfg.getParameter<edm::ParameterSet>("channels"); edm::ParameterSet cfgElecTauChannel = cfgChannels.getParameter<edm::ParameterSet>("elecTauChannel"); std::string dqmSubDirectoryElecTauChannel = cfgElecTauChannel.getParameter<std::string>("dqmSubDirectory"); cfgElecTauChannel.addParameter<std::string>("dqmDirectory", dqmDirectoryName(dqmDirectory_, dqmSubDirectoryElecTauChannel)); cfgElecTauChannel.addParameter<int>("maxNumWarnings", maxNumWarnings_); elecTauHistManager_ = new EwkElecTauHistManager(cfgElecTauChannel, dqmStore); edm::ParameterSet cfgMuTauChannel = cfgChannels.getParameter<edm::ParameterSet>("muTauChannel"); std::string dqmSubDirectoryMuTauChannel = cfgMuTauChannel.getParameter<std::string>("dqmSubDirectory"); cfgMuTauChannel.addParameter<std::string>("dqmDirectory", dqmDirectoryName(dqmDirectory_, dqmSubDirectoryMuTauChannel)); cfgMuTauChannel.addParameter<int>("maxNumWarnings", maxNumWarnings_); muTauHistManager_ = new EwkMuTauHistManager(cfgMuTauChannel, dqmStore); }
EwkTauDQM::~EwkTauDQM | ( | ) |
Definition at line 49 of file EwkTauDQM.cc.
References elecTauHistManager_, and muTauHistManager_.
{ delete elecTauHistManager_; delete muTauHistManager_; }
void EwkTauDQM::analyze | ( | const edm::Event & | evt, |
const edm::EventSetup & | es | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 63 of file EwkTauDQM.cc.
References dqmError_, elecTauHistManager_, EwkMuTauHistManager::fillHistograms(), EwkElecTauHistManager::fillHistograms(), and muTauHistManager_.
{ if ( dqmError_ ) return; elecTauHistManager_->fillHistograms(evt, es); muTauHistManager_->fillHistograms(evt, es); }
void EwkTauDQM::beginJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 55 of file EwkTauDQM.cc.
References EwkMuTauHistManager::bookHistograms(), EwkElecTauHistManager::bookHistograms(), dqmError_, elecTauHistManager_, and muTauHistManager_.
{ if ( dqmError_ ) return; elecTauHistManager_->bookHistograms(); muTauHistManager_->bookHistograms(); }
void EwkTauDQM::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 71 of file EwkTauDQM.cc.
References dqmError_, elecTauHistManager_, EwkMuTauHistManager::finalizeHistograms(), EwkElecTauHistManager::finalizeHistograms(), and muTauHistManager_.
{ if ( dqmError_ ) return; elecTauHistManager_->finalizeHistograms(); muTauHistManager_->finalizeHistograms(); }
std::string EwkTauDQM::dqmDirectory_ [private] |
Definition at line 43 of file EwkTauDQM.h.
Referenced by EwkTauDQM().
int EwkTauDQM::dqmError_ [private] |
Definition at line 44 of file EwkTauDQM.h.
Referenced by analyze(), beginJob(), endJob(), and EwkTauDQM().
DQMStore* EwkTauDQM::dqmStore_ [private] |
Definition at line 42 of file EwkTauDQM.h.
Definition at line 47 of file EwkTauDQM.h.
Referenced by analyze(), beginJob(), endJob(), EwkTauDQM(), and ~EwkTauDQM().
int EwkTauDQM::maxNumWarnings_ [private] |
Definition at line 45 of file EwkTauDQM.h.
Referenced by EwkTauDQM().
EwkMuTauHistManager* EwkTauDQM::muTauHistManager_ [private] |
Definition at line 48 of file EwkTauDQM.h.
Referenced by analyze(), beginJob(), endJob(), EwkTauDQM(), and ~EwkTauDQM().