Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

TrackSelector Class Reference

#include <TrackTools/TrackSelector.h>

Inheritance diagram for TrackSelector:

ITrackSelector List of all members.

Public Types

enum  ETrackType {
  unknown = 0, velo = 1, seed = 2, longtrack = 3,
  upstream = 4, downstream = 5, veloBack = 6
}
 Enum for the different track type. More...

Public Member Functions

 TrackSelector (const std::string &type, const std::string &name, const IInterface *parent)
 Constructor.
virtual ~TrackSelector ()
 Destructor.
virtual StatusCode initialize ()
 Tool initialization.
virtual StatusCode finalize ()
 Tool finalization.
virtual bool select (Track *track) const
virtual bool select (MCParticle *mcParticle)
virtual bool selectTrackType (Track *track) const
virtual bool selectTrackType (MCParticle *mcParticle)
virtual int getTrackType (Track *track) const
virtual int getTrackType (MCParticle *mcPart)
virtual StatusCode setTrackType (const int tracktype, Track *&track) const
virtual StatusCode setTrackType (MCParticle *mcPart, Track *&track)

Private Attributes

ITrackReconstructiblem_mcParticleJudge
 Pointer to MCParticle judge.
ETrackType m_previousTrackType
 Previous tracktype identifier.
MCParticle * m_previousMCParticle
 Previously requested MCParticle.
bool m_uniqueFlag
 To monitor unique tracks only.
bool m_errorFlag
 To monitor only correctly fitted tracks.
double m_minP
 minimum momentum for the tracks
double m_maxP
 maximum momentum for the tracks
std::vector< int > m_tracktypes
std::string m_mcParticleJudgeName
 Name of the tool to decide which MCParticles should have been found.

Detailed Description

This tool selects Tracks and MCParticles based on certain criteria. These criteria, which can be set with job-options, are:

Author:
Jeroen van Tilburg
Date:
2003-07-28

Definition at line 44 of file TrackSelector.h.


Member Enumeration Documentation

enum TrackSelector::ETrackType
 

Enum for the different track type.

Enumeration values:
unknown 
velo 
seed 
longtrack 
upstream 
downstream 
veloBack 

Definition at line 49 of file TrackSelector.h.

00049                   { unknown=0, velo=1, seed=2, longtrack=3, 
00050                     upstream=4, downstream=5, veloBack=6 }; 


Constructor & Destructor Documentation

TrackSelector::TrackSelector const std::string &  type,
const std::string &  name,
const IInterface *  parent
 

Constructor.

virtual TrackSelector::~TrackSelector  )  [virtual]
 

Destructor.


Member Function Documentation

virtual StatusCode TrackSelector::finalize  )  [virtual]
 

Tool finalization.

virtual int TrackSelector::getTrackType MCParticle *  mcPart  )  [virtual]
 

Get the local tracktype identifyer of the MCParticle.

Returns:
Local tracktype identifyer.
Parameters:
mcPart Input MCParticle.

Implements ITrackSelector.

virtual int TrackSelector::getTrackType Track track  )  const [virtual]
 

Get the local tracktype identifyer of the Track.

Returns:
Local tracktype identifyer.
Parameters:
track Input track.

Implements ITrackSelector.

virtual StatusCode TrackSelector::initialize  )  [virtual]
 

Tool initialization.

virtual bool TrackSelector::select MCParticle *  mcParticle  )  [virtual]
 

Select the MCParticle.

Returns:
True if the MCParticle is selected; false otherwise.
Parameters:
mcParticle Input MCParticle, which is checked for selection.

Implements ITrackSelector.

virtual bool TrackSelector::select Track track  )  const [virtual]
 

Select the Track.

Returns:
True if the track is selected; false otherwise.
Parameters:
track Input track, which is checked for selection.

Implements ITrackSelector.

virtual bool TrackSelector::selectTrackType MCParticle *  mcParticle  )  [virtual]
 

Select the MCParticle only by tracktype.

Returns:
True if the MCParticle is selected; false otherwise.
Parameters:
mcParticle Input MCParticle, which is checked for selection.

Implements ITrackSelector.

virtual bool TrackSelector::selectTrackType Track track  )  const [virtual]
 

Select the Track only by tracktype, unique and error-flag .

Returns:
True if the track is selected; false otherwise.
Parameters:
track Input track, which is checked for selection.

Implements ITrackSelector.

virtual StatusCode TrackSelector::setTrackType MCParticle *  mcPart,
Track *&  track
[virtual]
 

Set the tracktype of a (true) Track with an MCParticle

Returns:
StatusCode.
Parameters:
mcPart MCParticle which will determine type of the (true) track.
track Track of which the type will be set.

Implements ITrackSelector.

virtual StatusCode TrackSelector::setTrackType const int  tracktype,
Track *&  track
const [virtual]
 

Set the tracktype of a Track.

Returns:
StatusCode.
Parameters:
tracktype Input local tracktype identifyer of the track.
track Track of which the tracktype will be set.

Implements ITrackSelector.


Member Data Documentation

bool TrackSelector::m_errorFlag [private]
 

To monitor only correctly fitted tracks.

Definition at line 131 of file TrackSelector.h.

double TrackSelector::m_maxP [private]
 

maximum momentum for the tracks

Definition at line 133 of file TrackSelector.h.

ITrackReconstructible* TrackSelector::m_mcParticleJudge [private]
 

Pointer to MCParticle judge.

Definition at line 123 of file TrackSelector.h.

std::string TrackSelector::m_mcParticleJudgeName [private]
 

Name of the tool to decide which MCParticles should have been found.

Definition at line 136 of file TrackSelector.h.

double TrackSelector::m_minP [private]
 

minimum momentum for the tracks

Definition at line 132 of file TrackSelector.h.

MCParticle* TrackSelector::m_previousMCParticle [private]
 

Previously requested MCParticle.

Definition at line 127 of file TrackSelector.h.

ETrackType TrackSelector::m_previousTrackType [private]
 

Previous tracktype identifier.

Definition at line 126 of file TrackSelector.h.

std::vector<int> TrackSelector::m_tracktypes [private]
 

Track types of the monitored tracks

Definition at line 134 of file TrackSelector.h.

bool TrackSelector::m_uniqueFlag [private]
 

To monitor unique tracks only.

Definition at line 130 of file TrackSelector.h.


The documentation for this class was generated from the following file:
Generated on Wed May 4 11:52:43 2005 for New Track Event Model by doxygen 1.4.1