|
|
Go to the documentation of this file. 1 #ifndef Candidate_Candidate_h
2 #define Candidate_Candidate_h
57 virtual int charge()
const = 0;
74 virtual double p()
const = 0;
76 virtual double energy()
const = 0;
78 virtual double et()
const = 0;
80 virtual double et2()
const = 0;
82 virtual double mass()
const = 0;
84 virtual double massSqr()
const = 0;
86 virtual double mt()
const = 0;
88 virtual double mtSqr()
const = 0;
90 virtual double px()
const = 0;
92 virtual double py()
const = 0;
94 virtual double pz()
const = 0;
96 virtual double pt()
const = 0;
98 virtual double phi()
const = 0;
100 virtual double theta()
const = 0;
102 virtual double eta()
const = 0;
104 virtual double rapidity()
const = 0;
106 virtual double y()
const = 0;
113 virtual void setPz(
double pz) = 0;
117 virtual double vx()
const = 0;
119 virtual double vy()
const = 0;
121 virtual double vz()
const = 0;
125 virtual int pdgId()
const = 0;
129 virtual int status()
const = 0;
214 template <
typename Ref>
220 template <
typename T>
225 return reco::get<T>(*
this);
228 template <
typename T,
typename Tag>
233 return reco::get<T, Tag>(*
this);
236 template <
typename T>
241 return reco::get<T>(*
this,
i);
244 template <
typename T,
typename Tag>
249 return reco::get<T, Tag>(*
this,
i);
252 template <
typename T>
257 return reco::numberOf<T>(*
this);
260 template <
typename T,
typename Tag>
265 return reco::numberOf<T, Tag>(*
this);
280 virtual bool isMuon()
const = 0;
287 virtual bool isJet()
const = 0;
292 template <
typename,
typename,
typename>
294 friend class ::OverlapChecker;
299 namespace candidate {
virtual double energy() const =0
energy
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode)
virtual float dzError() const
uncertainty on dz
virtual double vertexNdof() const =0
math::XYZVector Vector
point in the space
virtual bool overlap(const Candidate &) const =0
check overlap with another Candidate
virtual const CandidatePtr & masterClonePtr() const =0
virtual void fillVertexCovariance(CovarianceMatrix &v) const =0
virtual Vector boostToCM() const =0
virtual void setP4(const LorentzVector &p4)=0
set 4-momentum
virtual void setMass(double m)=0
set particle mass
virtual int threeCharge() const =0
electric charge
virtual double mass() const =0
mass
virtual double eta() const =0
momentum pseudorapidity
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
int Charge
electric charge type
candidate::const_iterator const_iterator
T get(size_type i) const
get a component
virtual double pt() const =0
transverse momentum
virtual bool isPhoton() const =0
T get() const
get a component
virtual int status() const =0
status word
virtual void setSourceCandidatePtr(const CandidatePtr &ptr)
Set the ptr to the source Candidate.
virtual void setPdgId(int pdgId)=0
virtual const Candidate * mother(size_type i=0) const =0
return pointer to mother
virtual bool isConvertedPhoton() const =0
virtual double rapidity() const =0
rapidity
virtual double theta() const =0
momentum polar angle
virtual double vertexChi2() const =0
chi-squares
reference operator*() const
virtual double pz() const =0
z coordinate of momentum vector
virtual size_type numberOfMothers() const =0
number of mothers (zero or one in most of but not all the cases)
virtual void setMassConstraint()=0
set mass constraint flag
virtual bool massConstraint() const =0
do mass constraint?
virtual double vx() const =0
x coordinate of vertex position
virtual double vy() const =0
y coordinate of vertex position
virtual double y() const =0
rapidity
virtual int charge() const =0
electric charge
virtual bool isStandAloneMuon() const =0
size_type numberOf() const
number of components
Ref masterRef() const
cast master clone reference to a concrete type
virtual size_type numberOfDaughters() const =0
number of daughters
virtual double vertexNormalizedChi2() const =0
chi-squared divided by n.d.o.f.
virtual double p() const =0
magnitude of momentum vector
virtual bool hasMasterClone() const =0
virtual bool isCaloMuon() const =0
virtual void setThreeCharge(Charge qx3)=0
set electric charge
virtual const PolarLorentzVector & polarP4() const =0
four-momentum Lorentz vector
iterator end()
last daughter iterator
value_type const * get() const
const typedef Candidate & reference
candidate::iterator iterator
virtual double py() const =0
y coordinate of momentum vector
virtual bool isMuon() const =0
Structure Point Contains parameters of Gaussian fits to DMRs.
virtual void setStatus(int status)=0
set status word
XYZPointD XYZPoint
point in space with cartesian internal representation
T get() const
get a component
const_iterator end() const
last daughter const_iterator
virtual Vector momentum() const =0
spatial momentum vector
virtual double mt() const =0
transverse mass
virtual const Point & vertex() const =0
vertex position
XYZVectorD XYZVector
spatial vector with cartesian internal representation
virtual Candidate * clone() const =0
returns a clone of the Candidate object
virtual void setVertex(const Point &vertex)=0
set vertex
iterator begin()
first daughter iterator
size_type numberOf() const
number of components
virtual void setLongLived()=0
set long lived flag
virtual int pdgId() const =0
PDG identifier.
virtual double mtSqr() const =0
transverse mass squared
virtual void setPz(double pz)=0
virtual bool isElectron() const =0
math::Error< dimension >::type CovarianceMatrix
covariance error matrix (3x3)
T get(size_type i) const
get a component
virtual CandidatePtr sourceCandidatePtr(size_type i) const
virtual void setCharge(Charge q)=0
set electric charge
virtual double px() const =0
x coordinate of momentum vector
virtual const Track * bestTrack() const
virtual bool hasMasterClonePtr() const =0
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
math::XYZTLorentzVector LorentzVector
edm::Ref< Container > Ref
unsigned int index
index type
virtual bool longLived() const =0
is long lived?
virtual double et2() const =0
transverse energy squared (use this for cut!)
virtual double vz() const =0
z coordinate of vertex position
reference operator*() const
virtual ~Candidate()
destructor
virtual const CandidateBaseRef & masterClone() const =0
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
Candidate()
default constructor
virtual bool isTrackerMuon() const =0
virtual size_t numberOfSourceCandidatePtrs() const =0
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
virtual CovarianceMatrix vertexCovariance() const
fill SMatrix
math::XYZTLorentzVector LorentzVector
Lorentz vector.
math::XYZPoint Point
point in the space
virtual bool isJet() const =0
virtual double phi() const =0
momentum azimuthal angle
const_iterator begin() const
first daughter const_iterator
virtual bool isGlobalMuon() const =0
virtual float dxyError() const
uncertainty on dxy
virtual double massSqr() const =0
mass squared
virtual double et() const =0
transverse energy