78 string inputdir =
"Muons_miniAOD/TriggerMatchMonitor/EfficiencyInput";
79 string numpath_eta_path1 = inputdir +
"/passHLT" +
triggerhistName1_ +
"_eta_Tight";
80 string denpath_eta_path1 = inputdir +
"/totalHLT" +
triggerhistName1_ +
"_eta_Tight";
82 string numpath_pt_path1 = inputdir +
"/passHLT" +
triggerhistName1_ +
"_pt_Tight";
83 string denpath_pt_path1 = inputdir +
"/totalHLT" +
triggerhistName1_ +
"_pt_Tight";
85 string numpath_phi_path1 = inputdir +
"/passHLT" +
triggerhistName1_ +
"_phi_Tight";
86 string denpath_phi_path1 = inputdir +
"/totalHLT" +
triggerhistName1_ +
"_phi_Tight";
88 string numpath_eta_path2 = inputdir +
"/passHLT" +
triggerhistName2_ +
"_eta_Tight";
89 string denpath_eta_path2 = inputdir +
"/totalHLT" +
triggerhistName2_ +
"_eta_Tight";
91 string numpath_pt_path2 = inputdir +
"/passHLT" +
triggerhistName2_ +
"_pt_Tight";
92 string denpath_pt_path2 = inputdir +
"/totalHLT" +
triggerhistName2_ +
"_pt_Tight";
94 string numpath_phi_path2 = inputdir +
"/passHLT" +
triggerhistName2_ +
"_phi_Tight";
95 string denpath_phi_path2 = inputdir +
"/totalHLT" +
triggerhistName2_ +
"_phi_Tight";
115 if (Numerator_eta_path1 && Denominator_eta_path1) {
116 TH1F *h_numerator_eta_path1 = Numerator_eta_path1->
getTH1F();
117 TH1F *h_denominator_eta_path1 = Denominator_eta_path1->
getTH1F();
120 if (h_eff_eta_path1->GetSumw2N() == 0)
121 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)
131 h_eff_pt_path1->Sumw2();
132 h_eff_pt_path1->Divide(h_numerator_pt_path1, h_denominator_pt_path1, 1., 1.,
"B");
135 if (Numerator_phi_path1 && Denominator_phi_path1) {
136 TH1F *h_numerator_phi_path1 = Numerator_phi_path1->
getTH1F();
137 TH1F *h_denominator_phi_path1 = Denominator_phi_path1->
getTH1F();
140 if (h_eff_phi_path1->GetSumw2N() == 0)
141 h_eff_phi_path1->Sumw2();
142 h_eff_phi_path1->Divide(h_numerator_phi_path1, h_denominator_phi_path1, 1., 1.,
"B");
146 if (Numerator_eta_path2 && Denominator_eta_path2) {
147 TH1F *h_numerator_eta_path2 = Numerator_eta_path2->
getTH1F();
148 TH1F *h_denominator_eta_path2 = Denominator_eta_path2->
getTH1F();
151 if (h_eff_eta_path2->GetSumw2N() == 0)
152 h_eff_eta_path2->Sumw2();
153 h_eff_eta_path2->Divide(h_numerator_eta_path2, h_denominator_eta_path2, 1., 1.,
"B");
156 if (Numerator_pt_path2 && Denominator_pt_path2) {
157 TH1F *h_numerator_pt_path2 = Numerator_pt_path2->
getTH1F();
158 TH1F *h_denominator_pt_path2 = Denominator_pt_path2->
getTH1F();
161 if (h_eff_pt_path2->GetSumw2N() == 0)
162 h_eff_pt_path2->Sumw2();
163 h_eff_pt_path2->Divide(h_numerator_pt_path2, h_denominator_pt_path2, 1., 1.,
"B");
166 if (Numerator_phi_path2 && Denominator_phi_path2) {
167 TH1F *h_numerator_phi_path2 = Numerator_phi_path2->
getTH1F();
168 TH1F *h_denominator_phi_path2 = Denominator_phi_path2->
getTH1F();
171 if (h_eff_phi_path2->GetSumw2N() == 0)
172 h_eff_phi_path2->Sumw2();
173 h_eff_phi_path2->Divide(h_numerator_phi_path2, h_denominator_phi_path2, 1., 1.,
"B");