CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
TrackCandidate Class Reference

#include <TrackCandidate.h>

Public Types

typedef edm::OwnVector< TrackingRecHitRecHitContainer
 

Public Member Functions

bool isLooper () const
 
signed char nLoops () const
 
auto nRecHits () const
 
edm::Range< RecHitContainer::const_iterator > recHits () const
 
TrajectorySeed const & seed () const
 
edm::RefToBase< TrajectorySeedseedRef () const
 
void setNLoops (signed char value)
 
void setSeedRef (edm::RefToBase< TrajectorySeed > &seedRef)
 
void setStopReason (uint8_t value)
 
uint8_t stopReason () const
 
 TrackCandidate ()
 
 TrackCandidate (RecHitContainer &rh)
 
 TrackCandidate (RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, const edm::RefToBase< TrajectorySeed > &seedRef, signed char nLoops=0, uint8_t stopReason=(uint8_t) StopReason::UNINITIALIZED)
 
 TrackCandidate (RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, signed char nLoops=0, uint8_t stopReason=(uint8_t) StopReason::UNINITIALIZED)
 
PTrajectoryStateOnDet const & trajectoryStateOnDet () const
 

Private Attributes

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

Detailed Description

A track candidate is

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

Definition at line 24 of file TrackCandidate.h.

Member Typedef Documentation

◆ RecHitContainer

Definition at line 26 of file TrackCandidate.h.

Constructor & Destructor Documentation

◆ TrackCandidate() [1/4]

TrackCandidate::TrackCandidate ( )
inline

Definition at line 28 of file TrackCandidate.h.

◆ TrackCandidate() [2/4]

TrackCandidate::TrackCandidate ( RecHitContainer rh)
inlineexplicit

Definition at line 31 of file TrackCandidate.h.

33  rh_.swap(rh);
34  }

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

◆ TrackCandidate() [3/4]

TrackCandidate::TrackCandidate ( RecHitContainer rh,
TrajectorySeed const &  s,
PTrajectoryStateOnDet const &  st,
signed char  nLoops = 0,
uint8_t  stopReason = (uint8_t)StopReason::UNINITIALIZED 
)
inline

Definition at line 36 of file TrackCandidate.h.

42  rh_.swap(rh);
43  }

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

◆ TrackCandidate() [4/4]

TrackCandidate::TrackCandidate ( RecHitContainer rh,
TrajectorySeed const &  s,
PTrajectoryStateOnDet const &  st,
const edm::RefToBase< TrajectorySeed > &  seedRef,
signed char  nLoops = 0,
uint8_t  stopReason = (uint8_t)StopReason::UNINITIALIZED 
)
inline

Definition at line 45 of file TrackCandidate.h.

52  rh_.swap(rh);
53  }

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

Member Function Documentation

◆ isLooper()

bool TrackCandidate::isLooper ( ) const
inline

Definition at line 62 of file TrackCandidate.h.

62 { return (nLoops_ > 0); }

References nLoops_.

◆ nLoops()

signed char TrackCandidate::nLoops ( ) const
inline

Definition at line 63 of file TrackCandidate.h.

63 { return nLoops_; }

References nLoops_.

◆ nRecHits()

auto TrackCandidate::nRecHits ( ) const
inline

Definition at line 58 of file TrackCandidate.h.

58 { return rh_.size(); }

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

Referenced by TrackBuildingAnalyzer::analyze().

◆ recHits()

edm::Range<RecHitContainer::const_iterator> TrackCandidate::recHits ( void  ) const
inline

◆ seed()

TrajectorySeed const& TrackCandidate::seed ( ) const
inline

Definition at line 60 of file TrackCandidate.h.

60 { return seed_; }

References seed_.

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

◆ seedRef()

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 74 of file TrackCandidate.h.

74 { return seedRef_; }

References seedRef_.

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

◆ setNLoops()

void TrackCandidate::setNLoops ( signed char  value)
inline

Definition at line 66 of file TrackCandidate.h.

66 { nLoops_ = value; }

References nLoops_, and relativeConstraints::value.

◆ setSeedRef()

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

Definition at line 76 of file TrackCandidate.h.

76 { seedRef_ = seedRef; }

References seedRef(), and seedRef_.

◆ setStopReason()

void TrackCandidate::setStopReason ( uint8_t  value)
inline

Definition at line 67 of file TrackCandidate.h.

67 { stopReason_ = value; }

References stopReason_, and relativeConstraints::value.

◆ stopReason()

uint8_t TrackCandidate::stopReason ( ) const
inline

Definition at line 64 of file TrackCandidate.h.

64 { return stopReason_; }

References stopReason_.

Referenced by TrackBuildingAnalyzer::analyze().

◆ trajectoryStateOnDet()

PTrajectoryStateOnDet const& TrackCandidate::trajectoryStateOnDet ( ) const
inline

Member Data Documentation

◆ nLoops_

signed char TrackCandidate::nLoops_
private

Definition at line 83 of file TrackCandidate.h.

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

◆ rh_

RecHitContainer TrackCandidate::rh_
private

Definition at line 79 of file TrackCandidate.h.

Referenced by nRecHits(), recHits(), and TrackCandidate().

◆ seed_

TrajectorySeed TrackCandidate::seed_
private

Definition at line 80 of file TrackCandidate.h.

Referenced by seed().

◆ seedRef_

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

Definition at line 82 of file TrackCandidate.h.

Referenced by seedRef(), and setSeedRef().

◆ state_

PTrajectoryStateOnDet TrackCandidate::state_
private

Definition at line 81 of file TrackCandidate.h.

Referenced by trajectoryStateOnDet().

◆ stopReason_

uint8_t TrackCandidate::stopReason_
private

Definition at line 84 of file TrackCandidate.h.

Referenced by setStopReason(), and stopReason().

TrackCandidate::nLoops
signed char nLoops() const
Definition: TrackCandidate.h:63
edm::OwnVector::end
iterator end()
Definition: OwnVector.h:285
TrackCandidate::seedRef_
edm::RefToBase< TrajectorySeed > seedRef_
Definition: TrackCandidate.h:82
alignCSCRings.s
s
Definition: alignCSCRings.py:92
TrackCandidate::rh_
RecHitContainer rh_
Definition: TrackCandidate.h:79
TrackCandidate::seedRef
edm::RefToBase< TrajectorySeed > seedRef() const
Definition: TrackCandidate.h:74
TrackCandidate::state_
PTrajectoryStateOnDet state_
Definition: TrackCandidate.h:81
TrackCandidate::nLoops_
signed char nLoops_
Definition: TrackCandidate.h:83
StopReason::UNINITIALIZED
relativeConstraints.value
value
Definition: relativeConstraints.py:53
TrackCandidate::stopReason
uint8_t stopReason() const
Definition: TrackCandidate.h:64
edm::OwnVector::swap
void swap(OwnVector< T, P > &other) noexcept
Definition: OwnVector.h:512
TrackCandidate::stopReason_
uint8_t stopReason_
Definition: TrackCandidate.h:84
edm::OwnVector::begin
iterator begin()
Definition: OwnVector.h:280
edm::OwnVector::size
size_type size() const
Definition: OwnVector.h:300
TrackCandidate::seed_
TrajectorySeed seed_
Definition: TrackCandidate.h:80