1 #ifndef __AnalysisDataFormats_PackedGenParticle_h__
2 #define __AnalysisDataFormats_PackedGenParticle_h__
34 :
p4_(0,0,0,0),
p4c_(0,0,0,0),
vertex_(0,0,0),
pdgId_(0),
charge_(0),
unpacked_(
false) { }
36 :
p4_(c.
pt(), c.
eta(), c.
phi(), c.
mass()),
p4c_(
p4_),
vertex_(0,0,0),
pdgId_(c.
pdgId()),
charge_(c.
charge()),
mother_(c.motherRef(0)),
unpacked_(
true) {
pack(); }
38 :
p4_(c.
pt(), c.
eta(), c.
phi(), c.
mass()),
p4c_(
p4_),
vertex_(0,0,0),
pdgId_(c.
pdgId()),
charge_(c.
charge()),
mother_(mother),
unpacked_(
true) {
pack(); }
169 virtual float dxy(
const Point &
p)
const ;
171 virtual float dz(
const Point &
p)
const ;
232 template<
typename Ref>
282 virtual bool isMuon()
const;
289 virtual bool isJet()
const;
293 void pack(
bool unpackAfterwards=
true) ;
313 template<
typename,
typename,
typename>
friend struct component;
314 friend class ::OverlapChecker;
virtual PackedGenParticle * clone() const
returns a clone of the Candidate object
virtual double vx() const
x coordinate of vertex position
reco::candidate::iterator_imp_specific< daughters > iterator_imp_specific
virtual void setStatus(int status)
set status word
virtual double pz() const
z coordinate of momentum vector
Point vertex_
vertex position
virtual Vector boostToCM() const
edm::Ref< Container > Ref
edm::Ref< pat::PackedGenParticleCollection > PackedGenParticleRef
virtual void fillVertexCovariance(CovarianceMatrix &v) const
fill SMatrix
static const unsigned int longLivedTag
long lived flag
CovarianceMatrix vertexCovariance() const
return SMatrix
virtual size_t numberOfMothers() const
number of mothers
math::XYZVector Vector
point in the space
friend class ShallowCloneCandidate
virtual void setVertex(const Point &vertex)
set vertex
virtual double et() const
transverse energy
candidate::const_iterator const_iterator
virtual double vertexNdof() const
virtual int threeCharge() const
electric charge
int pdgId_
PDG identifier.
virtual void setP4(const PolarLorentzVector &p4)
set 4-momentum
virtual void setP4(const LorentzVector &p4)
set 4-momentum
virtual double vy() const
y coordinate of vertex position
virtual int status() const
status word
virtual bool isTrackerMuon() const
virtual reco::CandidatePtr sourceCandidatePtr(size_type i) const
virtual bool isJet() const
virtual ~PackedGenParticle()
destructor
virtual const reco::Candidate * daughter(size_type) const
return daughter at a given position (throws an exception)
friend class ShallowClonePtrCandidate
virtual double mtSqr() const
transverse mass squared
virtual size_t numberOfSourceCandidatePtrs() const
PackedGenParticle()
default constructor
virtual bool isElectron() const
get a component
virtual double theta() const
momentum polar angle
virtual bool isPhoton() const
PolarLorentzVector p4_
the four vector
void pack(bool unpackAfterwards=true)
virtual Vector momentum() const
spatial momentum vector
math::XYZPoint Point
point in the space
virtual double vertexNormalizedChi2() const
chi-squared divided by n.d.o.f.
virtual double p() const
magnitude of momentum vector
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
virtual void setLongLived()
set long lived flag
PackedGenParticle(const reco::GenParticle &c)
virtual void setThreeCharge(int threecharge)
set electric charge
virtual void setPz(double pz)
reco::GenParticleRef mother_
Ref to first mother.
virtual void setMassConstraint()
set mass constraint flag
virtual bool isMuon() const
virtual const Point & vertex() const
vertex position
virtual bool longLived() const
is long lived?
math::XYZVector Vector
point in the space
virtual const reco::CandidateBaseRef & masterClone() const
virtual double vertexChi2() const
chi-squares
virtual float mass() const
mass
virtual size_t numberOfDaughters() const
number of daughters
virtual const LorentzVector & p4() const
four-momentum Lorentz vecto r
virtual bool isStandAloneMuon() const
virtual const reco::CandidatePtr & masterClonePtr() const
virtual const_iterator end() const
last daughter const_iterator
virtual float massSqr() const
mass squared
virtual double mt() const
transverse mass
virtual bool hasMasterClonePtr() const
virtual float eta() const
momentum pseudorapidity
PackedGenParticle(const reco::GenParticle &c, const edm::Ref< reco::GenParticleCollection > &mother)
virtual void setPdgId(int pdgId)
virtual double y() const
rapidity
static const unsigned int massConstraintTag
do mass constraint flag
virtual int pdgId() const
PDG identifier.
reco::CandidateCollection daughters
collection of daughter candidates
virtual bool overlap(const reco::Candidate &) const
check overlap with another Candidate
virtual const PolarLorentzVector & polarP4() const
four-momentum Lorentz vector
candidate::iterator iterator
virtual bool hasMasterClone() const
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< pat::PackedGenParticle > PackedGenParticleCollection
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual double energy() const
energy
virtual bool isCaloMuon() const
virtual bool isGlobalMuon() const
virtual const reco::Candidate * mother(size_type) const
return mother at a given position (throws an exception)
virtual double rapidity() const
rapidity
virtual int charge() const
electric charge
virtual bool isConvertedPhoton() const
virtual float pt() const
transverse momentum
virtual const_iterator begin() const
first daughter const_iterator
math::XYZPoint Point
point in the space
virtual bool massConstraint() const
do mass constraint?
virtual void setCharge(int charge)
set electric charge
virtual double py() const
y coordinate of momentum vector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
volatile std::atomic< bool > shutdown_flag false
virtual void setMass(double m)
set particle mass
reco::candidate::const_iterator_imp_specific< daughters > const_iterator_imp_specific
virtual double px() const
x coordinate of momentum vector
Ref masterRef() const
cast master clone reference to a concrete type
edm::RefVector< pat::PackedGenParticleCollection > PackedGenParticleRefVector
virtual float dz() const
dz with respect to the PV ref
virtual float phi() const
momentum azimuthal angle
virtual float dxy() const
dxy with respect to the PV ref
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual double vz() const
z coordinate of vertex position
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.