Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #include "DQMOffline/Trigger/interface/TopHLTDiMuonDQMClient.h"
00008
00009 using namespace std;
00010 using namespace edm;
00011
00012
00013 TopHLTDiMuonDQMClient::TopHLTDiMuonDQMClient( const edm::ParameterSet& ps ) {
00014
00015 monitorName_ = ps.getParameter<string>("monitorName");
00016
00017 }
00018
00019
00020 TopHLTDiMuonDQMClient::~TopHLTDiMuonDQMClient() {
00021
00022 }
00023
00024
00025 void TopHLTDiMuonDQMClient::beginJob() {
00026
00027 }
00028
00029
00030 void TopHLTDiMuonDQMClient::beginRun(const edm::Run& r, const edm::EventSetup& context) {
00031
00032 }
00033
00034
00035 void TopHLTDiMuonDQMClient::beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) {
00036
00037 }
00038
00039
00040 void TopHLTDiMuonDQMClient::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup ) {
00041
00042 }
00043
00044
00045 void TopHLTDiMuonDQMClient::endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context) {
00046
00047 }
00048
00049
00050 void TopHLTDiMuonDQMClient::endRun(const edm::Run& r, const edm::EventSetup& context) {
00051
00052 dbe_ = Service<DQMStore>().operator->();
00053
00054 TriggerEfficiencies_sig = dbe_->get(monitorName_+"TriggerEfficiencies_sig");
00055 TriggerEfficiencies_trig = dbe_->get(monitorName_+"TriggerEfficiencies_trig");
00056 TriggerEfficiencies = dbe_->get(monitorName_+"TriggerEfficiencies");
00057
00058 TriggerEfficiencies_sig->getTH1F()->Sumw2();
00059 TriggerEfficiencies_trig->getTH1F()->Sumw2();
00060
00061 TriggerEfficiencies->getTH1F()->Divide(TriggerEfficiencies_sig->getTH1F(),TriggerEfficiencies_trig->getTH1F(),1.,1.,"B");
00062
00063 MuonEfficiency_pT_sig = dbe_->get(monitorName_+"MuonEfficiency_pT_sig");
00064 MuonEfficiency_pT_trig = dbe_->get(monitorName_+"MuonEfficiency_pT_trig");
00065 MuonEfficiency_pT = dbe_->get(monitorName_+"MuonEfficiency_pT");
00066
00067 MuonEfficiency_pT_sig->getTH1F()->Sumw2();
00068 MuonEfficiency_pT_trig->getTH1F()->Sumw2();
00069
00070 MuonEfficiency_pT->getTH1F()->Divide(MuonEfficiency_pT_sig->getTH1F(),MuonEfficiency_pT_trig->getTH1F(),1.,1.,"B");
00071
00072 MuonEfficiency_pT_LOGX_sig = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX_sig");
00073 MuonEfficiency_pT_LOGX_trig = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX_trig");
00074 MuonEfficiency_pT_LOGX = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX");
00075
00076 MuonEfficiency_pT_LOGX_sig->getTH1F()->Sumw2();
00077 MuonEfficiency_pT_LOGX_trig->getTH1F()->Sumw2();
00078
00079 MuonEfficiency_pT_LOGX->getTH1F()->Divide(MuonEfficiency_pT_LOGX_sig->getTH1F(),MuonEfficiency_pT_LOGX_trig->getTH1F(),1.,1.,"B");
00080
00081 MuonEfficiency_eta_sig = dbe_->get(monitorName_+"MuonEfficiency_eta_sig");
00082 MuonEfficiency_eta_trig = dbe_->get(monitorName_+"MuonEfficiency_eta_trig");
00083 MuonEfficiency_eta = dbe_->get(monitorName_+"MuonEfficiency_eta");
00084
00085 MuonEfficiency_eta_sig->getTH1F()->Sumw2();
00086 MuonEfficiency_eta_trig->getTH1F()->Sumw2();
00087
00088 MuonEfficiency_eta->getTH1F()->Divide(MuonEfficiency_eta_sig->getTH1F(),MuonEfficiency_eta_trig->getTH1F(),1.,1.,"B");
00089
00090 MuonEfficiency_phi_sig = dbe_->get(monitorName_+"MuonEfficiency_phi_sig");
00091 MuonEfficiency_phi_trig = dbe_->get(monitorName_+"MuonEfficiency_phi_trig");
00092 MuonEfficiency_phi = dbe_->get(monitorName_+"MuonEfficiency_phi");
00093
00094 MuonEfficiency_phi_sig->getTH1F()->Sumw2();
00095 MuonEfficiency_phi_trig->getTH1F()->Sumw2();
00096
00097 MuonEfficiency_phi->getTH1F()->Divide(MuonEfficiency_phi_sig->getTH1F(),MuonEfficiency_phi_trig->getTH1F(),1.,1.,"B");
00098
00099 }
00100
00101
00102 void TopHLTDiMuonDQMClient::endJob() {
00103
00104 }