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

Constructor & Destructor Documentation

TTUTrackingAlg::Track::Track ( )
inline

Definition at line 77 of file TTUTrackingAlg.h.

References m_tracklength.

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

Definition at line 78 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

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

Definition at line 83 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

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

Member Function Documentation

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

Definition at line 89 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

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

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

Definition at line 94 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

Referenced by TTUTrackingAlg::process().

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

Definition at line 108 of file TTUTrackingAlg.h.

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

Definition at line 104 of file TTUTrackingAlg.h.

References m_tracklength.

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

Definition at line 100 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

Referenced by TTUTrackingAlg::ghostBuster().

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

Member Data Documentation

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

Definition at line 114 of file TTUTrackingAlg.h.

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