CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions
TransientTrackInGroupOfTracks Class Reference

#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)
 

Detailed Description

Definition at line 9 of file TransientTrackInGroupOfTracks.h.

Constructor & Destructor Documentation

TransientTrackInGroupOfTracks::TransientTrackInGroupOfTracks ( )
inline

Definition at line 13 of file TransientTrackInGroupOfTracks.h.

13 {}
TransientTrackInGroupOfTracks::~TransientTrackInGroupOfTracks ( )
inline

Definition at line 15 of file TransientTrackInGroupOfTracks.h.

15 {}

Member Function Documentation

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

Definition at line 17 of file TransientTrackInGroupOfTracks.h.

Referenced by TransientTrackInVertices::isInVertex().

18  {
19  bool trackFound = false;
20  for( std::vector<reco::TransientTrack>::const_iterator itT = groupOfTracks.begin() ;
21  itT != groupOfTracks.end() ; itT++ ) {
22  //if ( aTrack.sameAddress(*itT) ) trackFound = true ;
23  //std::cout<<"a,b: "<<(aTrack.impactPointState().signedInverseMomentum())<<","<<((*itT).impactPointState().signedInverseMomentum())<<std::endl;
24  if (aTrack == *itT) {
25  trackFound = true;
26  // std::cout<<"found!\n";
27  }
28  // else std::cout<<"not found!\n";
29  }
30  // if(!trackFound) std::cout<<"NOT FOUND!\n";
31  return trackFound ;
32  }