CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
TTUTrackingAlg::Track Class Reference

#include <TTUTrackingAlg.h>

Public Member Functions

void add (Seed *sd)
 
void addnone ()
 
int length ()
 
bool operator< (const Track &rhs)
 
Trackoperator= (Track &&)=delete
 
Trackoperator= (Track const &)=delete
 
 Track ()
 
 Track (const Track &)=delete
 
 Track (Track &&)=delete
 
void updateTrkLength ()
 

Public Attributes

std::vector< Seed * > m_seeds
 

Private Attributes

std::unique_ptr< Seedm_none
 
int m_tracklength
 

Detailed Description

Definition at line 60 of file TTUTrackingAlg.h.

Constructor & Destructor Documentation

◆ Track() [1/3]

TTUTrackingAlg::Track::Track ( )
inline

Definition at line 62 of file TTUTrackingAlg.h.

62 { m_tracklength = 0; };

References m_tracklength.

◆ Track() [2/3]

TTUTrackingAlg::Track::Track ( const Track )
delete

◆ Track() [3/3]

TTUTrackingAlg::Track::Track ( Track &&  )
delete

Member Function Documentation

◆ add()

void TTUTrackingAlg::Track::add ( Seed sd)
inline

Definition at line 69 of file TTUTrackingAlg.h.

69  {
70  m_seeds.push_back(sd);
71  ++m_tracklength;
72  };

References m_seeds, m_tracklength, and sd.

Referenced by TTUTrackingAlg::executeTracker(), and counter.Counter::register().

◆ addnone()

void TTUTrackingAlg::Track::addnone ( )
inline

Definition at line 74 of file TTUTrackingAlg.h.

74  {
75  if (not m_none) {
76  m_none = std::make_unique<Seed>(0, 0, 0);
77  }
78  m_seeds.push_back(m_none.get());
79  m_tracklength = -1;
80  };

References m_none, m_seeds, and m_tracklength.

◆ length()

int TTUTrackingAlg::Track::length ( )
inline

Definition at line 86 of file TTUTrackingAlg.h.

86 { return m_tracklength; };

◆ operator<()

bool TTUTrackingAlg::Track::operator< ( const Track rhs)
inline

Definition at line 84 of file TTUTrackingAlg.h.

84 { return m_tracklength < rhs.m_tracklength; };

References m_tracklength.

◆ operator=() [1/2]

Track& TTUTrackingAlg::Track::operator= ( Track &&  )
delete

◆ operator=() [2/2]

Track& TTUTrackingAlg::Track::operator= ( Track const &  )
delete

◆ updateTrkLength()

void TTUTrackingAlg::Track::updateTrkLength ( )
inline

Definition at line 82 of file TTUTrackingAlg.h.

82 { m_tracklength = m_seeds.size(); };

References m_seeds, and m_tracklength.

Referenced by TTUTrackingAlg::ghostBuster().

Member Data Documentation

◆ m_none

std::unique_ptr<Seed> TTUTrackingAlg::Track::m_none
private

Definition at line 91 of file TTUTrackingAlg.h.

Referenced by addnone().

◆ m_seeds

std::vector<Seed*> TTUTrackingAlg::Track::m_seeds

◆ m_tracklength

int TTUTrackingAlg::Track::m_tracklength
private

Definition at line 92 of file TTUTrackingAlg.h.

Referenced by add(), addnone(), operator<(), Track(), and updateTrkLength().

TTUTrackingAlg::Track::m_seeds
std::vector< Seed * > m_seeds
Definition: TTUTrackingAlg.h:86
TTUTrackingAlg::Track::m_tracklength
int m_tracklength
Definition: TTUTrackingAlg.h:92
TTUTrackingAlg::Track::m_none
std::unique_ptr< Seed > m_none
Definition: TTUTrackingAlg.h:91
sd
double sd
Definition: CascadeWrapper.h:113