80 std::unique_ptr<GEMDigiSimLinks> gemDigiSimLinks(
new GEMDigiSimLinks() );
83 std::map<uint32_t, edm::PSimHitContainer> hitMap;
85 hitMap[
hit.detUnitId()].emplace_back(
hit);
91 for (
const auto& roll: etaPartitions){
93 const uint32_t rawId(detId.rawId());
94 const auto &
simHits(hitMap[rawId]);
97 <<
"GEMDigiProducer: found " <<
simHits.size() <<
" hit(s) in eta partition" << rawId;
const GEMDigiSimLinks & gemDigiSimLinks() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const GEMGeometry * getGeometry()
virtual void simulateNoise(const GEMEtaPartition *, CLHEP::HepRandomEngine *engine)=0
edm::DetSetVector< StripDigiSimLink > StripDigiSimLinks
GEMDigiModel * gemDigiModel_
MuonDigiCollection< GEMDetId, GEMDigi > GEMDigiCollection
virtual void simulateSignal(const GEMEtaPartition *, const edm::PSimHitContainer &, CLHEP::HepRandomEngine *engine)=0
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
const StripDigiSimLinks & stripDigiSimLinks() const
const std::vector< const GEMEtaPartition * > & etaPartitions() const
Return a vector of all GEM eta partitions.
edm::EDGetTokenT< CrossingFrame< PSimHit > > cf_token
T const * product() const
StreamID streamID() const
edm::DetSetVector< GEMDigiSimLink > GEMDigiSimLinks
void fillDigis(int rollDetId, GEMDigiCollection &)