56 produces<CastorClusterCollection>();
75 using namespace TMath;
132 if (fabs(
p.eta()) > 5.2 && fabs(
p.eta()) < 6.6) {
137 double emEnergy = 0.;
138 double hadEnergy = 0.;
143 if (
p.pdgId() == 11 ||
p.pdgId() == 22) {
144 while (gaus_E < 0.) {
148 double sigma =
p.energy() * (
sqrt(
pow(0.044, 2) +
pow(0.513 /
sqrt(
p.energy()), 2)));
149 gaus_E =
r.Gaus(
p.energy(), sigma);
156 if (
p.pdgId() == 11) {
161 tmax = 1.0 * (
log(gaus_E / 0.0015) + cte);
164 double x = 0.5 * 19.38;
165 leakage = gaus_E - gaus_E * Gamma(
a,
x);
168 emEnergy = gaus_E - leakage;
188 while (gaus_E < 0.) {
192 double sigma =
p.energy() * (
sqrt(
pow(0.121, 2) +
pow(1.684 /
sqrt(
p.energy()), 2)));
193 gaus_E =
r.Gaus(
p.energy(), sigma);
351 double mu_noise = 0.053;
352 double sigma_noise = 0.027;
355 result =
r2.Gaus(mu_noise, sigma_noise);