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