CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
TrackCandidate Class Reference

#include <TrackCandidate.h>

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 ()
 
 TrackCandidate (RecHitContainer &rh)
 
 TrackCandidate (RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, signed char nLoops=0)
 
 TrackCandidate (RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, const edm::RefToBase< TrajectorySeed > &seedRef, signed char nLoops=0)
 
PTrajectoryStateOnDet const & trajectoryStateOnDet () const
 

Private Attributes

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

Detailed Description

A track candidate is
- a TSOS or equivalent (here a PTrajectoryStateOnDet)
- a vector of rechits (here via the OwnVector interface)
- a TrajectorySeed (to be confirmed as matching the final track)
- a reference to the TrajectorySeed in the origianl collection 
  of seeds. Often this collection is not saved on disk and 
  therefore the reference may be invalid.

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.

29 : rh_(), seed_(), state_(), seedRef_(), nLoops_(0) {}
signed char nLoops_
TrajectorySeed seed_
RecHitContainer rh_
PTrajectoryStateOnDet state_
edm::RefToBase< TrajectorySeed > seedRef_
TrackCandidate::TrackCandidate ( RecHitContainer rh)
inlineexplicit

Definition at line 31 of file TrackCandidate.h.

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

31  :
32  rh_(), seed_(), state_(), seedRef_(), nLoops_(0) {rh_.swap(rh);}
signed char nLoops_
TrajectorySeed seed_
RecHitContainer rh_
void swap(OwnVector< T, P > &other)
Definition: OwnVector.h:407
PTrajectoryStateOnDet state_
edm::RefToBase< TrajectorySeed > seedRef_
TrackCandidate::TrackCandidate ( RecHitContainer rh,
TrajectorySeed const &  s,
PTrajectoryStateOnDet const &  st,
signed char  nLoops = 0 
)
inline

Definition at line 34 of file TrackCandidate.h.

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

37  :
38  rh_(), seed_(s), state_(st), seedRef_(),nLoops_(nLoops) {rh_.swap(rh);}
signed char nLoops_
TrajectorySeed seed_
RecHitContainer rh_
signed char nLoops() const
void swap(OwnVector< T, P > &other)
Definition: OwnVector.h:407
PTrajectoryStateOnDet state_
edm::RefToBase< TrajectorySeed > seedRef_
TrackCandidate::TrackCandidate ( RecHitContainer rh,
TrajectorySeed const &  s,
PTrajectoryStateOnDet const &  st,
const edm::RefToBase< TrajectorySeed > &  seedRef,
signed char  nLoops = 0 
)
inline

Definition at line 41 of file TrackCandidate.h.

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

45  :
46  rh_(), seed_(s), state_(st), seedRef_(seedRef),nLoops_(nLoops) {rh_.swap(rh);}
signed char nLoops_
TrajectorySeed seed_
RecHitContainer rh_
signed char nLoops() const
void swap(OwnVector< T, P > &other)
Definition: OwnVector.h:407
PTrajectoryStateOnDet state_
edm::RefToBase< TrajectorySeed > seedRef_

Member Function Documentation

bool TrackCandidate::isLooper ( ) const
inline

Definition at line 56 of file TrackCandidate.h.

References nLoops_.

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

Definition at line 57 of file TrackCandidate.h.

References nLoops_.

57 {return nLoops_;}
signed char nLoops_
range TrackCandidate::recHits ( void  ) const
inline
TrajectorySeed const& TrackCandidate::seed ( ) const
inline

Definition at line 53 of file TrackCandidate.h.

References seed_.

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

53 {return seed_;}
TrajectorySeed 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 66 of file TrackCandidate.h.

References seedRef_.

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

66 { return seedRef_; }
edm::RefToBase< TrajectorySeed > seedRef_
void TrackCandidate::setNLoops ( signed char  value)
inline

Definition at line 59 of file TrackCandidate.h.

References nLoops_, and relativeConstraints::value.

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

Definition at line 68 of file TrackCandidate.h.

References seedRef(), and seedRef_.

68 { seedRef_ = seedRef ; }
edm::RefToBase< TrajectorySeed > seedRef() const
edm::RefToBase< TrajectorySeed > seedRef_
PTrajectoryStateOnDet const& TrackCandidate::trajectoryStateOnDet ( ) const
inline

Member Data Documentation

signed char TrackCandidate::nLoops_
private

Definition at line 75 of file TrackCandidate.h.

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

RecHitContainer TrackCandidate::rh_
private

Definition at line 71 of file TrackCandidate.h.

Referenced by recHits(), and TrackCandidate().

TrajectorySeed TrackCandidate::seed_
private

Definition at line 72 of file TrackCandidate.h.

Referenced by seed().

edm::RefToBase<TrajectorySeed> TrackCandidate::seedRef_
private

Definition at line 74 of file TrackCandidate.h.

Referenced by seedRef(), and setSeedRef().

PTrajectoryStateOnDet TrackCandidate::state_
private

Definition at line 73 of file TrackCandidate.h.

Referenced by trajectoryStateOnDet().