#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) |
|
Definition at line 2 of file TrackFunctor.h. |
|
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 }
|
|
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 }
|