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
26 
28  SimToMuonCollection &simToReco,
31  const edm::RefVector<TrackingParticleCollection> &tpColl) const {
32  impl_->associateMuons(recoToSim, simToReco, muons, type, tpColl);
33  }
35  SimToMuonCollection &simToReco,
38  const edm::Handle<TrackingParticleCollection> &tpColl) const {
39  impl_->associateMuons(recoToSim, simToReco, muons, type, tpColl);
40  }
41 
42  private:
43  std::unique_ptr<MuonToTrackingParticleAssociatorBaseImpl const> impl_;
44  };
45 } // namespace reco
46 
47 #endif
std::map< edm::RefToBase< reco::Muon >, std::vector< std::pair< TrackingParticleRef, double > >, RefToBaseSort > MuonToSimCollection
Definition: MuonTrackType.h:37
void associateMuons(MuonToSimCollection &recoToSim, SimToMuonCollection &simToReco, const edm::RefToBaseVector< reco::Muon > &muons, MuonTrackType type, const edm::RefVector< TrackingParticleCollection > &tpColl) const
MuonToTrackingParticleAssociator & operator=(MuonToTrackingParticleAssociator &&)=default
muons
the two sets of parameters below are mutually exclusive, depending if RECO or ALCARECO is used the us...
Definition: DiMuonV_cfg.py:214
std::map< TrackingParticleRef, std::vector< std::pair< edm::RefToBase< reco::Muon >, double > > > SimToMuonCollection
Definition: MuonTrackType.h:38
std::unique_ptr< MuonToTrackingParticleAssociatorBaseImpl const > impl_
void associateMuons(MuonToSimCollection &recoToSim, SimToMuonCollection &simToReco, const edm::Handle< edm::View< reco::Muon >> &muons, MuonTrackType type, const edm::Handle< TrackingParticleCollection > &tpColl) const
fixed size matrix
MuonTrackType
Definition: MuonTrackType.h:28