1 #ifndef Candidate_LeafRefCandidateT_h
2 #define Candidate_LeafRefCandidateT_h
168 template<
typename Ref>
172 template<
typename C>
C get()
const {
174 else return reco::get<C>( * this );
177 template<
typename C,
typename Tag>
C get()
const {
179 else return reco::get<C, Tag>( * this );
184 else return reco::get<C>( *
this,
i );
189 else return reco::get<C, Tag>( *
this,
i );
194 else return reco::numberOf<C>( * this );
199 else return reco::numberOf<C, Tag>( * this );
204 typedef boost::filter_iterator<S, const_iterator>
type;
209 return boost::make_filter_iterator(s,
begin(),
end());
213 return boost::make_filter_iterator(s,
end(),
end());
260 template<
typename,
typename,
typename>
friend struct component;
261 friend class ::OverlapChecker;
338 return ref_ == o.
ref_;
virtual bool isStandAloneMuon() const GCC11_FINAL
virtual void setMass(double m) GCC11_FINAL
set particle mass
int Charge
electric charge type
virtual void setPdgId(int pdgId) GCC11_FINAL
virtual float pt() const GCC11_FINAL
transverse momentum
math::XYZPoint Point
point in the space
virtual const Candidate * daughter(const std::string &s) const GCC11_FINAL
return daughter with a specified role name
virtual double vz() const GCC11_FINAL
z coordinate of vertex position
edm::Ref< Container > Ref
virtual double rapidity() const GCC11_FINAL
rapidity
virtual size_t numberOfDaughters() const GCC11_FINAL
number of daughters
math::XYZVector Vector
point in the space
virtual const CandidateBaseRef & masterClone() const GCC11_FINAL
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
candidate::const_iterator const_iterator
virtual void setPz(double pz) GCC11_FINAL
virtual bool hasMasterClonePtr() const GCC11_FINAL
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
LorentzVector p4Cartesian_
internal cache for p4
virtual int status() const GCC11_FINAL
status word
virtual void setP4(const PolarLorentzVector &p4) GCC11_FINAL
set 4-momentum
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
virtual const Candidate * daughter(size_type) const GCC11_FINAL
return daughter at a given position (throws an exception)
virtual int charge() const GCC11_FINAL
electric charge
virtual bool isJet() const GCC11_FINAL
virtual bool isPhoton() const GCC11_FINAL
size_type numberOf() const
number of components
virtual Candidate * daughter(const std::string &s) GCC11_FINAL
return daughter with a specified role name
virtual void setLongLived() GCC11_FINAL
set long lived flag
edm::BoolCache cachePolarFixed_
has cache been set?
size_type numberOf() const
number of components
virtual const_iterator begin() const
first daughter const_iterator
virtual Vector momentum() const GCC11_FINAL
spatial momentum vector
CandidateCollection daughters
collection of daughter candidates
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
virtual int threeCharge() const GCC11_FINAL
electric charge
virtual bool massConstraint() const GCC11_FINAL
do mass constraint?
virtual double p() const GCC11_FINAL
magnitude of momentum vector
boost::filter_iterator< S, const_iterator > type
virtual double y() const GCC11_FINAL
rapidity
virtual void setMassConstraint() GCC11_FINAL
set mass constraint flag
candidate::iterator_imp_specific< daughters > iterator_imp_specific
CovarianceMatrix vertexCovariance() const GCC11_FINAL
fill SMatrix
virtual int pdgId() const GCC11_FINAL
pdg ID: dummy for now
LeafRefCandidateT()
default constructor
virtual void setThreeCharge(Charge qx3) GCC11_FINAL
set electric charge
void clearCache() const
clear internal cache
static const unsigned int massConstraintTag
virtual double mtSqr() const GCC11_FINAL
transverse mass squared
static const unsigned int longLivedTag
virtual bool overlap(const Candidate &) const
check overlap with another Candidate
virtual LeafRefCandidateT< T > * clone() const GCC11_FINAL
returns a clone of the Candidate object
virtual bool isConvertedPhoton() const GCC11_FINAL
virtual void setP4(const LorentzVector &p4) GCC11_FINAL
set 4-momentum
virtual const Point & vertex() const =0
vertex position
virtual bool isGlobalMuon() const GCC11_FINAL
virtual int charge() const =0
electric charge
PolarLorentzVector p4Polar_
internal cache for p4
daughter_iterator< S >::type beginFilter(const S &s) const
virtual double vertexChi2() const GCC11_FINAL
chi-squares
math::XYZVector Vector
point in the space
virtual const PolarLorentzVector & polarP4() const GCC11_FINAL
four-momentum Lorentz vector
virtual const CandidatePtr & masterClonePtr() const GCC11_FINAL
virtual double theta() const GCC11_FINAL
momentum polar angle
virtual double py() const GCC11_FINAL
y coordinate of momentum vector
virtual double mt() const GCC11_FINAL
transverse mass
virtual bool isCaloMuon() const GCC11_FINAL
void cacheCartesian() const
set internal cache
float mass_
mass hypothesis
virtual Candidate * daughter(size_type) GCC11_FINAL
return daughter at a given position (throws an exception)
candidate::iterator iterator
virtual bool isTrackerMuon() const GCC11_FINAL
void cachePolar() const
set internal cache
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
virtual double et() const GCC11_FINAL
transverse energy
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual size_t numberOfMothers() const GCC11_FINAL
number of mothers
daughter_iterator< S >::type endFilter(const S &s) const
virtual void setVertex(const Point &vertex) GCC11_FINAL
set vertex
virtual double vertexNormalizedChi2() const GCC11_FINAL
chi-squared divided by n.d.o.f.
virtual double vy() const GCC11_FINAL
y coordinate of vertex position
virtual const Point & vertex() const GCC11_FINAL
vertex position
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual float mass() const GCC11_FINAL
mass
return(e1-e2)*(e1-e2)+dp *dp
virtual Vector boostToCM() const GCC11_FINAL
virtual float massSqr() const GCC11_FINAL
mass squared
virtual double pz() const GCC11_FINAL
z coordinate of momentum vector
edm::BoolCache cacheCartesianFixed_
virtual void setStatus(int status) GCC11_FINAL
set status word
virtual double vertexNdof() const GCC11_FINAL
candidate::const_iterator_imp_specific< daughters > const_iterator_imp_specific
virtual double energy() const GCC11_FINAL
energy
virtual bool isMuon() const GCC11_FINAL
virtual const Candidate * mother(size_type) const GCC11_FINAL
return mother at a given position (throws an exception)
virtual bool longLived() const GCC11_FINAL
is long lived?
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
virtual ~LeafRefCandidateT()
destructor
math::XYZPoint Point
point in the space
virtual bool isElectron() const GCC11_FINAL
virtual double vx() const GCC11_FINAL
x coordinate of vertex position
virtual void setCharge(Charge q) GCC11_FINAL
volatile std::atomic< bool > shutdown_flag false
virtual double vertexCovariance(int i, int j) const GCC11_FINAL
(i, j)-th element of error matrix, i, j = 0, ... 2
virtual bool hasMasterClone() const GCC11_FINAL
This only happens if the concrete Candidate type is ShallowCloneCandidate.
virtual CandidatePtr sourceCandidatePtr(size_type i) const GCC11_FINAL
virtual size_t numberOfSourceCandidatePtrs() const GCC11_FINAL
virtual double px() const GCC11_FINAL
x coordinate of momentum vector
LeafRefCandidateT(const T &c, float m)
int Charge
electric charge type
Ref masterRef() const
cast master clone reference to a concrete type
virtual const_iterator end() const
last daughter const_iterator
virtual void fillVertexCovariance(CovarianceMatrix &v) const GCC11_FINAL
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.