1 #ifndef Candidate_LeafCandidate_h
2 #define Candidate_LeafCandidate_h
38 #if !defined(__CINT__) && !defined(__MAKECINT__) && !defined(__REFLEX__)
39 template<
typename...
Args>
52 int pdgId = 0,
int status = 0,
bool integerCharge =
true );
54 int pdgId = 0,
int status = 0,
bool integerCharge =
true );
56 int pdgId = 0,
int status = 0,
bool integerCharge =
true );
58 int pdgId = 0,
int status = 0,
bool integerCharge =
true );
215 template<
typename Ref>
219 template<
typename T>
T get()
const {
221 else return reco::get<T>( * this );
224 template<
typename T,
typename Tag>
T get()
const {
226 else return reco::get<T, Tag>( * this );
231 else return reco::get<T>( *
this,
i );
236 else return reco::get<T, Tag>( *
this,
i );
241 else return reco::numberOf<T>( * this );
246 else return reco::numberOf<T, Tag>( * this );
252 virtual bool isMuon()
const;
259 virtual bool isJet()
const;
267 template<
typename,
typename,
typename>
friend struct component;
268 friend class ::OverlapChecker;
double rapidity() const
repidity
value_type const * get() const
int Charge
electric charge type
virtual Vector boostToCM() const final
double px() const
x coordinate of momentum vector
edm::Ref< Container > Ref
virtual double mt() const final
transverse mass
LeafCandidate(LeafCandidate &rh)
math::XYZVector Vector
point in the space
int pdgId() const
PDG identifier.
virtual double energy() const final
energy
double theta() const
momentum polar angle
size_type numberOf() const
number of components
virtual double vertexChi2() const
chi-squares
virtual const Point & vertex() const
vertex position (overwritten by PF...)
size_type numberOf() const
number of components
virtual bool isConvertedPhoton() const
double pz() const
z coordinate of momentum vector
int threeCharge() const
electric charge
virtual void setPdgId(int pdgId) final
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
CandidateCollection daughters
collection of daughter candidates
LeafCandidate(Args &&...args)
math::XYZTLorentzVector LorentzVector
virtual bool isPhoton() const
virtual double y() const final
rapidity
virtual double phi() const final
momentum azimuthal angle
virtual int threeCharge() const final
electric charge
virtual bool isStandAloneMuon() const
void setMassConstraint()
set mass constraint flag
double energy() const
energy
virtual double vy() const
y coordinate of vertex position
virtual void setMassConstraint() final
virtual bool isMuon() const
virtual double rapidity() const final
rapidity
double phi() const
momentum azimuthal angle
bool massConstraint() const
do mass constraint?
virtual size_t numberOfDaughters() const
number of daughters
const LorentzVector & p4() const
four-momentum Lorentz vector
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
virtual int status() const final
status word
virtual void setPz(double pz) final
virtual bool isGlobalMuon() const
double pt() const
transverse momentum
virtual const CandidatePtr & masterClonePtr() const
virtual const Candidate * daughter(size_type) const
return daughter at a given position (throws an exception)
void setStatus(int status)
set status word
double mt() const
transverse mass
virtual ~LeafCandidate()
destructor
bool longLived() const
is long lived?
virtual void setLongLived() final
virtual bool hasMasterClone() const
Ref masterRef() const
cast master clone reference to a concrete type
LeafCandidate(const Candidate &c)
void setVertex(const Point &vertex)
set vertex
virtual int charge() const final
electric charge
virtual void setCharge(Charge q) final
set electric charge
double mtSqr() const
transverse mass squared
virtual CandidatePtr sourceCandidatePtr(size_type i) const
virtual void setP4(const PolarLorentzVector &p4) final
set 4-momentum
virtual double vertexNormalizedChi2() const
chi-squared divided by n.d.o.f.
virtual double py() const final
y coordinate of momentum vector
void setThreeCharge(Charge qx3)
set electric charge
double et2() const
transverse energy squared (use this for cuts)!
virtual bool overlap(const Candidate &) const
check overlap with another Candidate
virtual double vz() const
z coordinate of vertex position
virtual bool hasMasterClonePtr() const
virtual void setVertex(const Point &vertex)
set vertex
virtual double mass() const final
mass
virtual double pz() const final
z coordinate of momentum vector
virtual bool isElectron() const
void setLongLived()
set long lived flag
const PolarLorentzVector & polarP4() const
four-momentum Lorentz vector
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalVector
vector in glovbal coordinate system
virtual bool isCaloMuon() const
virtual bool longLived() const final
is long lived?
virtual void setStatus(int status) final
set status word
double et() const
transverse energy
double vy() const
y coordinate of vertex position
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
virtual size_t numberOfSourceCandidatePtrs() const
virtual Vector momentum() const final
spatial momentum vector
double vz() const
z coordinate of vertex position
int charge() const
electric charge
virtual bool isTrackerMuon() const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
int status() const
status word
const Point & vertex() const
vertex position
virtual double mtSqr() const final
transverse mass squared
CovarianceMatrix vertexCovariance() const final
return SMatrix
virtual void setP4(const LorentzVector &p4) final
set 4-momentum
virtual bool isJet() const
virtual const PolarLorentzVector & polarP4() const final
four-momentum Lorentz vector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual double p() const final
magnitude of momentum vector
virtual int pdgId() const final
PDG identifier.
virtual size_t numberOfMothers() const
number of mothers
virtual double theta() const final
momentum polar angle
virtual const CandidateBaseRef & masterClone() const
Vector momentum() const
spatial momentum vector
math::XYZVector Vector
point in the space
virtual double vx() const
x coordinate of vertex position
void construct(int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
virtual double px() const final
x coordinate of momentum vector
virtual double et() const final
transverse energy
math::XYZPoint Point
point in the space
virtual void setMass(double m) final
set particle mass
double eta() const
momentum pseudorapidity
virtual double eta() const final
momentum pseudorapidity
virtual LeafCandidate * clone() const
returns a clone of the Candidate object
void setP4(const LorentzVector &p4)
set 4-momentum
virtual void setThreeCharge(Charge qx3) final
set electric charge
LeafCandidate & operator=(LeafCandidate &&)=default
virtual double et2() const final
transverse energy squared (use this for cut!)
virtual bool massConstraint() const final
do mass constraint?
double p() const
magnitude of momentum vector
double py() const
y coordinate of momentum vector
void setCharge(Charge q)
set electric charge
virtual void fillVertexCovariance(CovarianceMatrix &v) const
fill SMatrix
virtual double vertexNdof() const
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
double vx() const
x coordinate of vertex position
int Charge
electric charge type
virtual double massSqr() const final
mass squared
virtual const Candidate * mother(size_type) const
return mother at a given position (throws an exception)
math::XYZPoint Point
point in the space
virtual double pt() const final
transverse momentum
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
void setMass(double m)
set particle mass