Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 17 of file CastorFastClusterProducer.h.
Implements edm::EDProducer.
Definition at line 80 of file CastorFastClusterProducer.cc.
References a, reco::Candidate::energy(), reco::Candidate::eta(), Gamma, genParticleCandidates2GenParticles_cfi::genParticles, edm::Event::getByLabel(), i, funct::log(), L1TEmulatorMonitor_cff::p, reco::Candidate::pdgId(), reco::Candidate::phi(), funct::pow(), edm::RefVector< C, T, F >::push_back(), edm::Event::put(), csvReporter::r, dt_offlineAnalysis_common_cff::reco, ExpressReco_HICollisions_FallBack::sigma, mathSSE::sqrt(), cond::rpcobtemp::temp, tmax, and ExpressReco_HICollisions_FallBack::x.
Referenced by python.JSONExport.JsonExport::export(), and python.HTMLExport.HTMLExport::export().
85 using namespace TMath;
142 if ( fabs(p.
eta()) > 5.2 && fabs(p.
eta()) < 6.6) {
148 double emEnergy = 0.;
149 double hadEnergy = 0.;
156 while ( gaus_E < 0.) {
168 if ( p.
pdgId() == 11) { cte = -0.5; }
else { cte = 0.5; }
169 tmax = 1.0*(
log(gaus_E/0.0015)+cte);
172 double x = 0.5*19.38;
173 leakage = gaus_E - gaus_E*
Gamma(a,x);
176 emEnergy = gaus_E - leakage;
190 while (gaus_E < 0.) {
345 iEvent.
put(CastorClusters);
virtual double energy() const =0
energy
std::vector< CastorCluster > CastorClusterCollection
collection of CastorCluster objects
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual int pdgId() const =0
PDG identifier.
static const double tmax[3]
Log< T >::type log(const T &t)
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
ROOT::Math::RhoEtaPhiPoint ClusterPoint
Power< A, B >::type pow(const A &a, const B &b)
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity