CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TopHLTDiMuonDQMClient.cc
Go to the documentation of this file.
1 /*
2  * \author M. Marienfeld - DESY Hamburg
3  */
4 
6 
7 using namespace std;
8 using namespace edm;
9 
10 
12 
13  monitorName_ = ps.getParameter<string>("monitorName");
14 
15 }
16 
17 
19 
20 }
21 
22 
24 
25 }
26 
27 
29 
30 }
31 
32 
34 
35 }
36 
37 
39 
40 }
41 
42 
44 
45 }
46 
47 
49 
51 
52  TriggerEfficiencies_sig = dbe_->get(monitorName_+"TriggerEfficiencies_sig");
53  TriggerEfficiencies_trig = dbe_->get(monitorName_+"TriggerEfficiencies_trig");
54  TriggerEfficiencies = dbe_->get(monitorName_+"TriggerEfficiencies");
55 
56  TriggerEfficiencies_sig->getTH1F()->Sumw2();
57  TriggerEfficiencies_trig->getTH1F()->Sumw2();
58 
59  TriggerEfficiencies->getTH1F()->Divide(TriggerEfficiencies_sig->getTH1F(),TriggerEfficiencies_trig->getTH1F(),1.,1.,"B");
60 
61  MuonEfficiency_pT_sig = dbe_->get(monitorName_+"MuonEfficiency_pT_sig");
62  MuonEfficiency_pT_trig = dbe_->get(monitorName_+"MuonEfficiency_pT_trig");
63  MuonEfficiency_pT = dbe_->get(monitorName_+"MuonEfficiency_pT");
64 
65  MuonEfficiency_pT_sig->getTH1F()->Sumw2();
66  MuonEfficiency_pT_trig->getTH1F()->Sumw2();
67 
68  MuonEfficiency_pT->getTH1F()->Divide(MuonEfficiency_pT_sig->getTH1F(),MuonEfficiency_pT_trig->getTH1F(),1.,1.,"B");
69 
70  MuonEfficiency_pT_LOGX_sig = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX_sig");
71  MuonEfficiency_pT_LOGX_trig = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX_trig");
72  MuonEfficiency_pT_LOGX = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX");
73 
74  MuonEfficiency_pT_LOGX_sig->getTH1F()->Sumw2();
75  MuonEfficiency_pT_LOGX_trig->getTH1F()->Sumw2();
76 
77  MuonEfficiency_pT_LOGX->getTH1F()->Divide(MuonEfficiency_pT_LOGX_sig->getTH1F(),MuonEfficiency_pT_LOGX_trig->getTH1F(),1.,1.,"B");
78 
79  MuonEfficiency_eta_sig = dbe_->get(monitorName_+"MuonEfficiency_eta_sig");
80  MuonEfficiency_eta_trig = dbe_->get(monitorName_+"MuonEfficiency_eta_trig");
81  MuonEfficiency_eta = dbe_->get(monitorName_+"MuonEfficiency_eta");
82 
83  MuonEfficiency_eta_sig->getTH1F()->Sumw2();
84  MuonEfficiency_eta_trig->getTH1F()->Sumw2();
85 
86  MuonEfficiency_eta->getTH1F()->Divide(MuonEfficiency_eta_sig->getTH1F(),MuonEfficiency_eta_trig->getTH1F(),1.,1.,"B");
87 
88  MuonEfficiency_phi_sig = dbe_->get(monitorName_+"MuonEfficiency_phi_sig");
89  MuonEfficiency_phi_trig = dbe_->get(monitorName_+"MuonEfficiency_phi_trig");
90  MuonEfficiency_phi = dbe_->get(monitorName_+"MuonEfficiency_phi");
91 
92  MuonEfficiency_phi_sig->getTH1F()->Sumw2();
93  MuonEfficiency_phi_trig->getTH1F()->Sumw2();
94 
95  MuonEfficiency_phi->getTH1F()->Divide(MuonEfficiency_phi_sig->getTH1F(),MuonEfficiency_phi_trig->getTH1F(),1.,1.,"B");
96 
97 }
98 
99 
101 
102 }
T getParameter(std::string const &) const
int iEvent
Definition: GenABIO.cc:243
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
TopHLTDiMuonDQMClient(const edm::ParameterSet &)
void endRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1623
DQMStore * dbe_
TH1F * getTH1F(void) const
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
void analyze(const edm::Event &, const edm::EventSetup &)
Definition: Run.h:41
void beginRun(const edm::Run &, const edm::EventSetup &)