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 {
36 
37  typedef edm::AssociationMap<
40  typedef edm::AssociationMap<
43 
44  typedef edm::AssociationMap<
47  typedef edm::AssociationMap<
50 
52  public:
53 #ifndef __GCCXML__
54  TrackToTrackingParticleAssociator(std::unique_ptr<reco::TrackToTrackingParticleAssociatorBaseImpl>);
55 #endif
60 
61  // ---------- const member functions ---------------------
65  const edm::Handle<TrackingParticleCollection> &tPCH) const {
66  return m_impl->associateRecoToSim(tCH, tPCH);
67  }
68 
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
90  const edm::Handle<TrackingParticleCollection> &tpc) const {
91  return m_impl->associateRecoToSim(ts, tpc);
92  }
93 
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 
110  private:
112 
114  delete; // stop default
115 
116  // ---------- member data --------------------------------
117  std::unique_ptr<TrackToTrackingParticleAssociatorBaseImpl> m_impl;
118  };
119 } // namespace reco
120 
121 #endif
TrackToTrackingParticleAssociatorBaseImpl.h
TrackCandidateCollection.h
reco::TrackToTrackingParticleAssociator::operator=
TrackToTrackingParticleAssociator & operator=(TrackToTrackingParticleAssociator &&)=default
reco::TrackToTrackingParticleAssociator::associateRecoToSim
reco::RecoToSimCollection associateRecoToSim(const edm::Handle< edm::View< reco::Track >> &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const
Definition: TrackToTrackingParticleAssociator.h:64
reco::TrackToTrackingParticleAssociator
Definition: TrackToTrackingParticleAssociator.h:51
TrackAssociation.h
reco::TrackToTrackingParticleAssociator::associateSimToReco
reco::SimToRecoCollection associateSimToReco(const edm::RefToBaseVector< reco::Track > &tc, const edm::RefVector< TrackingParticleCollection > &tpc) const
Association Sim To Reco with Collections.
Definition: TrackToTrackingParticleAssociator.h:83
edm::RefVector< TrackingParticleCollection >
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
reco::TrackToTrackingParticleAssociator::~TrackToTrackingParticleAssociator
~TrackToTrackingParticleAssociator()=default
edm::Handle
Definition: AssociativeIterator.h:50
reco::TrackToTrackingParticleAssociator::associateRecoToSim
reco::RecoToSimCollectionSeed associateRecoToSim(const edm::Handle< edm::View< TrajectorySeed >> &ts, const edm::Handle< TrackingParticleCollection > &tpc) const
Definition: TrackToTrackingParticleAssociator.h:89
reco::TrackToTrackingParticleAssociator::associateSimToReco
reco::SimToRecoCollectionSeed associateSimToReco(const edm::Handle< edm::View< TrajectorySeed >> &ts, const edm::Handle< TrackingParticleCollection > &tpc) const
Definition: TrackToTrackingParticleAssociator.h:94
reco::SimToRecoCollectionSeed
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, edm::View< TrajectorySeed >, double > > SimToRecoCollectionSeed
Definition: TrackToTrackingParticleAssociator.h:39
reco::RecoToSimCollectionSeed
edm::AssociationMap< edm::OneToManyWithQualityGeneric< edm::View< TrajectorySeed >, TrackingParticleCollection, double > > RecoToSimCollectionSeed
Definition: TrackToTrackingParticleAssociator.h:42
reco::RecoToSimCollectionTCandidate
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrajectorySeedCollection, TrackCandidateCollection, double > > RecoToSimCollectionTCandidate
Definition: TrackToTrackingParticleAssociator.h:49
edm::View
Definition: CaloClusterFwd.h:14
edm::AssociationMap
Definition: AssociationMap.h:48
edm::RefToBaseVector< reco::Track >
TrajectorySeedCollection.h
edm::OneToManyWithQualityGeneric
Definition: OneToManyWithQualityGeneric.h:21
reco::TrackToTrackingParticleAssociator::associateRecoToSim
reco::RecoToSimCollectionTCandidate associateRecoToSim(const edm::Handle< TrackCandidateCollection > &tc, const edm::Handle< TrackingParticleCollection > &tpc) const
Definition: TrackToTrackingParticleAssociator.h:100
reco::TrackToTrackingParticleAssociator::associateRecoToSim
reco::RecoToSimCollection associateRecoToSim(const edm::RefToBaseVector< reco::Track > &tc, const edm::RefVector< TrackingParticleCollection > &tpc) const
Association Reco To Sim with Collections.
Definition: TrackToTrackingParticleAssociator.h:77
TrackingParticleCollection
std::vector< TrackingParticle > TrackingParticleCollection
Definition: TrackingParticleFwd.h:9
reco::TrackToTrackingParticleAssociator::m_impl
std::unique_ptr< TrackToTrackingParticleAssociatorBaseImpl > m_impl
Definition: TrackToTrackingParticleAssociator.h:117
reco::TrackToTrackingParticleAssociator::associateSimToReco
reco::SimToRecoCollection associateSimToReco(const edm::Handle< edm::View< reco::Track >> &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const
Definition: TrackToTrackingParticleAssociator.h:71
reco::SimToRecoCollectionTCandidate
edm::AssociationMap< edm::OneToManyWithQualityGeneric< TrackingParticleCollection, TrackCandidateCollection, double > > SimToRecoCollectionTCandidate
Definition: TrackToTrackingParticleAssociator.h:46
reco::TrackToTrackingParticleAssociator::associateSimToReco
reco::SimToRecoCollectionTCandidate associateSimToReco(const edm::Handle< TrackCandidateCollection > &tc, const edm::Handle< TrackingParticleCollection > &tpc) const
Definition: TrackToTrackingParticleAssociator.h:105
reco::TrackToTrackingParticleAssociator::TrackToTrackingParticleAssociator
TrackToTrackingParticleAssociator()=default