CMS 3D CMS Logo

Public Member Functions | Public Attributes | Private Attributes

TTUTrackingAlg::Track Class Reference

#include <TTUTrackingAlg.h>

List of all members.

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.

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

Definition at line 79 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

             { 
      if ( m_tracklength < 0 ) delete m_seeds[0];
      m_seeds.clear();
    };
TTUTrackingAlg::Track::Track ( const Track trk) [inline]

Definition at line 84 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

    {
      m_seeds = trk.m_seeds;
      m_tracklength = trk.m_tracklength;
    };

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

                          { 
      m_seeds.push_back(sd); 
      ++m_tracklength;
    };
void TTUTrackingAlg::Track::addnone ( ) [inline]

Definition at line 95 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

Referenced by TTUTrackingAlg::process().

                   { 
      Seed *_sd = new Seed(0,0,0);
      m_seeds.push_back(_sd); 
      m_tracklength = -1;
    };
int TTUTrackingAlg::Track::length ( ) [inline]

Definition at line 109 of file TTUTrackingAlg.h.

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

Definition at line 105 of file TTUTrackingAlg.h.

References m_tracklength.

                                     {
      return m_tracklength < rhs.m_tracklength;
    };
void TTUTrackingAlg::Track::updateTrkLength ( ) [inline]

Definition at line 101 of file TTUTrackingAlg.h.

References m_seeds, and m_tracklength.

Referenced by TTUTrackingAlg::ghostBuster().

                           {
      m_tracklength = m_seeds.size();
    };

Member Data Documentation

Definition at line 115 of file TTUTrackingAlg.h.

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