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 //
17 //
18 // Original Author: Christopher Jones
19 // Created: Tue, 30 Dec 2014 20:47:00 GMT
20 //
21 
22 // system include files
23 #include <memory>
24 
25 // user include files
27 
30 
32 
33 // forward declarations
34 
35 namespace reco {
37  public:
38 #ifndef __GCCXML__
39  TrackToTrackingParticleAssociator(std::unique_ptr<reco::TrackToTrackingParticleAssociatorBaseImpl>);
40 #endif
46  delete; // stop default
47 
49 
50  // ---------- const member functions ---------------------
54  const edm::Handle<TrackingParticleCollection> &tPCH) const {
55  return m_impl->associateRecoToSim(tCH, tPCH);
56  }
57 
61  const edm::Handle<TrackingParticleCollection> &tPCH) const {
62  return m_impl->associateSimToReco(tCH, tPCH);
63  }
64 
68  return m_impl->associateRecoToSim(tc, tpc);
69  }
70 
74  return m_impl->associateSimToReco(tc, tpc);
75  }
76 
77  // TrajectorySeed
79  const edm::Handle<TrackingParticleCollection> &tpc) const {
80  return m_impl->associateRecoToSim(ts, tpc);
81  }
82 
84  const edm::Handle<TrackingParticleCollection> &tpc) const {
85  return m_impl->associateSimToReco(ts, tpc);
86  }
87 
88  // TrackCandidate
91  return m_impl->associateRecoToSim(tc, tpc);
92  }
93 
96  return m_impl->associateSimToReco(tc, tpc);
97  }
98 
99  private:
100  // ---------- member data --------------------------------
101  std::unique_ptr<TrackToTrackingParticleAssociatorBaseImpl> m_impl;
102  };
103 } // namespace reco
104 
105 #endif
reco::SimToRecoCollection associateSimToReco(const edm::Handle< edm::View< reco::Track >> &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const
reco::RecoToSimCollection associateRecoToSim(const edm::Handle< edm::View< reco::Track >> &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const
reco::SimToRecoCollection associateSimToReco(const edm::RefToBaseVector< reco::Track > &tc, const edm::RefVector< TrackingParticleCollection > &tpc) const
Association Sim To Reco with Collections.
reco::RecoToSimCollectionSeed associateRecoToSim(const edm::Handle< edm::View< TrajectorySeed >> &ts, const edm::Handle< TrackingParticleCollection > &tpc) const
reco::SimToRecoCollectionSeed associateSimToReco(const edm::Handle< edm::View< TrajectorySeed >> &ts, 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::SimToRecoCollectionTCandidate associateSimToReco(const edm::Handle< TrackCandidateCollection > &tc, const edm::RefVector< TrackingParticleCollection > &tpc) const
std::unique_ptr< TrackToTrackingParticleAssociatorBaseImpl > m_impl
fixed size matrix
reco::RecoToSimCollectionTCandidate associateRecoToSim(const edm::Handle< TrackCandidateCollection > &tc, const edm::RefVector< TrackingParticleCollection > &tpc) const
TrackToTrackingParticleAssociator & operator=(TrackToTrackingParticleAssociator &&)=default