CMS 3D CMS Logo

Public Member Functions | Private Attributes

EwkTauDQM Class Reference

#include <EwkTauDQM.h>

Inheritance diagram for EwkTauDQM:
edm::EDAnalyzer

List of all members.

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_
DQMStoredqmStore_
EwkElecTauHistManagerelecTauHistManager_
int maxNumWarnings_
EwkMuTauHistManagermuTauHistManager_

Detailed Description

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)

Authors:
Letizia Lusito, Joshua Swanson, Christian Veelken
Version:
Revision:
1.4
Id:
EwkTauDQM.h,v 1.4 2010/10/01 10:05:20 lusito Exp

Definition at line 31 of file EwkTauDQM.h.


Constructor & Destructor Documentation

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_.


Member Function Documentation

void EwkTauDQM::analyze ( const edm::Event evt,
const edm::EventSetup es 
) [virtual]
void EwkTauDQM::beginJob ( void  ) [virtual]
void EwkTauDQM::endJob ( void  ) [virtual]

Member Data Documentation

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().

Definition at line 42 of file EwkTauDQM.h.

Definition at line 47 of file EwkTauDQM.h.

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

Definition at line 45 of file EwkTauDQM.h.

Referenced by EwkTauDQM().

Definition at line 48 of file EwkTauDQM.h.

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