15 m_sType(std::move(sType)),
16 m_pt_slices {
"0",
"25",
"55",
"100"},
17 m_etaBins {-3., -2.5, -2.4, -1.918, -1.623, -1.348, -1.2329, -1.1479, -1.05, -0.908, -0.791,
18 -0.652, -0.476, -0.324, -0.132, 0, 0.132, 0.324, 0.476, 0.652, 0.791, 0.908,
19 1.05, 1.1479, 1.2329, 1.348, 1.623, 1.918, 2.4, 2.5, 3.}
21 Res_pT = Book1D(
"Res" + m_sType +
"_pT",
"Res" + m_sType +
"_pT;(1/pT-1/RECOpT)/(1/RECOpT);Entries", 200, -0.25, 0.25);
22 Res_eta = Book1D(
"Res" + m_sType +
"_eta",
"Res" + m_sType +
"_eta;eta-RECOeta;Entries", 200, -0.02, 0.02);
23 Res_phi = Book1D(
"Res" + m_sType +
"_phi",
"Res" + m_sType +
"_phi;phi-RECOphi;Entries", 200, -0.005, 0.005);
25 Res_pT_vs_pT = Book2D(
"Res" + m_sType +
"_pT_vs_pT",
"Res" + m_sType +
"_pT vs pT;pT [GeV];(1/pT-1/RECOpT)/(1/RECOpT)", 150, 0.,
26 150., 100, -0.25, 0.25);
28 Book2D(
"Res" + m_sType +
"_eta_vs_pT",
"Res" + m_sType +
"_eta vs pT;pT [GeV];eta-RECOeta", 150, 0., 150., 200, -0.02, 0.02);
30 Book2D(
"Res" + m_sType +
"_phi_vs_pT",
"Res" + m_sType +
"_phi vs pT;pT [GeV];phi-RECOphi", 150, 0., 150., 200, -0.005, 0.005);
31 Res_pT_vs_eta.clear();
32 Res_pT_vs_phi.clear();
33 Res_phi_vs_phi.clear();
34 Res_eta_vs_eta.clear();
36 for (
unsigned int i = 0;
i < m_pt_slices.size() - 1;
i++) {
37 Res_pT_vs_eta.push_back(Book2D(
"Res" + m_sType +
"_pT_vs_eta_from" + m_pt_slices[
i] +
"_to" + m_pt_slices[
i + 1] +
"GeV",
38 "Res" + m_sType +
"_pT vs eta from " + m_pt_slices[
i] +
" GeV to " + m_pt_slices[
i + 1] +
39 " GeV; eta;(1/pT-1/RECOpT)/(1/RECOpT)",
40 m_etaBins.size() - 1, &m_etaBins[0], 100, -0.25, 0.25));
41 Res_pT_vs_phi.push_back(Book2D(
"Res" + m_sType +
"_pT_vs_phi_from" + m_pt_slices[
i] +
"_to" + m_pt_slices[
i + 1] +
"GeV",
42 "Res" + m_sType +
"_pT vs phi from " + m_pt_slices[
i] +
" GeV to " + m_pt_slices[
i + 1] +
43 " GeV;phi;(1/pT-1/RECOpT)/(1/RECOpT)",
45 Res_phi_vs_phi.push_back(Book2D(
"Res" + m_sType +
"_phi_vs_phi_from" + m_pt_slices[
i] +
"_to" + m_pt_slices[
i + 1] +
"GeV",
46 "Res" + m_sType +
"_phi vs phi from " + m_pt_slices[
i] +
" GeV to " + m_pt_slices[
i + 1] +
47 " GeV;phi;(1/pT-1/RECOpT)/(1/RECOpT)",
49 Res_eta_vs_eta.push_back(
50 Book2D(
"Res" + m_sType +
"_eta_vs_eta_from" + m_pt_slices[
i] +
"_to" + m_pt_slices[
i + 1] +
"GeV",
51 "Res" + m_sType +
"_eta vs eta from " + m_pt_slices[
i] +
" GeV to " + m_pt_slices[
i + 1] +
" GeV;eta;eta-RECOeta",
52 m_etaBins.size() - 1, &m_etaBins[0], 100, -0.25, 0.25));
58 float pt = 0.001 * Recomu.
pt();
62 float respt = (1. / Trigmu.
pt() - 1. / Recomu.
pt()) / (1. / Recomu.
pt());
65 const float d_eta = Trigmu.
eta() -
eta;
77 if (
pt >= pt_min &&
pt < pt_max) {
87 float pt = 0.001 * Recomu.
pt();
91 if (L2SAmu.
pt() > 0.) respt = (1. / (1000. * L2SAmu.
pt()) - 1. / Recomu.
pt()) / (1. / Recomu.
pt());
92 if (L2SAmu.
pt() < 0.) respt = (1. / (-1000. * L2SAmu.
pt()) - 1. / Recomu.
pt()) / (1. / Recomu.
pt());
94 const float d_eta = L2SAmu.
eta() -
eta;
107 if (
pt >= pt_min &&
pt < pt_max) {
117 float pt = 0.001 * Recomu.
pt();
120 float respt = (1. / (L2CBmu.
pt()) - 1. / Recomu.
pt()) / (1. / Recomu.
pt());
124 const float d_eta = L2CBmu.
eta() -
eta;
136 if (
pt >= pt_min &&
pt < pt_max) {