1 #ifndef Candidate_LeafRefCandidateT_h
2 #define Candidate_LeafRefCandidateT_h
46 template <
typename REF>
95 template <
typename Ref>
102 template <
typename C>
107 return reco::get<C>(*this);
110 template <
typename C,
typename Tag>
115 return reco::get<C, Tag>(*this);
118 template <
typename C>
123 return reco::get<C>(*
this,
i);
126 template <
typename C,
typename Tag>
131 return reco::get<C, Tag>(*
this,
i);
134 template <
typename C>
139 return reco::numberOf<C>(*this);
142 template <
typename C,
typename Tag>
147 return reco::numberOf<C, Tag>(*this);
166 template <typename, typename, typename>
200 return p4() == o.p4() &&
vertex() == o.vertex() &&
charge() == o.charge();
const CandidateBaseRef & masterClone() const final
edm::Ref< Container > Ref
const edm::EventSetup & c
Ref masterRef() const
cast master clone reference to a concrete type
size_t numberOfDaughters() const final
number of daughters
bool isTrackerMuon() const final
math::XYZVector Vector
point in the space
~LeafRefCandidateT() override
destructor
bool overlap(const Candidate &) const override
check overlap with another Candidate
double pt() const final
transverse momentum
bool hasMasterClone() const final
This only happens if the concrete Candidate type is ShallowCloneCandidate.
unsigned int index() const
size_t numberOfSourceCandidatePtrs() const final
const Point & vertex() const override
vertex position (overwritten by PF...)
#define CMS_CLASS_VERSION(_version_)
const LorentzVector & p4() const final
four-momentum Lorentz vector
CandidatePtr sourceCandidatePtr(size_type i) const final
size_type numberOf() const
number of components
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Candidate * daughter(const std::string &s) final
return daughter with a specified role name
RefCore const & toRefCore() const
bool isMuon() const final
bool isElectron() const final
bool isGlobalMuon() const final
tuple key
prepare the HTCondor submission files and eventually submit them
Candidate * daughter(size_type) final
return daughter at a given position (throws an exception)
size_type numberOf() const
number of components
bool isStandAloneMuon() const final
LeafRefCandidateT()
default constructor
int Charge
electric charge type
const Candidate * daughter(const std::string &s) const final
return daughter with a specified role name
LeafRefCandidateT(const REF &c, float m)
bool isConvertedPhoton() const final
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
CandidateCollection daughters
collection of daughter candidates
const Candidate * mother(size_type) const final
return mother at a given position (throws an exception)
const CandidatePtr & masterClonePtr() const final
const Candidate * daughter(size_type) const final
return daughter at a given position (throws an exception)
math::XYZPoint Point
point in the space
math::XYZTLorentzVector LorentzVector
Lorentz vector.
bool isCaloMuon() const final
size_t numberOfMothers() const final
number of mothers
bool isPhoton() const final
double phi() const final
momentum azimuthal angle
edm::RefCoreWithIndex ref_
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
bool hasMasterClonePtr() const final
int charge() const final
electric charge
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
double eta() const final
momentum pseudorapidity