CMS 3D CMS Logo

MultiClusterToCaloParticleAssociator.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_Associations_MultiClusterToCaloParticleAssociator_h
2 #define SimDataFormats_Associations_MultiClusterToCaloParticleAssociator_h
3 // Original Author: Leonardo Cristella
4 
5 // system include files
6 #include <memory>
7 
8 // user include files
9 
11 
12 // forward declarations
13 
14 namespace hgcal {
15 
17  public:
18  MultiClusterToCaloParticleAssociator(std::unique_ptr<hgcal::MultiClusterToCaloParticleAssociatorBaseImpl>);
23 
24  // ---------- const member functions ---------------------
28  const edm::Handle<CaloParticleCollection> &cPCH) const {
29  return m_impl->associateRecoToSim(cCCH, cPCH);
30  };
31 
35  const edm::Handle<CaloParticleCollection> &cPCH) const {
36  return m_impl->associateSimToReco(cCCH, cPCH);
37  }
38 
39  private:
41 
43  delete; // stop default
44 
45  // ---------- member data --------------------------------
46  std::unique_ptr<MultiClusterToCaloParticleAssociatorBaseImpl> m_impl;
47  };
48 } // namespace hgcal
49 
50 #endif
hgcal::MultiClusterToCaloParticleAssociator::m_impl
std::unique_ptr< MultiClusterToCaloParticleAssociatorBaseImpl > m_impl
Definition: MultiClusterToCaloParticleAssociator.h:46
edm::Handle
Definition: AssociativeIterator.h:50
hgcal::MultiClusterToCaloParticleAssociator::operator=
MultiClusterToCaloParticleAssociator & operator=(MultiClusterToCaloParticleAssociator &&)=default
hgcal::MultiClusterToCaloParticleAssociator
Definition: MultiClusterToCaloParticleAssociator.h:16
hgcal
Definition: EgammaPCAHelper.h:31
MultiClusterToCaloParticleAssociatorBaseImpl.h
edm::AssociationMap
Definition: AssociationMap.h:48
hgcal::MultiClusterToCaloParticleAssociator::~MultiClusterToCaloParticleAssociator
~MultiClusterToCaloParticleAssociator()=default
hgcal::MultiClusterToCaloParticleAssociator::MultiClusterToCaloParticleAssociator
MultiClusterToCaloParticleAssociator()=default
hgcal::MultiClusterToCaloParticleAssociator::associateSimToReco
hgcal::SimToRecoCollectionWithMultiClusters associateSimToReco(const edm::Handle< reco::HGCalMultiClusterCollection > &cCCH, const edm::Handle< CaloParticleCollection > &cPCH) const
Associate a CaloParticle to MultiClusters.
Definition: MultiClusterToCaloParticleAssociator.h:33
hgcal::MultiClusterToCaloParticleAssociator::associateRecoToSim
hgcal::RecoToSimCollectionWithMultiClusters associateRecoToSim(const edm::Handle< reco::HGCalMultiClusterCollection > &cCCH, const edm::Handle< CaloParticleCollection > &cPCH) const
Associate a MultiCluster to CaloParticles.
Definition: MultiClusterToCaloParticleAssociator.h:26