CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

TopHLTDiMuonDQMClient Class Reference

#include <TopHLTDiMuonDQMClient.h>

Inheritance diagram for TopHLTDiMuonDQMClient:
edm::EDAnalyzer

List of all members.

Public Member Functions

 TopHLTDiMuonDQMClient (const edm::ParameterSet &)
 ~TopHLTDiMuonDQMClient ()

Protected Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
void beginJob ()
void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
void beginRun (const edm::Run &, const edm::EventSetup &)
void endJob ()
void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
void endRun (const edm::Run &, const edm::EventSetup &)

Private Attributes

DQMStoredbe_
std::string monitorName_
MonitorElementMuonEfficiency_eta
MonitorElementMuonEfficiency_eta_sig
MonitorElementMuonEfficiency_eta_trig
MonitorElementMuonEfficiency_phi
MonitorElementMuonEfficiency_phi_sig
MonitorElementMuonEfficiency_phi_trig
MonitorElementMuonEfficiency_pT
MonitorElementMuonEfficiency_pT_LOGX
MonitorElementMuonEfficiency_pT_LOGX_sig
MonitorElementMuonEfficiency_pT_LOGX_trig
MonitorElementMuonEfficiency_pT_sig
MonitorElementMuonEfficiency_pT_trig
MonitorElementTriggerEfficiencies
MonitorElementTriggerEfficiencies_sig
MonitorElementTriggerEfficiencies_trig

Detailed Description

Definition at line 25 of file TopHLTDiMuonDQMClient.h.


Constructor & Destructor Documentation

TopHLTDiMuonDQMClient::TopHLTDiMuonDQMClient ( const edm::ParameterSet ps)

Definition at line 13 of file TopHLTDiMuonDQMClient.cc.

References edm::ParameterSet::getParameter().

                                                                        {

  monitorName_ = ps.getParameter<string>("monitorName");

}
TopHLTDiMuonDQMClient::~TopHLTDiMuonDQMClient ( )

Definition at line 20 of file TopHLTDiMuonDQMClient.cc.

                                              {

}

Member Function Documentation

void TopHLTDiMuonDQMClient::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [protected, virtual]

Implements edm::EDAnalyzer.

Definition at line 40 of file TopHLTDiMuonDQMClient.cc.

                                                                                        {

}
void TopHLTDiMuonDQMClient::beginJob ( void  ) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 25 of file TopHLTDiMuonDQMClient.cc.

                                     {

}
void TopHLTDiMuonDQMClient::beginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup context 
) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 35 of file TopHLTDiMuonDQMClient.cc.

                                                                                                                {

}
void TopHLTDiMuonDQMClient::beginRun ( const edm::Run r,
const edm::EventSetup context 
) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 30 of file TopHLTDiMuonDQMClient.cc.

                                                                                  {

}
void TopHLTDiMuonDQMClient::endJob ( void  ) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 102 of file TopHLTDiMuonDQMClient.cc.

                                   {

}
void TopHLTDiMuonDQMClient::endLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup context 
) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 45 of file TopHLTDiMuonDQMClient.cc.

                                                                                                              {

}
void TopHLTDiMuonDQMClient::endRun ( const edm::Run r,
const edm::EventSetup context 
) [protected, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 50 of file TopHLTDiMuonDQMClient.cc.

References dbe_, DQMStore::get(), MonitorElement::getTH1F(), and cmsCodeRules::cppFunctionSkipper::operator.

                                                                                {

  dbe_ = Service<DQMStore>().operator->();

  TriggerEfficiencies_sig  = dbe_->get(monitorName_+"TriggerEfficiencies_sig");
  TriggerEfficiencies_trig = dbe_->get(monitorName_+"TriggerEfficiencies_trig");
  TriggerEfficiencies      = dbe_->get(monitorName_+"TriggerEfficiencies");

  TriggerEfficiencies_sig->getTH1F()->Sumw2();
  TriggerEfficiencies_trig->getTH1F()->Sumw2();

  TriggerEfficiencies->getTH1F()->Divide(TriggerEfficiencies_sig->getTH1F(),TriggerEfficiencies_trig->getTH1F(),1.,1.,"B");

  MuonEfficiency_pT_sig  = dbe_->get(monitorName_+"MuonEfficiency_pT_sig");
  MuonEfficiency_pT_trig = dbe_->get(monitorName_+"MuonEfficiency_pT_trig");
  MuonEfficiency_pT      = dbe_->get(monitorName_+"MuonEfficiency_pT");

  MuonEfficiency_pT_sig->getTH1F()->Sumw2();
  MuonEfficiency_pT_trig->getTH1F()->Sumw2();

  MuonEfficiency_pT->getTH1F()->Divide(MuonEfficiency_pT_sig->getTH1F(),MuonEfficiency_pT_trig->getTH1F(),1.,1.,"B");

  MuonEfficiency_pT_LOGX_sig  = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX_sig");
  MuonEfficiency_pT_LOGX_trig = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX_trig");
  MuonEfficiency_pT_LOGX      = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX");

  MuonEfficiency_pT_LOGX_sig->getTH1F()->Sumw2();
  MuonEfficiency_pT_LOGX_trig->getTH1F()->Sumw2();

  MuonEfficiency_pT_LOGX->getTH1F()->Divide(MuonEfficiency_pT_LOGX_sig->getTH1F(),MuonEfficiency_pT_LOGX_trig->getTH1F(),1.,1.,"B");

  MuonEfficiency_eta_sig  = dbe_->get(monitorName_+"MuonEfficiency_eta_sig");
  MuonEfficiency_eta_trig = dbe_->get(monitorName_+"MuonEfficiency_eta_trig");
  MuonEfficiency_eta      = dbe_->get(monitorName_+"MuonEfficiency_eta");

  MuonEfficiency_eta_sig->getTH1F()->Sumw2();
  MuonEfficiency_eta_trig->getTH1F()->Sumw2();

  MuonEfficiency_eta->getTH1F()->Divide(MuonEfficiency_eta_sig->getTH1F(),MuonEfficiency_eta_trig->getTH1F(),1.,1.,"B");

  MuonEfficiency_phi_sig  = dbe_->get(monitorName_+"MuonEfficiency_phi_sig");
  MuonEfficiency_phi_trig = dbe_->get(monitorName_+"MuonEfficiency_phi_trig");
  MuonEfficiency_phi      = dbe_->get(monitorName_+"MuonEfficiency_phi");

  MuonEfficiency_phi_sig->getTH1F()->Sumw2();
  MuonEfficiency_phi_trig->getTH1F()->Sumw2();

  MuonEfficiency_phi->getTH1F()->Divide(MuonEfficiency_phi_sig->getTH1F(),MuonEfficiency_phi_trig->getTH1F(),1.,1.,"B");

}

Member Data Documentation

Definition at line 46 of file TopHLTDiMuonDQMClient.h.

std::string TopHLTDiMuonDQMClient::monitorName_ [private]

Definition at line 47 of file TopHLTDiMuonDQMClient.h.

Definition at line 61 of file TopHLTDiMuonDQMClient.h.

Definition at line 62 of file TopHLTDiMuonDQMClient.h.

Definition at line 63 of file TopHLTDiMuonDQMClient.h.

Definition at line 65 of file TopHLTDiMuonDQMClient.h.

Definition at line 66 of file TopHLTDiMuonDQMClient.h.

Definition at line 67 of file TopHLTDiMuonDQMClient.h.

Definition at line 53 of file TopHLTDiMuonDQMClient.h.

Definition at line 57 of file TopHLTDiMuonDQMClient.h.

Definition at line 58 of file TopHLTDiMuonDQMClient.h.

Definition at line 59 of file TopHLTDiMuonDQMClient.h.

Definition at line 54 of file TopHLTDiMuonDQMClient.h.

Definition at line 55 of file TopHLTDiMuonDQMClient.h.

Definition at line 49 of file TopHLTDiMuonDQMClient.h.

Definition at line 50 of file TopHLTDiMuonDQMClient.h.

Definition at line 51 of file TopHLTDiMuonDQMClient.h.