CMS 3D CMS Logo

TracksterToSimClusterAssociator.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_Associations_TracksterToSimClusterAssociator_h
2 #define SimDataFormats_Associations_TracksterToSimClusterAssociator_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  TracksterToSimClusterAssociator(std::unique_ptr<hgcal::TracksterToSimClusterAssociatorBaseImpl>);
23 
24  // ---------- const member functions ---------------------
28  const edm::Handle<SimClusterCollection> &sCCH) const {
29  return m_impl->associateRecoToSim(tCH, lCCH, sCCH);
30  };
31 
35  const edm::Handle<SimClusterCollection> &sCCH) const {
36  return m_impl->associateSimToReco(tCH, lCCH, sCCH);
37  }
38 
39  private:
40  TracksterToSimClusterAssociator(const TracksterToSimClusterAssociator &) = delete; // stop default
41 
42  const TracksterToSimClusterAssociator &operator=(const TracksterToSimClusterAssociator &) = delete; // stop default
43 
44  // ---------- member data --------------------------------
45  std::unique_ptr<TracksterToSimClusterAssociatorBaseImpl> m_impl;
46  };
47 } // namespace hgcal
48 
49 #endif
hgcal::TracksterToSimClusterAssociator::associateSimToReco
hgcal::SimToRecoCollectionTracksters associateSimToReco(const edm::Handle< ticl::TracksterCollection > &tCH, const edm::Handle< reco::CaloClusterCollection > &lCCH, const edm::Handle< SimClusterCollection > &sCCH) const
Associate a SimCluster to Tracksters.
Definition: TracksterToSimClusterAssociator.h:33
edm::Handle
Definition: AssociativeIterator.h:50
hgcal
Definition: EgammaPCAHelper.h:31
hgcal::TracksterToSimClusterAssociator
Definition: TracksterToSimClusterAssociator.h:16
hgcal::TracksterToSimClusterAssociator::~TracksterToSimClusterAssociator
~TracksterToSimClusterAssociator()=default
edm::AssociationMap
Definition: AssociationMap.h:48
hgcal::TracksterToSimClusterAssociator::associateRecoToSim
hgcal::RecoToSimCollectionTracksters associateRecoToSim(const edm::Handle< ticl::TracksterCollection > &tCH, const edm::Handle< reco::CaloClusterCollection > &lCCH, const edm::Handle< SimClusterCollection > &sCCH) const
Associate a Trackster to SimClusters.
Definition: TracksterToSimClusterAssociator.h:26
hgcal::TracksterToSimClusterAssociator::m_impl
std::unique_ptr< TracksterToSimClusterAssociatorBaseImpl > m_impl
Definition: TracksterToSimClusterAssociator.h:45
TracksterToSimClusterAssociatorBaseImpl.h
hgcal::TracksterToSimClusterAssociator::TracksterToSimClusterAssociator
TracksterToSimClusterAssociator()=default
hgcal::TracksterToSimClusterAssociator::operator=
TracksterToSimClusterAssociator & operator=(TracksterToSimClusterAssociator &&)=default