#include <SuperClusterToCandidate.h>
Public Types | |
typedef reco::RecoEcalCandidate | Candidate |
typedef reco::SuperClusterCollection | Components |
typedef reco::SuperCluster | value_type |
Public Member Functions | |
void | convert (reco::SuperClusterRef scRef, reco::RecoEcalCandidate &c) const |
SuperClusterToCandidate (const edm::ParameterSet &cfg) |
Definition at line 11 of file SuperClusterToCandidate.h.
Definition at line 14 of file SuperClusterToCandidate.h.
Definition at line 13 of file SuperClusterToCandidate.h.
Definition at line 12 of file SuperClusterToCandidate.h.
converter::SuperClusterToCandidate::SuperClusterToCandidate | ( | const edm::ParameterSet & | cfg | ) | [inline] |
Definition at line 15 of file SuperClusterToCandidate.h.
: MassiveCandidateConverter(cfg) { }
void converter::SuperClusterToCandidate::convert | ( | reco::SuperClusterRef | scRef, |
reco::RecoEcalCandidate & | c | ||
) | const [inline] |
Definition at line 18 of file SuperClusterToCandidate.h.
References reco::CaloCluster::energy(), converter::MassiveCandidateConverter::massSqr_, L1TEmulatorMonitor_cff::p, converter::MassiveCandidateConverter::particle_, PdtEntry::pdgId(), reco::CaloCluster::position(), reco::LeafCandidate::setCharge(), reco::LeafCandidate::setP4(), reco::LeafCandidate::setPdgId(), reco::RecoEcalCandidate::setSuperCluster(), reco::LeafCandidate::setVertex(), mathSSE::sqrt(), matplotRender::t, csvLumiCalc::unit, and v.
{ const reco::SuperCluster & sc = * scRef; math::XYZPoint v(0, 0, 0); // this should be taken from something else... math::XYZVector p = sc.energy() * (sc.position() - v).unit(); double t = sqrt(massSqr_ + p.mag2()); c.setCharge(0); c.setVertex(v); c.setP4(reco::Candidate::LorentzVector(p.x(), p.y(), p.z(), t)); c.setSuperCluster(scRef); c.setPdgId(particle_.pdgId()); }