13 #ifndef TrigInDetAnalysisExample_TIDATools_H
14 #define TrigInDetAnalysisExample_TIDATools_H
22 if ( tracks.size()>1 ) {
24 std::vector<T*> tmp_tracks;
28 for (
unsigned i=1 ;
i<tracks.size() ;
i++ ) {
29 if ( std::fabs(tracks[
i]->
pT())>std::fabs(tracks[ih]->
pT()) ) ih =
i;
32 tmp_tracks.push_back( tracks[ih] );
43 std::vector<T*> tmp_tracks;
45 tmp_tracks.reserve( tracks.size() );
47 for (
unsigned i=0 ;
i<tracks.size() ;
i++ ) {
48 if ( std::fabs(tracks[
i]->
pT())>=
pt ) tmp_tracks.push_back( tracks[
i] );
51 if ( tmp_tracks.size()<tracks.size() ) tracks = tmp_tracks;
57 #endif // TrigInDetAnalysisExample_TIDATools_H