CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoChargedRefCandidate.h
Go to the documentation of this file.
1 #ifndef RecoCandidate_RecoChargedRefCandidate_h
2 #define RecoCandidate_RecoChargedRefCandidate_h
3 
7 
8 namespace reco {
9 
10 
12 
13 
15  public:
18 
20 
21  reco::TrackRef const & track() const {
22  return ref_;
23  }
24  // return a pointer to the best track, if available.
25  // otherwise, return a null pointer
26  virtual const reco::Track * bestTrack() const {
27  if ( track().isNonnull() && track().isAvailable() )
28  return &(*track());
29  else
30  return nullptr;
31  }
32  };
33 }
34 
35 #endif
virtual const reco::Track * bestTrack() const
RecoChargedRefCandidate(TrackRef ref, float m)
LeafRefCandidateT< TrackRef > RecoChargedRefCandidateBase
reco::TrackRef const & track() const