CMS 3D CMS Logo

ConversionTrackPairFinder.h
Go to the documentation of this file.
1 #ifndef ConversionTrackPairFinder_H
2 #define ConversionTrackPairFinder_H
3 
18 
19 //
26 
27 //
31 
34  return a.impactPointState().globalMomentum().perp() > b.impactPointState().globalMomentum().perp();
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
bool operator()(const reco::TransientTrack &a, const reco::TransientTrack &b) const
edm::Ptr< CaloCluster > CaloClusterPtr
bool operator()(reco::TransientTrack const &a, reco::TransientTrack const &b)
T perp() const
Magnitude of transverse component.
bool operator()(const std::vector< reco::TransientTrack > &a, const std::vector< reco::TransientTrack > &b) const
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
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)