CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions

TransientTrackInGroupOfTracks Class Reference

#include <TransientTrackInGroupOfTracks.h>

List of all members.

Public Member Functions

 TransientTrackInGroupOfTracks ()
 ~TransientTrackInGroupOfTracks ()

Static Public Member Functions

static bool isInGroup (const reco::TransientTrack &aTrack, const std::vector< reco::TransientTrack > groupOfTracks)

Detailed Description

Definition at line 9 of file TransientTrackInGroupOfTracks.h.


Constructor & Destructor Documentation

TransientTrackInGroupOfTracks::TransientTrackInGroupOfTracks ( ) [inline]

Definition at line 13 of file TransientTrackInGroupOfTracks.h.

{}
TransientTrackInGroupOfTracks::~TransientTrackInGroupOfTracks ( ) [inline]

Definition at line 15 of file TransientTrackInGroupOfTracks.h.

{}

Member Function Documentation

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 ;
  }