CMS 3D CMS Logo

LayerClusterToCaloParticleAssociator.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_Associations_LayerClusterToCaloParticleAssociator_h
2 #define SimDataFormats_Associations_LayerClusterToCaloParticleAssociator_h
3 // Original Author: Marco Rovere
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  LayerClusterToCaloParticleAssociator(std::unique_ptr<hgcal::LayerClusterToCaloParticleAssociatorBaseImpl>);
24  delete; // stop default
25 
27 
28  // ---------- const member functions ---------------------
31  const edm::Handle<CaloParticleCollection> &cPCH) const {
32  return m_impl->associateRecoToSim(cCCH, cPCH);
33  };
34 
37  const edm::Handle<CaloParticleCollection> &cPCH) const {
38  return m_impl->associateSimToReco(cCCH, cPCH);
39  }
40 
41  private:
42  // ---------- member data --------------------------------
43  std::unique_ptr<LayerClusterToCaloParticleAssociatorBaseImpl> m_impl;
44  };
45 } // namespace hgcal
46 
47 #endif
hgcal::SimToRecoCollection associateSimToReco(const edm::Handle< reco::CaloClusterCollection > &cCCH, const edm::Handle< CaloParticleCollection > &cPCH) const
Associate a CaloParticle to LayerClusters.
std::unique_ptr< LayerClusterToCaloParticleAssociatorBaseImpl > m_impl
LayerClusterToCaloParticleAssociator & operator=(LayerClusterToCaloParticleAssociator &&)=default
hgcal::RecoToSimCollection associateRecoToSim(const edm::Handle< reco::CaloClusterCollection > &cCCH, const edm::Handle< CaloParticleCollection > &cPCH) const
Associate a LayerCluster to CaloParticles.