55 produces<CastorClusterCollection>();
74 using namespace TMath;
130 if (fabs(
p.eta()) > 5.2 && fabs(
p.eta()) < 6.6) {
135 double emEnergy = 0.;
136 double hadEnergy = 0.;
141 if (
p.pdgId() == 11 ||
p.pdgId() == 22) {
142 while (gaus_E < 0.) {
146 double sigma =
p.energy() * (
sqrt(
pow(0.044, 2) +
pow(0.513 /
sqrt(
p.energy()), 2)));
147 gaus_E =
r.Gaus(
p.energy(), sigma);
154 if (
p.pdgId() == 11) {
159 tmax = 1.0 * (
log(gaus_E / 0.0015) + cte);
162 double x = 0.5 * 19.38;
163 leakage = gaus_E - gaus_E * Gamma(
a,
x);
166 emEnergy = gaus_E - leakage;
186 while (gaus_E < 0.) {
190 double sigma =
p.energy() * (
sqrt(
pow(0.121, 2) +
pow(1.684 /
sqrt(
p.energy()), 2)));
191 gaus_E =
r.Gaus(
p.energy(), sigma);
349 double mu_noise = 0.053;
350 double sigma_noise = 0.027;
353 result =
r2.Gaus(mu_noise, sigma_noise);
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
void produce(edm::Event &, const edm::EventSetup &) override
const edm::EDGetTokenT< reco::GenParticleCollection > tokGenPart_
CastorFastClusterProducer(const edm::ParameterSet &)
~CastorFastClusterProducer() override
#define DEFINE_FWK_MODULE(type)
std::vector< reco::CastorCluster > CastorClusterCollection
static const double tmax[3]
Structure Point Contains parameters of Gaussian fits to DMRs.
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
ROOT::Math::RhoEtaPhiPoint ClusterPoint