50 static constexpr
double partR2 = 0.3 * 0.3;
121 constexpr
auto size = 100;
125 -5.191, -4.889, -4.716, -4.538, -4.363, -4.191, -4.013, -3.839, -3.664, -3.489, -3.314, -3.139, -2.964, -2.853,
126 -2.65, -2.5, -2.322, -2.172, -2.043, -1.93, -1.83, -1.74, -1.653, -1.566, -1.479, -1.392, -1.305, -1.218,
127 -1.131, -1.044, -0.957, -0.879, -0.783, -0.696, -0.609, -0.522, -0.435, -0.348, -0.261, -0.174, -0.087, 0,
128 0.087, 0.174, 0.261, 0.348, 0.435, 0.522, 0.609, 0.696, 0.783, 0.879, 0.957, 1.044, 1.131, 1.218,
129 1.305, 1.392, 1.479, 1.566, 1.653, 1.74, 1.83, 1.93, 2.043, 2.172, 2.322, 2.5, 2.65, 2.853,
130 2.964, 3.139, 3.314, 3.489, 3.664, 3.839, 4.013, 4.191, 4.363, 4.538, 4.716, 4.889, 5.191};
149 strncpy(
histo,
"emean_vs_eta_EHF",
size);
151 strncpy(
histo,
"emean_vs_eta_EHFO",
size);
156 strncpy(
histo,
"Ratio_Esummed_ECAL_0",
size);
158 strncpy(
histo,
"Ratio_Esummed_HCAL_0",
size);
160 strncpy(
histo,
"Ratio_Esummed_HO_0",
size);
162 strncpy(
histo,
"Ratio_Esummed_ECAL_HCAL_0",
size);
164 strncpy(
histo,
"Ratio_Esummed_ECAL_HCAL_HO_0",
size);
167 strncpy(
histo,
"Ratio_Esummed_ECAL_1",
size);
169 strncpy(
histo,
"Ratio_Esummed_HCAL_1",
size);
171 strncpy(
histo,
"Ratio_Esummed_HO_1",
size);
173 strncpy(
histo,
"Ratio_Esummed_ECAL_HCAL_1",
size);
175 strncpy(
histo,
"Ratio_Esummed_ECAL_HCAL_HO_1",
size);
178 strncpy(
histo,
"Ratio_Esummed_ECAL_2",
size);
180 strncpy(
histo,
"Ratio_Esummed_HCAL_2",
size);
182 strncpy(
histo,
"Ratio_Esummed_HO_2",
size);
184 strncpy(
histo,
"Ratio_Esummed_ECAL_HCAL_2",
size);
186 strncpy(
histo,
"Ratio_Esummed_ECAL_HCAL_HO_2",
size);
189 strncpy(
histo,
"Ratio_Esummed_ECAL_3",
size);
191 strncpy(
histo,
"Ratio_Esummed_HCAL_3",
size);
193 strncpy(
histo,
"Ratio_Esummed_HO_3",
size);
195 strncpy(
histo,
"Ratio_Esummed_ECAL_HCAL_3",
size);
197 strncpy(
histo,
"Ratio_Esummed_ECAL_HCAL_HO_3",
size);
200 strncpy(
histo,
"Ratio_Esummed_ECAL_4",
size);
202 strncpy(
histo,
"Ratio_Esummed_HCAL_4",
size);
204 strncpy(
histo,
"Ratio_Esummed_HO_4",
size);
206 strncpy(
histo,
"Ratio_Esummed_ECAL_HCAL_4",
size);
208 strncpy(
histo,
"Ratio_Esummed_ECAL_HCAL_HO_4",
size);
211 strncpy(
histo,
"Ratio_Esummed_HF_5",
size);
213 strncpy(
histo,
"Ratio_Esummed_HF_6",
size);
223 double energy_MC = 0.;
227 if (not
hepMC.isValid()) {
233 double maxPt = -99999.;
235 for (
auto p = myGenEvent->particles_begin();
p != myGenEvent->particles_end(); ++
p) {
236 double phip = (*p)->momentum().phi();
237 double etap = (*p)->momentum().eta();
238 double pt = (*p)->momentum().perp();
239 double energy = (*p)->momentum().e();
263 const double Econe =
sumEnergy(pfClusterECAL, eta_MC, phi_MC);
264 const double Hcone =
sumEnergy(pfClusterHCAL, eta_MC, phi_MC);
265 const double HOcone =
sumEnergy(pfClusterHO, eta_MC, phi_MC);
266 const double HFcone =
sumEnergy(pfClusterHF, eta_MC, phi_MC);
268 if (energy_MC > 0.) {
322 for (
auto pf = pfClusters->begin();
pf != pfClusters->end(); ++
pf) {