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 int pdgId() const
PDG identifier.
virtual double p() const
magnitude of momentum vector
double px() const
x coordinate of momentum vector
virtual void setMassConstraint()
edm::Ref< Container > Ref
LeafCandidate(LeafCandidate &rh)
math::XYZVector Vector
point in the space
int pdgId() const
PDG identifier.
virtual double et2() const
transverse energy squared (use this for cut!)
virtual double et() const
transverse energy
double theta() const
momentum polar angle
virtual void setCharge(Charge q)
set electric charge
size_type numberOf() const
number of components
virtual double vertexChi2() const
chi-squares
virtual void setStatus(int status)
set status word
virtual const Point & vertex() const
vertex position (overwritten by PF...)
size_type numberOf() const
number of components
virtual double massSqr() const
mass squared
virtual int status() const
status word
virtual bool isConvertedPhoton() const
double pz() const
z coordinate of momentum vector
int threeCharge() const
electric charge
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
CandidateCollection daughters
collection of daughter candidates
LeafCandidate(Args &&...args)
virtual Vector momentum() const
spatial momentum vector
virtual bool isPhoton() const
virtual double y() const
rapidity
virtual bool isStandAloneMuon() const
virtual void setP4(const LorentzVector &p4)
set 4-momentum
void setMassConstraint()
set mass constraint flag
double energy() const
energy
virtual double vy() const
y coordinate of vertex position
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
virtual bool longLived() const
is long lived?
virtual bool isMuon() const
virtual void setP4(const PolarLorentzVector &p4)
set 4-momentum
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 bool isGlobalMuon() const
virtual double mass() const
mass
virtual double energy() const
energy
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
CovarianceMatrix vertexCovariance() const
return SMatrix
double mt() const
transverse mass
virtual ~LeafCandidate()
destructor
virtual void setThreeCharge(Charge qx3)
set electric charge
bool longLived() const
is long lived?
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
electric charge
double mtSqr() const
transverse mass squared
virtual CandidatePtr sourceCandidatePtr(size_type i) const
virtual double vertexNormalizedChi2() const
chi-squared divided by n.d.o.f.
void setThreeCharge(Charge qx3)
set electric charge
double et2() const
transverse energy squared (use this for cuts)!
virtual int threeCharge() const
electric charge
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 bool isElectron() const
void setLongLived()
set long lived flag
const PolarLorentzVector & polarP4() const
four-momentum Lorentz vector
virtual double theta() const
momentum polar angle
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalVector
vector in glovbal coordinate system
virtual bool isCaloMuon() const
virtual void setPz(double pz)
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
double vz() const
z coordinate of vertex position
virtual double px() const
x coordinate of momentum vector
int charge() const
electric charge
virtual void setLongLived()
virtual bool isTrackerMuon() const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
virtual double mt() const
transverse mass
int status() const
status word
const Point & vertex() const
vertex position
virtual bool isJet() const
virtual double pz() const
z coordinate of momentum vector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual double rapidity() const
rapidity
virtual Vector boostToCM() const
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< float > > LorentzVector
virtual const PolarLorentzVector & polarP4() const
four-momentum Lorentz vector
virtual size_t numberOfMothers() const
number of mothers
virtual const CandidateBaseRef & masterClone() const
Vector momentum() const
spatial momentum vector
virtual void setPdgId(int pdgId)
math::XYZVector Vector
point in the space
virtual double mtSqr() const
transverse mass squared
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)
math::XYZPoint Point
point in the space
double eta() const
momentum pseudorapidity
virtual LeafCandidate * clone() const
returns a clone of the Candidate object
virtual void setMass(double m)
set particle mass
void setP4(const LorentzVector &p4)
set 4-momentum
LeafCandidate & operator=(LeafCandidate &&)=default
virtual double phi() const
momentum azimuthal angle
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
virtual bool massConstraint() const
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 double py() const
y coordinate of momentum vector
double vx() const
x coordinate of vertex position
int Charge
electric charge type
virtual const Candidate * mother(size_type) const
return mother at a given position (throws an exception)
math::XYZPoint Point
point in the space
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
void setMass(double m)
set particle mass