CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

TrackCandidate Class Reference

#include <TrackCandidate.h>

List of all members.

Public Types

typedef
RecHitContainer::const_iterator 
const_iterator
typedef std::pair
< const_iterator,
const_iterator
range
typedef edm::OwnVector
< TrackingRecHit
RecHitContainer

Public Member Functions

bool isLooper () const
signed char nLoops () const
range recHits () const
TrajectorySeed const & seed () const
edm::RefToBase< TrajectorySeedseedRef () const
void setNLoops (signed char value)
void setSeedRef (edm::RefToBase< TrajectorySeed > &seedRef)
 TrackCandidate (RecHitContainer &rh)
 TrackCandidate (RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, signed char nLoops=0)
 TrackCandidate ()
 TrackCandidate (RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, const edm::RefToBase< TrajectorySeed > &seedRef, signed char nLoops=0)
PTrajectoryStateOnDet const & trajectoryStateOnDet () const
virtual ~TrackCandidate ()

Private Attributes

signed char nLoops_
RecHitContainer rh_
TrajectorySeed seed_
edm::RefToBase< TrajectorySeedseedRef_
PTrajectoryStateOnDet state_

Detailed Description

A track candidate is

only the second is compulsory,the other three can be empty / not present

Definition at line 23 of file TrackCandidate.h.


Member Typedef Documentation

typedef RecHitContainer::const_iterator TrackCandidate::const_iterator

Definition at line 26 of file TrackCandidate.h.

Definition at line 27 of file TrackCandidate.h.

Definition at line 25 of file TrackCandidate.h.


Constructor & Destructor Documentation

TrackCandidate::TrackCandidate ( ) [inline]

Definition at line 29 of file TrackCandidate.h.

: rh_(),  seed_(), state_(), seedRef_(), nLoops_(0) {}
virtual TrackCandidate::~TrackCandidate ( ) [inline, virtual]

Definition at line 30 of file TrackCandidate.h.

{}
TrackCandidate::TrackCandidate ( RecHitContainer rh) [inline]

Definition at line 32 of file TrackCandidate.h.

References rh_, and edm::OwnVector< T, P >::swap().

                                       :
  rh_(),  seed_(), state_(), seedRef_(), nLoops_(0) {rh_.swap(rh);}
TrackCandidate::TrackCandidate ( RecHitContainer rh,
TrajectorySeed const &  s,
PTrajectoryStateOnDet const &  st,
signed char  nLoops = 0 
) [inline]

Definition at line 35 of file TrackCandidate.h.

References rh_, and edm::OwnVector< T, P >::swap().

                                      :
    rh_(), seed_(s), state_(st), seedRef_(),nLoops_(nLoops) {rh_.swap(rh);}
TrackCandidate::TrackCandidate ( RecHitContainer rh,
TrajectorySeed const &  s,
PTrajectoryStateOnDet const &  st,
const edm::RefToBase< TrajectorySeed > &  seedRef,
signed char  nLoops = 0 
) [inline]

Definition at line 42 of file TrackCandidate.h.

References rh_, and edm::OwnVector< T, P >::swap().

                                       :
    rh_(), seed_(s), state_(st), seedRef_(seedRef),nLoops_(nLoops) {rh_.swap(rh);}

Member Function Documentation

bool TrackCandidate::isLooper ( ) const [inline]

Definition at line 59 of file TrackCandidate.h.

References nLoops_.

{return (nLoops_>0);}
signed char TrackCandidate::nLoops ( ) const [inline]

Definition at line 60 of file TrackCandidate.h.

References nLoops_.

{return nLoops_;}
range TrackCandidate::recHits ( void  ) const [inline]
TrajectorySeed const& TrackCandidate::seed ( ) const [inline]

Definition at line 56 of file TrackCandidate.h.

References seed_.

Referenced by TestHits::analyze(), TestSmoothHits::analyze(), and TrackProducerWithSCAssociation::produce().

{return seed_;}
edm::RefToBase<TrajectorySeed> TrackCandidate::seedRef ( ) const [inline]

return the edm::reference to the trajectory seed in the original seeds collection. If the collection has been dropped from the Event, the reference may be invalid. Its validity should be tested, before the reference is actually used.

Definition at line 69 of file TrackCandidate.h.

References seedRef_.

Referenced by reco::modules::DuplicateListMerger::matchCandidateToTrack(), TrackProducerWithSCAssociation::produce(), and setSeedRef().

{ return seedRef_; }
void TrackCandidate::setNLoops ( signed char  value) [inline]

Definition at line 62 of file TrackCandidate.h.

References nLoops_, and relativeConstraints::value.

void TrackCandidate::setSeedRef ( edm::RefToBase< TrajectorySeed > &  seedRef) [inline]

Definition at line 71 of file TrackCandidate.h.

References seedRef(), and seedRef_.

{ seedRef_ = seedRef ; } 
PTrajectoryStateOnDet const& TrackCandidate::trajectoryStateOnDet ( ) const [inline]

Member Data Documentation

signed char TrackCandidate::nLoops_ [private]

Definition at line 78 of file TrackCandidate.h.

Referenced by isLooper(), nLoops(), and setNLoops().

Definition at line 74 of file TrackCandidate.h.

Referenced by recHits(), and TrackCandidate().

Definition at line 75 of file TrackCandidate.h.

Referenced by seed().

Definition at line 77 of file TrackCandidate.h.

Referenced by seedRef(), and setSeedRef().

Definition at line 76 of file TrackCandidate.h.

Referenced by trajectoryStateOnDet().