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 const &)=delete
 
Trackoperator= (Track &&)=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.

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.

References m_seeds, and m_tracklength.

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

70  {
71  m_seeds.push_back(sd);
72  ++m_tracklength;
73  };
std::vector< Seed * > m_seeds

◆ addnone()

void TTUTrackingAlg::Track::addnone ( )
inline

Definition at line 75 of file TTUTrackingAlg.h.

References m_none, m_seeds, and m_tracklength.

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  };
std::vector< Seed * > m_seeds
std::unique_ptr< Seed > m_none

◆ 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.

References m_tracklength.

85 { return m_tracklength < rhs.m_tracklength; };

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ updateTrkLength()

void TTUTrackingAlg::Track::updateTrkLength ( )
inline

Definition at line 83 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

Referenced by TTUTrackingAlg::ghostBuster().

83 { m_tracklength = m_seeds.size(); };
std::vector< Seed * > m_seeds

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().