Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-02 23:15:07

0001 #ifndef TrackingAnalysis_TrackerPSimHitSelector_h
0002 #define TrackingAnalysis_TrackerPSimHitSelector_h
0003 
0004 #include "SimGeneral/TrackingAnalysis/interface/PSimHitSelector.h"
0005 #include "CalibFormats/SiStripObjects/interface/SiStripDetCabling.h"
0006 #include "CalibTracker/Records/interface/SiStripDetCablingRcd.h"
0007 
0008 //! TrackerPSimHitSelector class
0009 class TrackerPSimHitSelector : public PSimHitSelector {
0010 public:
0011   //! Constructor by pset.
0012   /* Creates a TrackerPSimHitSelector with association given by pset.
0013 
0014      /param[in] pset with the configuration values
0015   */
0016   TrackerPSimHitSelector(edm::ParameterSet const &config, edm::ConsumesCollector &iC)
0017       : PSimHitSelector(config, iC), cableToken_(iC.esConsumes()) {}
0018 
0019   //! Pre-process event information
0020   void select(PSimHitCollection &, edm::Event const &, edm::EventSetup const &) const override;
0021 
0022 private:
0023   edm::ESGetToken<SiStripDetCabling, SiStripDetCablingRcd> cableToken_;
0024 };
0025 
0026 #endif