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
60 
61  // ---------- const member functions ---------------------
64  const edm::Handle<TrackingParticleCollection>& tPCH ) const {
65  return m_impl->associateRecoToSim(tCH,tPCH);
66  }
67 
70  const edm::Handle<TrackingParticleCollection>& tPCH ) const {
71  return m_impl->associateSimToReco(tCH,tPCH);
72  }
73 
77  return m_impl->associateRecoToSim(tc,tpc);
78  }
79 
83  return m_impl->associateSimToReco(tc,tpc);
84  }
85 
86  //TrajectorySeed
87  reco::RecoToSimCollectionSeed associateRecoToSim(const edm::Handle<edm::View<TrajectorySeed> >& ts,
88  const edm::Handle<TrackingParticleCollection>& tpc) const {
89  return m_impl->associateRecoToSim(ts, tpc);
90  }
91 
92  reco::SimToRecoCollectionSeed associateSimToReco(const edm::Handle<edm::View<TrajectorySeed> >& ts,
93  const edm::Handle<TrackingParticleCollection>& tpc) const {
94  return m_impl->associateSimToReco(ts,tpc);
95  }
96 
97  //TrackCandidate
99  const edm::Handle<TrackingParticleCollection>& tpc) const {
100  return m_impl->associateRecoToSim(tc,tpc);
101  }
102 
104  const edm::Handle<TrackingParticleCollection>& tpc) const {
105  return m_impl->associateSimToReco(tc,tpc);
106  }
107 
109  std::swap(m_impl, iOther.m_impl);
110  }
111  private:
113 
114  const TrackToTrackingParticleAssociator& operator=(const TrackToTrackingParticleAssociator&) = delete; // stop default
115 
116  // ---------- member data --------------------------------
118  };
119 }
120 
121 #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
virtual 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
TrackToTrackingParticleAssociatorBaseImpl * m_impl
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
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< TrajectorySeed >, double > > SimToRecoCollectionSeed
const TrackToTrackingParticleAssociator & operator=(const TrackToTrackingParticleAssociator &)=delete
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
virtual 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
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
void swap(TrackToTrackingParticleAssociator &iOther)