Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 19 of file CastorFastClusterProducer.h.
Definition at line 81 of file CastorFastClusterProducer.cc.
References a, reco::Candidate::energy(), reco::Candidate::eta(), Gamma, GenHFHadronMatcher_cfi::genParticles, edm::Event::getByLabel(), mps_fire::i, cmsBatch::log, eostools::move(), AlCaHLTBitMon_ParallelJobs::p, reco::Candidate::pdgId(), reco::Candidate::phi(), funct::pow(), hiDetachedQuadStep_cff::pt1, hiDetachedQuadStep_cff::pt2, edm::RefVector< C, T, F >::push_back(), edm::Event::put(), alignCSCRings::r, mathSSE::sqrt(), groupFilesInBlocks::temp, tmax, and x.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
86 using namespace TMath;
95 iEvent.
getByLabel(
"genParticles", genParticles);
139 for (
size_t i = 0;
i < genParticles->size(); ++
i) {
143 if ( fabs(p.
eta()) > 5.2 && fabs(p.
eta()) < 6.6) {
149 double emEnergy = 0.;
150 double hadEnergy = 0.;
157 while ( gaus_E < 0.) {
162 gaus_E =
r.Gaus(p.
energy(),sigma);
169 if ( p.
pdgId() == 11) { cte = -0.5; }
else { cte = 0.5; }
170 tmax = 1.0*(
log(gaus_E/0.0015)+cte);
173 double x = 0.5*19.38;
174 leakage = gaus_E - gaus_E*
Gamma(a,x);
177 emEnergy = gaus_E - leakage;
191 while (gaus_E < 0.) {
196 gaus_E =
r.Gaus(p.
energy(),sigma);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< CastorCluster > CastorClusterCollection
collection of CastorCluster objects
virtual double energy() const =0
energy
virtual int pdgId() const =0
PDG identifier.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static const double tmax[3]
virtual double eta() const =0
momentum pseudorapidity
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
ROOT::Math::RhoEtaPhiPoint ClusterPoint
virtual double phi() const =0
momentum azimuthal angle
Power< A, B >::type pow(const A &a, const B &b)