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 61 of file TTUTrackingAlg.h.

Constructor & Destructor Documentation

◆ Track() [1/3]

TTUTrackingAlg::Track::Track ( )
inline

Definition at line 63 of file TTUTrackingAlg.h.

63 { 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 70 of file TTUTrackingAlg.h.

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

References m_seeds, m_tracklength, and sd.

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

◆ addnone()

void TTUTrackingAlg::Track::addnone ( )
inline

Definition at line 75 of file TTUTrackingAlg.h.

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

References m_none, m_seeds, and m_tracklength.

◆ length()

int TTUTrackingAlg::Track::length ( )
inline

Definition at line 87 of file TTUTrackingAlg.h.

87 { return m_tracklength; };

◆ operator<()

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

Definition at line 85 of file TTUTrackingAlg.h.

85 { 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 83 of file TTUTrackingAlg.h.

83 { 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 92 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 93 of file TTUTrackingAlg.h.

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

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