CMS 3D CMS Logo

MuonToTrackingParticleAssociator.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_Associations_MuonToTrackingParticleAssociator_h
2 #define SimDataFormats_Associations_MuonToTrackingParticleAssociator_h
3 
11 
12 #include <memory>
13 
14 namespace reco {
16  public:
19 #ifndef __GCCXML__
20  MuonToTrackingParticleAssociator(std::unique_ptr<MuonToTrackingParticleAssociatorBaseImpl>);
21 #endif
24 
26  SimToMuonCollection &simToReco,
29  const edm::RefVector<TrackingParticleCollection> &tpColl) const {
30  impl_->associateMuons(recoToSim, simToReco, muons, type, tpColl);
31  }
33  SimToMuonCollection &simToReco,
36  const edm::Handle<TrackingParticleCollection> &tpColl) const {
37  impl_->associateMuons(recoToSim, simToReco, muons, type, tpColl);
38  }
39 
40  private:
43 
44  std::unique_ptr<MuonToTrackingParticleAssociatorBaseImpl const> impl_;
45  };
46 } // namespace reco
47 
48 #endif
PDWG_BPHSkim_cff.muons
muons
Definition: PDWG_BPHSkim_cff.py:47
reco::MuonToTrackingParticleAssociator::MuonToTrackingParticleAssociator
MuonToTrackingParticleAssociator()=default
Handle.h
Muon.h
reco::MuonToTrackingParticleAssociator
Definition: MuonToTrackingParticleAssociator.h:15
reco::MuonToSimCollection
std::map< edm::RefToBase< reco::Muon >, std::vector< std::pair< TrackingParticleRef, double > >, RefToBaseSort > MuonToSimCollection
Definition: MuonTrackType.h:37
reco::MuonToTrackingParticleAssociator::operator=
MuonToTrackingParticleAssociator & operator=(MuonToTrackingParticleAssociator &&)=default
edm::RefVector< TrackingParticleCollection >
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
edm::Handle
Definition: AssociativeIterator.h:50
reco::MuonToTrackingParticleAssociator::~MuonToTrackingParticleAssociator
~MuonToTrackingParticleAssociator()=default
TrackingRecHit.h
reco::SimToMuonCollection
std::map< TrackingParticleRef, std::vector< std::pair< edm::RefToBase< reco::Muon >, double > > > SimToMuonCollection
Definition: MuonTrackType.h:38
edm::View
Definition: CaloClusterFwd.h:14
MuonTrackType.h
reco::MuonToTrackingParticleAssociator::impl_
std::unique_ptr< MuonToTrackingParticleAssociatorBaseImpl const > impl_
Definition: MuonToTrackingParticleAssociator.h:44
edm::RefToBaseVector
Definition: EDProductfwd.h:29
TrackingParticle.h
type
type
Definition: HCALResponse.h:21
Ref.h
reco::MuonToTrackingParticleAssociator::associateMuons
void associateMuons(MuonToSimCollection &recoToSim, SimToMuonCollection &simToReco, const edm::RefToBaseVector< reco::Muon > &muons, MuonTrackType type, const edm::RefVector< TrackingParticleCollection > &tpColl) const
Definition: MuonToTrackingParticleAssociator.h:25
reco::MuonToTrackingParticleAssociator::associateMuons
void associateMuons(MuonToSimCollection &recoToSim, SimToMuonCollection &simToReco, const edm::Handle< edm::View< reco::Muon >> &muons, MuonTrackType type, const edm::Handle< TrackingParticleCollection > &tpColl) const
Definition: MuonToTrackingParticleAssociator.h:32
MuonToTrackingParticleAssociatorBaseImpl.h
reco::MuonTrackType
MuonTrackType
Definition: MuonTrackType.h:28