CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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)
 
 Track ()
 
 Track (const Track &trk)
 
void updateTrkLength ()
 
 ~Track ()
 

Public Attributes

std::vector< Seed * > m_seeds
 

Private Attributes

int m_tracklength
 

Detailed Description

Definition at line 74 of file TTUTrackingAlg.h.

Constructor & Destructor Documentation

TTUTrackingAlg::Track::Track ( )
inline

Definition at line 78 of file TTUTrackingAlg.h.

References m_tracklength.

78 { m_tracklength = 0; };
TTUTrackingAlg::Track::~Track ( )
inline

Definition at line 79 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

79  {
80  if ( m_tracklength < 0 ) delete m_seeds[0];
81  m_seeds.clear();
82  };
std::vector< Seed * > m_seeds
TTUTrackingAlg::Track::Track ( const Track trk)
inline

Definition at line 84 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

85  {
86  m_seeds = trk.m_seeds;
87  m_tracklength = trk.m_tracklength;
88  };
std::vector< Seed * > m_seeds

Member Function Documentation

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

Definition at line 90 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

Referenced by TTUTrackingAlg::executeTracker(), and TTUTrackingAlg::process().

90  {
91  m_seeds.push_back(sd);
92  ++m_tracklength;
93  };
std::vector< Seed * > m_seeds
double sd
void TTUTrackingAlg::Track::addnone ( )
inline

Definition at line 95 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

Referenced by TTUTrackingAlg::process().

95  {
96  Seed *_sd = new Seed(0,0,0);
97  m_seeds.push_back(_sd);
98  m_tracklength = -1;
99  };
std::vector< Seed * > m_seeds
int TTUTrackingAlg::Track::length ( )
inline

Definition at line 109 of file TTUTrackingAlg.h.

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

Definition at line 105 of file TTUTrackingAlg.h.

References m_tracklength.

105  {
106  return m_tracklength < rhs.m_tracklength;
107  };
void TTUTrackingAlg::Track::updateTrkLength ( )
inline

Definition at line 101 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

Referenced by TTUTrackingAlg::ghostBuster().

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

Member Data Documentation

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

Definition at line 115 of file TTUTrackingAlg.h.

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