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