CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ConversionTrackPairFinder.h
Go to the documentation of this file.
1 #ifndef ConversionTrackPairFinder_H
2 #define ConversionTrackPairFinder_H
3 
18 
19 //
26 
27 //
31 
35  }
36 };
37 
39  bool operator()(const std::vector<reco::TransientTrack>& a, const std::vector<reco::TransientTrack>& b) const {
40  return (a[0].impactPointState().globalMomentum().perp() > b[0].impactPointState().globalMomentum().perp());
41  }
42 };
43 
45 public:
47 
49 
50  std::map<std::vector<reco::TransientTrack>, reco::CaloClusterPtr, CompareTwoTracksVectors> run(
51  const std::vector<reco::TransientTrack>& outIn,
52  const edm::Handle<reco::TrackCollection>& outInTrkHandle,
54  const std::vector<reco::TransientTrack>& inOut,
55  const edm::Handle<reco::TrackCollection>& inOutTrkHandle,
57 
58 private:
59  class ByNumOfHits {
60  public:
62  if (a.numberOfValidHits() == b.numberOfValidHits()) {
63  return a.normalizedChi2() < b.normalizedChi2();
64  } else {
65  return a.numberOfValidHits() > b.numberOfValidHits();
66  }
67  }
68  };
69 };
70 
71 #endif // ConversionTrackPairFinder_H
unsigned short numberOfValidHits() const
number of hits found
bool operator()(const reco::TransientTrack &a, const reco::TransientTrack &b) const
T perp() const
Definition: PV3DBase.h:69
bool operator()(const std::vector< reco::TransientTrack > &a, const std::vector< reco::TransientTrack > &b) const
edm::Ptr< CaloCluster > CaloClusterPtr
bool operator()(reco::TransientTrack const &a, reco::TransientTrack const &b)
double b
Definition: hdecay.h:118
double normalizedChi2() const
chi-squared divided by n.d.o.f.
T perp() const
Magnitude of transverse component.
GlobalVector globalMomentum() const
double a
Definition: hdecay.h:119
TrajectoryStateOnSurface impactPointState() const
std::map< std::vector< reco::TransientTrack >, reco::CaloClusterPtr, CompareTwoTracksVectors > run(const std::vector< reco::TransientTrack > &outIn, const edm::Handle< reco::TrackCollection > &outInTrkHandle, const edm::Handle< reco::TrackCaloClusterPtrAssociation > &outInTrackSCAssH, const std::vector< reco::TransientTrack > &inOut, const edm::Handle< reco::TrackCollection > &inOutTrkHandle, const edm::Handle< reco::TrackCaloClusterPtrAssociation > &inOutTrackSCAssH)