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

TrackFunctor.h File Reference

#include <functional>
#include "Event/Track.h"

Go to the source code of this file.

Namespaces

namespace  TrackFunctor

Defines

#define TrackEvent_TrackFunctor_H   1

Functions

template<class T>
void deleteFromList (std::vector< T * > &List, T *value)
template<class T>
unsigned int nMeasurements (const Track &track, T &pred)


Define Documentation

#define TrackEvent_TrackFunctor_H   1
 

Definition at line 2 of file TrackFunctor.h.


Function Documentation

template<class T>
void deleteFromList std::vector< T * > &  List,
T *  value
 

Definition at line 156 of file TrackFunctor.h.

00157   {
00158     typename std::vector<T*>::iterator it;
00159     it = std::remove(List.begin(), List.end(), value );
00160     delete *it;
00161     List.erase( it, List.end() );
00162   }

template<class T>
unsigned int nMeasurements const Track track,
T &  pred
 

Definition at line 165 of file TrackFunctor.h.

Referenced by TrueTracksCreator::execute(), TrFitTrack2TrackCnv::execute(), and Track2TrFitTrackCnv::execute().

00166   {
00167     const std::vector<LHCbID>& ids = track.lhcbIDs();
00168     return std::count_if(ids.begin(),ids.end(),pred);
00169   }


Generated on Fri May 27 13:59:38 2005 for New Track Event Model by doxygen 1.4.1