ForwardTracking  1.10.0
Public Member Functions | List of all members
TrueTrack Class Reference

A class to make linking reconstructed tracks and true tracks easier. More...

#include <TrueTrack.h>

Public Member Functions

 TrueTrack (Track *trueTrack, MCParticle *mcp, MarlinTrk::IMarlinTrkSystem *trkSystem)
 
Track * getTrueTrack () const
 
const MCParticle * getMCP () const
 
std::vector< const RecoTrack * > getRecoTracks () const
 
void addRecoTrack (RecoTrack *recoTrack)
 
bool isLost () const
 
bool isFoundCompletely () const
 
bool completeVersionExists () const
 
std::string getMCPInfo () const
 
std::string getTrueTrackInfo () const
 
std::string getRelatedTracksInfo () const
 
std::string getFoundInfo () const
 
std::string getCutInfo () const
 
unsigned getNumberOfTracksWithType (TrackType type) const
 
std::vector< std::string > getCuts () const
 
void addCut (std::string cut)
 Stores the cut, that the true track didn't survive. More...
 

Detailed Description

A class to make linking reconstructed tracks and true tracks easier.

It represents a true track, so i wrapps a Track* and a MCParticle* ( accessible by getTrack() and getMCP() ) and offers additional functionality.

Member Function Documentation

void TrueTrack::addCut ( std::string  cut)
inline

Stores the cut, that the true track didn't survive.

Parameters
cutA string describing the cut
bool TrueTrack::completeVersionExists ( ) const
Returns
whether a complete version (with no additional hits) was found

References getNumberOfTracksWithType().

Referenced by getFoundInfo().

std::string TrueTrack::getCutInfo ( ) const
Returns
Info whether the true track was cutted and if yes, by what

Referenced by TrackingFeedbackProcessor::processEvent().

std::vector< std::string > TrueTrack::getCuts ( ) const
inline
Returns
the cuts it didn't survive. If the vector is empty, the true track survived all cuts.
std::string TrueTrack::getFoundInfo ( ) const
Returns
Info about the status of the track concerning if it was found or lost

References completeVersionExists(), and isLost().

Referenced by TrackingFeedbackProcessor::processEvent().

const MCParticle* TrueTrack::getMCP ( ) const
inline
Returns
the monte carlo particle of the true track
std::string TrueTrack::getMCPInfo ( ) const
Returns
Info about the Monte Carlo Particle

Referenced by TrackingFeedbackProcessor::processEvent().

unsigned TrueTrack::getNumberOfTracksWithType ( TrackType  type) const
Returns
number of linked reco tracks that have a certain type

Referenced by completeVersionExists(), and isFoundCompletely().

std::vector< const RecoTrack* > TrueTrack::getRecoTracks ( ) const
inline
Returns
the reco tracks related to the true track
std::string TrueTrack::getRelatedTracksInfo ( ) const
Returns
Info about all the tracks associated to the true track

Referenced by TrackingFeedbackProcessor::processEvent().

Track* TrueTrack::getTrueTrack ( ) const
inline
Returns
the true track
std::string TrueTrack::getTrueTrackInfo ( ) const
Returns
Info about the true Track

References RecoTrack::cellIDInfo(), and RecoTrack::positionInfo().

Referenced by TrackingFeedbackProcessor::processEvent().

bool TrueTrack::isFoundCompletely ( ) const
Returns
whether this true track was found completely (complete or complete_plus)

References getNumberOfTracksWithType().

bool TrueTrack::isLost ( ) const
Returns
whether this true track is lost

Referenced by getFoundInfo().


The documentation for this class was generated from the following files: