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;
double rapidity() const
repidity
int Charge
electric charge type
void fillVertexCovariance(CovarianceMatrix &v) const override
fill SMatrix
double px() const
x coordinate of momentum vector
edm::Ref< Container > Ref
const edm::EventSetup & c
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)
double y() const final
rapidity
double pt() const final
transverse momentum
math::XYZVector Vector
point in the space
int pdgId() const
PDG identifier.
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!)
double theta() const
momentum polar angle
size_type numberOf() const
number of components
size_type numberOf() const
number of components
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)
double vy() const override
y coordinate of vertex position
CandidatePtr sourceCandidatePtr(size_type i) const override
int status() const final
status word
bool hasMasterClonePtr() const override
const Point & vertex() const override
vertex position (overwritten by PF...)
void setMassConstraint()
set mass constraint flag
bool isMuon() const override
double energy() const
energy
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
double phi() const
momentum azimuthal angle
bool massConstraint() const
do mass constraint?
int pdgId() const final
PDG identifier.
const LorentzVector & p4() const
four-momentum Lorentz vector
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
double pt() const
transverse momentum
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 mt() const
transverse mass
double massSqr() const final
mass squared
void setLongLived() final
bool longLived() const
is long lived?
bool massConstraint() const final
do mass constraint?
Ref masterRef() const
cast master clone reference to a concrete type
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
double mtSqr() const
transverse mass squared
void setMassConstraint() final
const Candidate * mother(size_type) const override
return mother at a given position (throws an exception)
math::XYZTLorentzVector LorentzVector
bool isJet() const override
bool isStandAloneMuon() const override
void setThreeCharge(Charge qx3)
set electric charge
size_type numberOf() const
number of components
double et2() const
transverse energy squared (use this for cuts)!
double py() const final
y coordinate of momentum vector
double vx() const override
x coordinate of vertex position
void setLongLived()
set long lived flag
const PolarLorentzVector & polarP4() const
four-momentum Lorentz vector
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 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
bool isConvertedPhoton() const override
double vz() const
z coordinate of vertex position
int charge() const
electric charge
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
int status() const
status word
const Point & vertex() const
vertex position
bool hasMasterClone() const override
CovarianceMatrix vertexCovariance() const final
return SMatrix
math::XYZTLorentzVector LorentzVector
Lorentz vector.
size_t numberOfSourceCandidatePtrs() const override
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.
Vector momentum() const
spatial momentum vector
math::XYZVector Vector
point in the space
T get() const
get a component
void construct(int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
double vertexChi2() const override
chi-squares
double eta() const
momentum pseudorapidity
LeafCandidate * clone() const override
returns a clone of the Candidate object
const CandidateBaseRef & masterClone() const override
void setP4(const LorentzVector &p4)
set 4-momentum
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
void setPdgId(int pdgId) final
double p() const
magnitude of momentum vector
double py() const
y coordinate of momentum vector
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
double vx() const
x coordinate of vertex position
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