79 string inputdir =
"Muons_miniAOD/TriggerMatchMonitor/EfficiencyInput";
81 string denpath_eta_path1 = inputdir+
"/totalHLT"+triggerhistName1_+
"_eta_Tight";
83 string numpath_pt_path1 = inputdir+
"/passHLT"+triggerhistName1_+
"_pt_Tight";
84 string denpath_pt_path1 = inputdir+
"/totalHLT"+triggerhistName1_+
"_pt_Tight";
86 string numpath_phi_path1 = inputdir+
"/passHLT"+triggerhistName1_+
"_phi_Tight";
87 string denpath_phi_path1 = inputdir+
"/totalHLT"+triggerhistName1_+
"_phi_Tight";
90 string denpath_eta_path2 = inputdir+
"/totalHLT"+triggerhistName2_+
"_eta_Tight";
92 string numpath_pt_path2 = inputdir+
"/passHLT"+triggerhistName2_+
"_pt_Tight";
93 string denpath_pt_path2 = inputdir+
"/totalHLT"+triggerhistName2_+
"_pt_Tight";
95 string numpath_phi_path2 = inputdir+
"/passHLT"+triggerhistName2_+
"_phi_Tight";
96 string denpath_phi_path2 = inputdir+
"/totalHLT"+triggerhistName2_+
"_phi_Tight";
116 if (Numerator_eta_path1 && Denominator_eta_path1){
117 TH1F *h_numerator_eta_path1 = Numerator_eta_path1->
getTH1F();
118 TH1F *h_denominator_eta_path1 = Denominator_eta_path1->
getTH1F();
121 if (h_eff_eta_path1->GetSumw2N() == 0) h_eff_eta_path1->Sumw2();
122 h_eff_eta_path1->Divide(h_numerator_eta_path1, h_denominator_eta_path1, 1., 1.,
"B");
125 if (Numerator_pt_path1 && Denominator_pt_path1){
126 TH1F *h_numerator_pt_path1 = Numerator_pt_path1->
getTH1F();
127 TH1F *h_denominator_pt_path1 = Denominator_pt_path1->
getTH1F();
130 if (h_eff_pt_path1->GetSumw2N() == 0) h_eff_pt_path1->Sumw2();
131 h_eff_pt_path1->Divide(h_numerator_pt_path1, h_denominator_pt_path1, 1., 1.,
"B");
134 if (Numerator_phi_path1 && Denominator_phi_path1){
135 TH1F *h_numerator_phi_path1 = Numerator_phi_path1->
getTH1F();
136 TH1F *h_denominator_phi_path1 = Denominator_phi_path1->
getTH1F();
139 if (h_eff_phi_path1->GetSumw2N() == 0) h_eff_phi_path1->Sumw2();
140 h_eff_phi_path1->Divide(h_numerator_phi_path1, h_denominator_phi_path1, 1., 1.,
"B");
144 if (Numerator_eta_path2 && Denominator_eta_path2){
145 TH1F *h_numerator_eta_path2 = Numerator_eta_path2->
getTH1F();
146 TH1F *h_denominator_eta_path2 = Denominator_eta_path2->
getTH1F();
149 if (h_eff_eta_path2->GetSumw2N() == 0) h_eff_eta_path2->Sumw2();
150 h_eff_eta_path2->Divide(h_numerator_eta_path2, h_denominator_eta_path2, 1., 1.,
"B");
153 if (Numerator_pt_path2 && Denominator_pt_path2){
154 TH1F *h_numerator_pt_path2 = Numerator_pt_path2->
getTH1F();
155 TH1F *h_denominator_pt_path2 = Denominator_pt_path2->
getTH1F();
158 if (h_eff_pt_path2->GetSumw2N() == 0) h_eff_pt_path2->Sumw2();
159 h_eff_pt_path2->Divide(h_numerator_pt_path2, h_denominator_pt_path2, 1., 1.,
"B");
162 if (Numerator_phi_path2 && Denominator_phi_path2){
163 TH1F *h_numerator_phi_path2 = Numerator_phi_path2->
getTH1F();
164 TH1F *h_denominator_phi_path2 = Denominator_phi_path2->
getTH1F();
167 if (h_eff_phi_path2->GetSumw2N() == 0) h_eff_phi_path2->Sumw2();
168 h_eff_phi_path2->Divide(h_numerator_phi_path2, h_denominator_phi_path2, 1., 1.,
"B");
std::string triggerhistName2_
MonitorElement * h_eff_Path2_eta_tight
void setCurrentFolder(std::string const &fullpath)
MonitorElement * book1D(Args &&...args)
MonitorElement * get(std::string const &path)
MonitorElement * h_eff_Path2_pt_tight
std::string triggerhistName1_
MonitorElement * h_eff_Path1_eta_tight
MonitorElement * h_eff_Path1_pt_tight
MonitorElement * h_eff_Path2_phi_tight
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * h_eff_Path1_phi_tight