CMS 3D CMS Logo

TrackToTrackingParticleAssociator.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_Associations_TrackToTrackingParticleAssociator_h
2 #define SimDataFormats_Associations_TrackToTrackingParticleAssociator_h
3 // -*- C++ -*-
4 //
5 // Package: SimDataFormats/Associations
6 // Class : TrackToTrackingParticleAssociator
7 //
16 //
17 // Original Author: Christopher Jones
18 // Created: Tue, 30 Dec 2014 20:47:00 GMT
19 //
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
26 
29 
31 
32 // forward declarations
33 
34 namespace reco {
35 
40  <edm::View<TrajectorySeed>, TrackingParticleCollection, double> >
42 
49 
51  {
52 
53  public:
54 
55 #ifndef __GCCXML__
56  TrackToTrackingParticleAssociator( std::unique_ptr<reco::TrackToTrackingParticleAssociatorBaseImpl>);
57 #endif
62 
63  // ---------- const member functions ---------------------
66  const edm::Handle<TrackingParticleCollection>& tPCH ) const {
67  return m_impl->associateRecoToSim(tCH,tPCH);
68  }
69 
72  const edm::Handle<TrackingParticleCollection>& tPCH ) const {
73  return m_impl->associateSimToReco(tCH,tPCH);
74  }
75 
79  return m_impl->associateRecoToSim(tc,tpc);
80  }
81 
85  return m_impl->associateSimToReco(tc,tpc);
86  }
87 
88  //TrajectorySeed
89  reco::RecoToSimCollectionSeed associateRecoToSim(const edm::Handle<edm::View<TrajectorySeed> >& ts,
90  const edm::Handle<TrackingParticleCollection>& tpc) const {
91  return m_impl->associateRecoToSim(ts, tpc);
92  }
93 
94  reco::SimToRecoCollectionSeed associateSimToReco(const edm::Handle<edm::View<TrajectorySeed> >& ts,
95  const edm::Handle<TrackingParticleCollection>& tpc) const {
96  return m_impl->associateSimToReco(ts,tpc);
97  }
98 
99  //TrackCandidate
101  const edm::Handle<TrackingParticleCollection>& tpc) const {
102  return m_impl->associateRecoToSim(tc,tpc);
103  }
104 
106  const edm::Handle<TrackingParticleCollection>& tpc) const {
107  return m_impl->associateSimToReco(tc,tpc);
108  }
109  private:
111 
112  const TrackToTrackingParticleAssociator& operator=(const TrackToTrackingParticleAssociator&) = delete; // stop default
113 
114  // ---------- member data --------------------------------
115  std::unique_ptr<TrackToTrackingParticleAssociatorBaseImpl> m_impl;
116  };
117 }
118 
119 #endif
std::vector< TrackingParticle > TrackingParticleCollection
reco::SimToRecoCollection associateSimToReco(const edm::RefToBaseVector< reco::Track > &tc, const edm::RefVector< TrackingParticleCollection > &tpc) const
Association Sim To Reco with Collections.
edm::AssociationMap< edm::OneToManyWithQualityGeneric< edm::View< TrajectorySeed >, TrackingParticleCollection, double > > RecoToSimCollectionSeed
std::vector< TrackCandidate > TrackCandidateCollection
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, TrackCandidateCollection, double > > SimToRecoCollectionTCandidate
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrajectorySeedCollection, TrackCandidateCollection, double > > RecoToSimCollectionTCandidate
reco::RecoToSimCollectionSeed associateRecoToSim(const edm::Handle< edm::View< TrajectorySeed > > &ts, const edm::Handle< TrackingParticleCollection > &tpc) const
std::vector< TrajectorySeed > TrajectorySeedCollection
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< TrajectorySeed >, double > > SimToRecoCollectionSeed
reco::RecoToSimCollection associateRecoToSim(const edm::Handle< edm::View< reco::Track > > &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
reco::SimToRecoCollectionTCandidate associateSimToReco(const edm::Handle< TrackCandidateCollection > &tc, const edm::Handle< TrackingParticleCollection > &tpc) const
std::unique_ptr< TrackToTrackingParticleAssociatorBaseImpl > m_impl
fixed size matrix
reco::RecoToSimCollectionTCandidate associateRecoToSim(const edm::Handle< TrackCandidateCollection > &tc, const edm::Handle< TrackingParticleCollection > &tpc) const
reco::RecoToSimCollection associateRecoToSim(const edm::RefToBaseVector< reco::Track > &tc, const edm::RefVector< TrackingParticleCollection > &tpc) const
Association Reco To Sim with Collections.
reco::SimToRecoCollectionSeed associateSimToReco(const edm::Handle< edm::View< TrajectorySeed > > &ts, const edm::Handle< TrackingParticleCollection > &tpc) const
reco::SimToRecoCollection associateSimToReco(const edm::Handle< edm::View< reco::Track > > &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
TrackToTrackingParticleAssociator & operator=(TrackToTrackingParticleAssociator &&)=default