CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::TrackToGenParticleAssociator Class Reference

#include <TrackToGenParticleAssociator.h>

Public Member Functions

reco::GenToRecoCollection associateGenToReco (const edm::RefToBaseVector< reco::Track > &tracks, const edm::RefVector< reco::GenParticleCollection > &gens) const
 Association Sim To Reco with Collections (Gen Particle version) More...
 
reco::GenToRecoCollection associateGenToReco (const edm::Handle< edm::View< reco::Track >> &tCH, const edm::Handle< reco::GenParticleCollection > &tPCH) const
 compare reco to sim the handle of reco::Track and GenParticle collections More...
 
reco::RecoToGenCollection associateRecoToGen (const edm::RefToBaseVector< reco::Track > &tracks, const edm::RefVector< reco::GenParticleCollection > &gens) const
 Association Sim To Reco with Collections (Gen Particle version) More...
 
reco::RecoToGenCollection associateRecoToGen (const edm::Handle< edm::View< reco::Track >> &tCH, const edm::Handle< reco::GenParticleCollection > &tPCH) const
 compare reco to sim the handle of reco::Track and GenParticle collections More...
 
TrackToGenParticleAssociatoroperator= (TrackToGenParticleAssociator &&)=default
 
const TrackToGenParticleAssociatoroperator= (const TrackToGenParticleAssociator &)=delete
 
 TrackToGenParticleAssociator ()=default
 Constructor. More...
 
 TrackToGenParticleAssociator (std::unique_ptr< reco::TrackToGenParticleAssociatorBaseImpl >)
 
 TrackToGenParticleAssociator (TrackToGenParticleAssociator &&)=default
 
 TrackToGenParticleAssociator (const TrackToGenParticleAssociator &)=delete
 
 ~TrackToGenParticleAssociator ()=default
 

Private Attributes

std::unique_ptr< TrackToGenParticleAssociatorBaseImplm_impl
 

Detailed Description

Definition at line 34 of file TrackToGenParticleAssociator.h.

Constructor & Destructor Documentation

◆ TrackToGenParticleAssociator() [1/4]

reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( )
default

Constructor.

◆ TrackToGenParticleAssociator() [2/4]

TrackToGenParticleAssociator::TrackToGenParticleAssociator ( std::unique_ptr< reco::TrackToGenParticleAssociatorBaseImpl impl)

Definition at line 29 of file TrackToGenParticleAssociator.cc.

31  : m_impl(std::move(impl)) {}
std::unique_ptr< TrackToGenParticleAssociatorBaseImpl > m_impl
def move(src, dest)
Definition: eostools.py:511

◆ ~TrackToGenParticleAssociator()

reco::TrackToGenParticleAssociator::~TrackToGenParticleAssociator ( )
default

◆ TrackToGenParticleAssociator() [3/4]

reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( TrackToGenParticleAssociator &&  )
default

◆ TrackToGenParticleAssociator() [4/4]

reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( const TrackToGenParticleAssociator )
delete

Member Function Documentation

◆ associateGenToReco() [1/2]

reco::GenToRecoCollection reco::TrackToGenParticleAssociator::associateGenToReco ( const edm::RefToBaseVector< reco::Track > &  tracks,
const edm::RefVector< reco::GenParticleCollection > &  gens 
) const
inline

Association Sim To Reco with Collections (Gen Particle version)

Definition at line 53 of file TrackToGenParticleAssociator.h.

References m_impl, and pwdgSkimBPark_cfi::tracks.

Referenced by MultiTrackValidatorGenPs::dqmAnalyze().

54  {
55  return m_impl->associateGenToReco(tracks, gens);
56  }
std::unique_ptr< TrackToGenParticleAssociatorBaseImpl > m_impl

◆ associateGenToReco() [2/2]

reco::GenToRecoCollection reco::TrackToGenParticleAssociator::associateGenToReco ( const edm::Handle< edm::View< reco::Track >> &  tCH,
const edm::Handle< reco::GenParticleCollection > &  tPCH 
) const
inline

compare reco to sim the handle of reco::Track and GenParticle collections

Definition at line 65 of file TrackToGenParticleAssociator.h.

References m_impl.

66  {
67  return m_impl->associateGenToReco(tCH, tPCH);
68  }
std::unique_ptr< TrackToGenParticleAssociatorBaseImpl > m_impl

◆ associateRecoToGen() [1/2]

reco::RecoToGenCollection reco::TrackToGenParticleAssociator::associateRecoToGen ( const edm::RefToBaseVector< reco::Track > &  tracks,
const edm::RefVector< reco::GenParticleCollection > &  gens 
) const
inline

Association Sim To Reco with Collections (Gen Particle version)

Definition at line 48 of file TrackToGenParticleAssociator.h.

References m_impl, and pwdgSkimBPark_cfi::tracks.

Referenced by MultiTrackValidatorGenPs::dqmAnalyze().

49  {
50  return m_impl->associateRecoToGen(tracks, gens);
51  }
std::unique_ptr< TrackToGenParticleAssociatorBaseImpl > m_impl

◆ associateRecoToGen() [2/2]

reco::RecoToGenCollection reco::TrackToGenParticleAssociator::associateRecoToGen ( const edm::Handle< edm::View< reco::Track >> &  tCH,
const edm::Handle< reco::GenParticleCollection > &  tPCH 
) const
inline

compare reco to sim the handle of reco::Track and GenParticle collections

Definition at line 59 of file TrackToGenParticleAssociator.h.

References m_impl.

60  {
61  return m_impl->associateRecoToGen(tCH, tPCH);
62  }
std::unique_ptr< TrackToGenParticleAssociatorBaseImpl > m_impl

◆ operator=() [1/2]

TrackToGenParticleAssociator& reco::TrackToGenParticleAssociator::operator= ( TrackToGenParticleAssociator &&  )
default

◆ operator=() [2/2]

const TrackToGenParticleAssociator& reco::TrackToGenParticleAssociator::operator= ( const TrackToGenParticleAssociator )
delete

Member Data Documentation

◆ m_impl

std::unique_ptr<TrackToGenParticleAssociatorBaseImpl> reco::TrackToGenParticleAssociator::m_impl
private

Definition at line 71 of file TrackToGenParticleAssociator.h.

Referenced by associateGenToReco(), and associateRecoToGen().