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  * $Date: 2010/08/13 09:11:38 $
3  * $Revision: 1.1 $
4  * \author M. Marienfeld - DESY Hamburg
5  */
6 
8 
9 using namespace std;
10 using namespace edm;
11 
12 
14 
15  monitorName_ = ps.getParameter<string>("monitorName");
16 
17 }
18 
19 
21 
22 }
23 
24 
26 
27 }
28 
29 
31 
32 }
33 
34 
36 
37 }
38 
39 
41 
42 }
43 
44 
46 
47 }
48 
49 
51 
53 
54  TriggerEfficiencies_sig = dbe_->get(monitorName_+"TriggerEfficiencies_sig");
55  TriggerEfficiencies_trig = dbe_->get(monitorName_+"TriggerEfficiencies_trig");
56  TriggerEfficiencies = dbe_->get(monitorName_+"TriggerEfficiencies");
57 
58  TriggerEfficiencies_sig->getTH1F()->Sumw2();
59  TriggerEfficiencies_trig->getTH1F()->Sumw2();
60 
61  TriggerEfficiencies->getTH1F()->Divide(TriggerEfficiencies_sig->getTH1F(),TriggerEfficiencies_trig->getTH1F(),1.,1.,"B");
62 
63  MuonEfficiency_pT_sig = dbe_->get(monitorName_+"MuonEfficiency_pT_sig");
64  MuonEfficiency_pT_trig = dbe_->get(monitorName_+"MuonEfficiency_pT_trig");
65  MuonEfficiency_pT = dbe_->get(monitorName_+"MuonEfficiency_pT");
66 
67  MuonEfficiency_pT_sig->getTH1F()->Sumw2();
68  MuonEfficiency_pT_trig->getTH1F()->Sumw2();
69 
70  MuonEfficiency_pT->getTH1F()->Divide(MuonEfficiency_pT_sig->getTH1F(),MuonEfficiency_pT_trig->getTH1F(),1.,1.,"B");
71 
72  MuonEfficiency_pT_LOGX_sig = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX_sig");
73  MuonEfficiency_pT_LOGX_trig = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX_trig");
74  MuonEfficiency_pT_LOGX = dbe_->get(monitorName_+"MuonEfficiency_pT_LOGX");
75 
76  MuonEfficiency_pT_LOGX_sig->getTH1F()->Sumw2();
77  MuonEfficiency_pT_LOGX_trig->getTH1F()->Sumw2();
78 
79  MuonEfficiency_pT_LOGX->getTH1F()->Divide(MuonEfficiency_pT_LOGX_sig->getTH1F(),MuonEfficiency_pT_LOGX_trig->getTH1F(),1.,1.,"B");
80 
81  MuonEfficiency_eta_sig = dbe_->get(monitorName_+"MuonEfficiency_eta_sig");
82  MuonEfficiency_eta_trig = dbe_->get(monitorName_+"MuonEfficiency_eta_trig");
83  MuonEfficiency_eta = dbe_->get(monitorName_+"MuonEfficiency_eta");
84 
85  MuonEfficiency_eta_sig->getTH1F()->Sumw2();
86  MuonEfficiency_eta_trig->getTH1F()->Sumw2();
87 
88  MuonEfficiency_eta->getTH1F()->Divide(MuonEfficiency_eta_sig->getTH1F(),MuonEfficiency_eta_trig->getTH1F(),1.,1.,"B");
89 
90  MuonEfficiency_phi_sig = dbe_->get(monitorName_+"MuonEfficiency_phi_sig");
91  MuonEfficiency_phi_trig = dbe_->get(monitorName_+"MuonEfficiency_phi_trig");
92  MuonEfficiency_phi = dbe_->get(monitorName_+"MuonEfficiency_phi");
93 
94  MuonEfficiency_phi_sig->getTH1F()->Sumw2();
95  MuonEfficiency_phi_trig->getTH1F()->Sumw2();
96 
97  MuonEfficiency_phi->getTH1F()->Divide(MuonEfficiency_phi_sig->getTH1F(),MuonEfficiency_phi_trig->getTH1F(),1.,1.,"B");
98 
99 }
100 
101 
103 
104 }
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:1468
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:33
void beginRun(const edm::Run &, const edm::EventSetup &)