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

Constructor & Destructor Documentation

TTUTrackingAlg::Track::Track ( )
inline

Definition at line 68 of file TTUTrackingAlg.h.

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

Member Function Documentation

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

Definition at line 75 of file TTUTrackingAlg.h.

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

75  {
76  m_seeds.push_back(sd);
77  ++m_tracklength;
78  };
std::vector< Seed * > m_seeds
double sd
void TTUTrackingAlg::Track::addnone ( )
inline

Definition at line 80 of file TTUTrackingAlg.h.

80  {
81  if(not m_none) {
82  m_none = std::make_unique<Seed>(0,0,0);
83  }
84  m_seeds.push_back(m_none.get());
85  m_tracklength = -1;
86  };
std::vector< Seed * > m_seeds
std::unique_ptr< Seed > m_none
int TTUTrackingAlg::Track::length ( )
inline

Definition at line 96 of file TTUTrackingAlg.h.

96 { return m_tracklength;};
bool TTUTrackingAlg::Track::operator< ( const Track rhs)
inline

Definition at line 92 of file TTUTrackingAlg.h.

References m_tracklength.

92  {
93  return m_tracklength < rhs.m_tracklength;
94  };
Track& TTUTrackingAlg::Track::operator= ( Track const &  )
delete
Track& TTUTrackingAlg::Track::operator= ( Track &&  )
delete
void TTUTrackingAlg::Track::updateTrkLength ( )
inline

Definition at line 88 of file TTUTrackingAlg.h.

Referenced by TTUTrackingAlg::ghostBuster().

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

Member Data Documentation

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

Definition at line 101 of file TTUTrackingAlg.h.

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

Definition at line 96 of file TTUTrackingAlg.h.

Referenced by TTUTrackingAlg::filter(), and TTUTrackingAlg::ghostBuster().

int TTUTrackingAlg::Track::m_tracklength
private

Definition at line 102 of file TTUTrackingAlg.h.

Referenced by operator<().