Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:39

0001 #ifndef SimDataFormats_Associations_TracksterToSimTracksterHitLCAssociator_h
0002 #define SimDataFormats_Associations_TracksterToSimTracksterHitLCAssociator_h
0003 // Original Author:  Leonardo Cristella
0004 
0005 // system include files
0006 #include <memory>
0007 
0008 // user include files
0009 
0010 #include "SimDataFormats/Associations/interface/TracksterToSimTracksterHitLCAssociatorBaseImpl.h"
0011 
0012 namespace hgcal {
0013 
0014   class TracksterToSimTracksterHitLCAssociator {
0015   public:
0016     TracksterToSimTracksterHitLCAssociator(std::unique_ptr<hgcal::TracksterToSimTracksterHitLCAssociatorBaseImpl>);
0017     TracksterToSimTracksterHitLCAssociator() = default;
0018     TracksterToSimTracksterHitLCAssociator(TracksterToSimTracksterHitLCAssociator &&) = default;
0019     TracksterToSimTracksterHitLCAssociator &operator=(TracksterToSimTracksterHitLCAssociator &&) = default;
0020     TracksterToSimTracksterHitLCAssociator(const TracksterToSimTracksterHitLCAssociator &) = delete;
0021     const TracksterToSimTracksterHitLCAssociator &operator=(const TracksterToSimTracksterHitLCAssociator &) = delete;
0022 
0023     ~TracksterToSimTracksterHitLCAssociator() = default;
0024 
0025     hgcal::association_t makeConnections(const edm::Handle<ticl::TracksterCollection> &tCH,
0026                                          const edm::Handle<reco::CaloClusterCollection> &lCCH,
0027                                          const edm::Handle<SimClusterCollection> &sCCH,
0028                                          const edm::Handle<CaloParticleCollection> &cPCH,
0029                                          const edm::Handle<ticl::TracksterCollection> &sTCH) const {
0030       return m_impl->makeConnections(tCH, lCCH, sCCH, cPCH, sTCH);
0031     }
0032     /// Associate a Trackster to SimClusters
0033     hgcal::RecoToSimCollectionSimTracksters associateRecoToSim(
0034         const edm::Handle<ticl::TracksterCollection> &tCH,
0035         const edm::Handle<reco::CaloClusterCollection> &lCCH,
0036         const edm::Handle<SimClusterCollection> &sCCH,
0037         const edm::Handle<CaloParticleCollection> &cPCH,
0038         const edm::Handle<ticl::TracksterCollection> &sTCH) const {
0039       return m_impl->associateRecoToSim(tCH, lCCH, sCCH, cPCH, sTCH);
0040     };
0041 
0042     /// Associate a SimCluster to Tracksters
0043     hgcal::SimToRecoCollectionSimTracksters associateSimToReco(
0044         const edm::Handle<ticl::TracksterCollection> &tCH,
0045         const edm::Handle<reco::CaloClusterCollection> &lCCH,
0046         const edm::Handle<SimClusterCollection> &sCCH,
0047         const edm::Handle<CaloParticleCollection> &cPCH,
0048         const edm::Handle<ticl::TracksterCollection> &sTCH) const {
0049       return m_impl->associateSimToReco(tCH, lCCH, sCCH, cPCH, sTCH);
0050     }
0051 
0052   private:
0053     std::unique_ptr<TracksterToSimTracksterHitLCAssociatorBaseImpl> m_impl;
0054   };
0055 }  // namespace hgcal
0056 
0057 #endif