CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
17  public:
18 
21 #ifndef __GCCXML__
22  MuonToTrackingParticleAssociator(std::unique_ptr<MuonToTrackingParticleAssociatorBaseImpl>);
23 #endif
24 
27  const edm::RefVector<TrackingParticleCollection>& tpColl) const {
28  impl_->associateMuons(recoToSim, simToReco, muons, type, tpColl);
29  }
32  const edm::Handle<TrackingParticleCollection>& tpColl) const {
33  impl_->associateMuons(recoToSim, simToReco, muons, type, tpColl);
34  }
35 
37  std::swap(impl_, iOther.impl_);
38  }
39 
40  private:
43 
45  };
46 }
47 
48 #endif
type
Definition: HCALResponse.h:21
std::map< edm::RefToBase< reco::Muon >, std::vector< std::pair< TrackingParticleRef, double > >, RefToBaseSort > MuonToSimCollection
Definition: MuonTrackType.h:34
virtual void associateMuons(MuonToSimCollection &recoToSim, SimToMuonCollection &simToReco, const edm::RefToBaseVector< reco::Muon > &muons, MuonTrackType type, const edm::RefVector< TrackingParticleCollection > &tpColl) const =0
void associateMuons(MuonToSimCollection &recoToSim, SimToMuonCollection &simToReco, const edm::Handle< edm::View< reco::Muon > > &muons, MuonTrackType type, const edm::Handle< TrackingParticleCollection > &tpColl) const
std::map< TrackingParticleRef, std::vector< std::pair< edm::RefToBase< reco::Muon >, double > > > SimToMuonCollection
Definition: MuonTrackType.h:35
void swap(MuonToTrackingParticleAssociator &iOther)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
void associateMuons(MuonToSimCollection &recoToSim, SimToMuonCollection &simToReco, const edm::RefToBaseVector< reco::Muon > &muons, MuonTrackType type, const edm::RefVector< TrackingParticleCollection > &tpColl) const
MuonToTrackingParticleAssociatorBaseImpl const * impl_
MuonToTrackingParticleAssociator & operator=(const MuonToTrackingParticleAssociator &)
tuple muons
Definition: patZpeak.py:38
MuonTrackType
Definition: MuonTrackType.h:27