#include <TransientTrackInGroupOfTracks.h>
Public Member Functions | |
TransientTrackInGroupOfTracks () | |
~TransientTrackInGroupOfTracks () | |
Static Public Member Functions | |
static bool | isInGroup (const reco::TransientTrack &aTrack, const std::vector< reco::TransientTrack > groupOfTracks) |
Definition at line 9 of file TransientTrackInGroupOfTracks.h.
TransientTrackInGroupOfTracks::TransientTrackInGroupOfTracks | ( | ) | [inline] |
Definition at line 13 of file TransientTrackInGroupOfTracks.h.
{}
TransientTrackInGroupOfTracks::~TransientTrackInGroupOfTracks | ( | ) | [inline] |
Definition at line 15 of file TransientTrackInGroupOfTracks.h.
{}
static bool TransientTrackInGroupOfTracks::isInGroup | ( | const reco::TransientTrack & | aTrack, |
const std::vector< reco::TransientTrack > | groupOfTracks | ||
) | [inline, static] |
Definition at line 17 of file TransientTrackInGroupOfTracks.h.
Referenced by TransientTrackInVertices::isInVertex().
{ bool trackFound = false; for( std::vector<reco::TransientTrack>::const_iterator itT = groupOfTracks.begin() ; itT != groupOfTracks.end() ; itT++ ) { //if ( aTrack.sameAddress(*itT) ) trackFound = true ; //std::cout<<"a,b: "<<(aTrack.impactPointState().signedInverseMomentum())<<","<<((*itT).impactPointState().signedInverseMomentum())<<std::endl; if (aTrack == *itT) { trackFound = true; // std::cout<<"found!\n"; } // else std::cout<<"not found!\n"; } // if(!trackFound) std::cout<<"NOT FOUND!\n"; return trackFound ; }