CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

TTUTrackingAlg::Track::Track ( )
inline

Definition at line 63 of file TTUTrackingAlg.h.

References m_tracklength.

63 { m_tracklength = 0; };
TTUTrackingAlg::Track::Track ( const Track )
delete
TTUTrackingAlg::Track::Track ( Track &&  )
delete

Member Function Documentation

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
double sd
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
int TTUTrackingAlg::Track::length ( )
inline

Definition at line 87 of file TTUTrackingAlg.h.

87 { return m_tracklength; };
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; };
Track& TTUTrackingAlg::Track::operator= ( Track const &  )
delete
Track& TTUTrackingAlg::Track::operator= ( Track &&  )
delete
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

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

Definition at line 92 of file TTUTrackingAlg.h.

Referenced by addnone().

std::vector<Seed*> TTUTrackingAlg::Track::m_seeds
int TTUTrackingAlg::Track::m_tracklength
private

Definition at line 93 of file TTUTrackingAlg.h.

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