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

range recHits () const
TrajectorySeed const & seed () const
edm::RefToBase< TrajectorySeedseedRef () const
void setSeedRef (edm::RefToBase< TrajectorySeed > &seedRef)
 TrackCandidate (RecHitContainer &rh)
 TrackCandidate (RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, const edm::RefToBase< TrajectorySeed > &seedRef)
 TrackCandidate (RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st)
 TrackCandidate ()
PTrajectoryStateOnDet const & trajectoryStateOnDet () const
virtual ~TrackCandidate ()

Private Attributes

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_() {}
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_() {rh_.swap(rh);}
TrackCandidate::TrackCandidate ( RecHitContainer rh,
TrajectorySeed const &  s,
PTrajectoryStateOnDet const &  st 
) [inline]

Definition at line 35 of file TrackCandidate.h.

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

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

Definition at line 41 of file TrackCandidate.h.

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

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

Member Function Documentation

range TrackCandidate::recHits ( void  ) const [inline]
TrajectorySeed const& TrackCandidate::seed ( ) const [inline]

Definition at line 54 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 61 of file TrackCandidate.h.

References seedRef_.

Referenced by TrackProducerWithSCAssociation::produce(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), and setSeedRef().

{ return seedRef_; }
void TrackCandidate::setSeedRef ( edm::RefToBase< TrajectorySeed > &  seedRef) [inline]

Definition at line 63 of file TrackCandidate.h.

References seedRef(), and seedRef_.

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

Member Data Documentation

Definition at line 66 of file TrackCandidate.h.

Referenced by recHits(), and TrackCandidate().

Definition at line 67 of file TrackCandidate.h.

Referenced by seed().

Definition at line 69 of file TrackCandidate.h.

Referenced by seedRef(), and setSeedRef().

Definition at line 68 of file TrackCandidate.h.

Referenced by trajectoryStateOnDet().