File indexing completed on 2024-05-29 23:13:10
0001 #ifndef SimDataFormats_Associations_LayerClusterToSimClusterAssociator_h
0002 #define SimDataFormats_Associations_LayerClusterToSimClusterAssociator_h
0003
0004
0005
0006 #include <memory>
0007
0008
0009
0010 #include "SimDataFormats/Associations/interface/LayerClusterToSimClusterAssociatorBaseImpl.h"
0011
0012
0013
0014 namespace ticl {
0015
0016 class LayerClusterToSimClusterAssociator {
0017 public:
0018 LayerClusterToSimClusterAssociator(std::unique_ptr<ticl::LayerClusterToSimClusterAssociatorBaseImpl>);
0019 LayerClusterToSimClusterAssociator() = default;
0020 LayerClusterToSimClusterAssociator(LayerClusterToSimClusterAssociator &&) = default;
0021 LayerClusterToSimClusterAssociator &operator=(LayerClusterToSimClusterAssociator &&) = default;
0022 LayerClusterToSimClusterAssociator(const LayerClusterToSimClusterAssociator &) = delete;
0023
0024 ~LayerClusterToSimClusterAssociator() = default;
0025 const LayerClusterToSimClusterAssociator &operator=(const LayerClusterToSimClusterAssociator &) =
0026 delete;
0027
0028
0029 ticl::RecoToSimCollectionWithSimClusters associateRecoToSim(const edm::Handle<reco::CaloClusterCollection> &cCCH,
0030 const edm::Handle<SimClusterCollection> &sCCH) const {
0031 return m_impl->associateRecoToSim(cCCH, sCCH);
0032 };
0033
0034
0035 ticl::SimToRecoCollectionWithSimClusters associateSimToReco(const edm::Handle<reco::CaloClusterCollection> &cCCH,
0036 const edm::Handle<SimClusterCollection> &sCCH) const {
0037 return m_impl->associateSimToReco(cCCH, sCCH);
0038 }
0039
0040 private:
0041
0042 std::unique_ptr<LayerClusterToSimClusterAssociatorBaseImpl> m_impl;
0043 };
0044 }
0045
0046 #endif