1 #ifndef FastSimulation_TrackingRecHitProducer_TrackingRecHitProduct_H 2 #define FastSimulation_TrackingRecHitProducer_TrackingRecHitProduct_H 11 #include <unordered_map> 28 _simHitsIdPairList(simHitsIdPairList)
44 _recHits.push_back(std::make_pair(recHit,simHitIdPairs));
45 for (
unsigned int isimhit = 0; isimhit < simHitIdPairs.size(); ++isimhit)
47 _recHits.back().first.addSimTrackId(simHitIdPairs[isimhit].
second->trackId());
58 return _recHits.size();
virtual void addRecHit(const FastSingleTrackerRecHit &recHit, std::vector< SimHitIdPair > simHitIdPairs={})
virtual std::vector< SimHitIdPair > & getSimHitIdPairs()
virtual const std::vector< RecHitToSimHitIdPairs > & getRecHitToSimHitIdPairs() const
std::pair< unsigned int, const PSimHit * > SimHitIdPair
std::vector< SimHitIdPair > _simHitsIdPairList
const DetId & getDetId() const
U second(std::pair< T, U > const &p)
std::pair< FastSingleTrackerRecHit, std::vector< SimHitIdPair > > RecHitToSimHitIdPairs
virtual ~TrackingRecHitProduct()
std::shared_ptr< TrackingRecHitProduct > TrackingRecHitProductPtr
virtual unsigned int numberOfRecHits() const
std::vector< RecHitToSimHitIdPairs > _recHits
TrackingRecHitProduct(const DetId &detId, std::vector< SimHitIdPair > &simHitsIdPairList)