CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
reco::RecoChargedRefCandidate Class Reference

#include <RecoChargedRefCandidate.h>

Inheritance diagram for reco::RecoChargedRefCandidate:
reco::LeafRefCandidateT< T > reco::Candidate

Public Member Functions

virtual const reco::TrackbestTrack () const
 
 RecoChargedRefCandidate ()
 
 RecoChargedRefCandidate (TrackRef ref, float m)
 
reco::TrackRef const & track () const
 
 ~RecoChargedRefCandidate ()
 
- Public Member Functions inherited from reco::LeafRefCandidateT< T >
virtual const_iterator begin () const
 first daughter const_iterator More...
 
virtual iterator begin ()
 first daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
virtual Vector boostToCM () const
 
virtual int charge () const
 electric charge More...
 
virtual LeafRefCandidateT< T > * clone () const
 returns a clone of the Candidate object More...
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual const_iterator end () const
 last daughter const_iterator More...
 
virtual iterator end ()
 last daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
virtual double energy () const
 energy More...
 
virtual double et () const
 transverse energy More...
 
virtual float eta () const
 momentum pseudorapidity More...
 
template<typename C >
get () const
 get a component More...
 
template<typename C , typename Tag >
get () const
 get a component More...
 
template<typename C >
get (size_type i) const
 get a component More...
 
template<typename C , typename Tag >
get (size_type i) const
 get a component More...
 
virtual bool hasMasterClone () const
 This only happens if the concrete Candidate type is ShallowCloneCandidate. More...
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isGlobalMuon () const
 
virtual bool isJet () const
 
virtual bool isMuon () const
 
virtual bool isPhoton () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafRefCandidateT ()
 default constructor More...
 
 LeafRefCandidateT (const T &c, float m)
 
virtual float mass () const
 mass More...
 
virtual float massSqr () const
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const
 transverse mass More...
 
virtual double mtSqr () const
 transverse mass squared More...
 
template<typename C >
size_type numberOf () const
 number of components More...
 
template<typename C , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual size_t numberOfDaughters () const
 number of daughters More...
 
virtual size_t numberOfMothers () const
 number of mothers More...
 
virtual size_t numberOfSourceCandidatePtrs () const
 
virtual double p () const
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const
 four-momentum Lorentz vector More...
 
virtual int pdgId () const
 pdg ID: dummy for now More...
 
virtual float phi () const
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector More...
 
virtual float pt () const
 transverse momentum More...
 
virtual double px () const
 x coordinate of momentum vector More...
 
virtual double py () const
 y coordinate of momentum vector More...
 
virtual double pz () const
 z coordinate of momentum vector More...
 
virtual double rapidity () const
 rapidity More...
 
virtual void setMass (double m)
 set particle mass More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual double theta () const
 momentum polar angle More...
 
virtual const Pointvertex () const
 vertex position More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const
 rapidity More...
 
virtual ~LeafRefCandidateT ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
 Candidate ()
 default constructor More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Additional Inherited Members

- Public Types inherited from reco::LeafRefCandidateT< T >
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1)/2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >
::type 
CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 
- Protected Member Functions inherited from reco::LeafRefCandidateT< T >
void cacheCartesian () const
 set internal cache More...
 
void cachePolar () const
 set internal cache More...
 
void clearCache () const
 clear internal cache More...
 
virtual bool overlap (const Candidate &) const
 check overlap with another Candidate More...
 
virtual bool overlap (const LeafRefCandidateT &) const
 
- Static Protected Member Functions inherited from reco::LeafRefCandidateT< T >
static short Class_Version ()
 
- Protected Attributes inherited from reco::LeafRefCandidateT< T >
edm::BoolCache cacheCartesianFixed_
 
edm::BoolCache cachePolarFixed_
 has cache been set? More...
 
float mass_
 mass hypothesis More...
 
LorentzVector p4Cartesian_
 internal cache for p4 More...
 
PolarLorentzVector p4Polar_
 internal cache for p4 More...
 
T ref_
 

Detailed Description

Definition at line 14 of file RecoChargedRefCandidate.h.

Constructor & Destructor Documentation

reco::RecoChargedRefCandidate::RecoChargedRefCandidate ( )
inline

Definition at line 16 of file RecoChargedRefCandidate.h.

16 : LeafRefCandidateT<TrackRef>() {}
reco::RecoChargedRefCandidate::RecoChargedRefCandidate ( TrackRef  ref,
float  m 
)
inline

Definition at line 17 of file RecoChargedRefCandidate.h.

17 : LeafRefCandidateT<TrackRef>( ref, m) {}
reco::RecoChargedRefCandidate::~RecoChargedRefCandidate ( )
inline

Definition at line 19 of file RecoChargedRefCandidate.h.

19 {};

Member Function Documentation

virtual const reco::Track* reco::RecoChargedRefCandidate::bestTrack ( ) const
inlinevirtual

Reimplemented from reco::Candidate.

Definition at line 26 of file RecoChargedRefCandidate.h.

References track().

26  {
27  if ( track().isNonnull() && track().isAvailable() )
28  return &(*track());
29  else
30  return nullptr;
31  }
reco::TrackRef const & track() const
reco::TrackRef const& reco::RecoChargedRefCandidate::track ( void  ) const
inline

Definition at line 21 of file RecoChargedRefCandidate.h.

References reco::LeafRefCandidateT< T >::ref_.

Referenced by bestTrack(), and reco::TrackJet::track().

21  {
22  return ref_;
23  }