15 gemSim_->setRandomEngine(eng);
32 std::map<int, edm::PSimHitContainer> hitMap;
33 for(
auto &
hit: simHits)
35 hitMap[
hit.detUnitId()].push_back(
hit);
41 <<
"GEMDigitizer::digitize() - No GEMGeometry present in the configuration file."
42 <<
"Add the service in the configuration file or remove the modules that require it.";
46 for(
auto &
p: etaPartitions)
48 const auto & partSimHits = hitMap[
p->id()];
T getParameter(std::string const &) const
virtual void fillDigis(int rollDetId, GEMDigiCollection &digis)
const GEMEtaPartition * findDet(int detId) const
finds the GEM det unit in the geometry associated with this det ID
GEMDigitizer(const edm::ParameterSet &config, CLHEP::HepRandomEngine &)
const StripDigiSimLinks & stripDigiSimLinks() const
const GEMGeometry * geometry_
void setGEMSimSetUp(GEMSimSetUp *setup)
virtual void simulate(const GEMEtaPartition *roll, const edm::PSimHitContainer &rpcHits)=0
void digitize(MixCollection< PSimHit > &simHits, GEMDigiCollection &rpcDigis, StripDigiSimLinks &digiSimLinks)
void insert(detset const &s)
Insert the given DetSet.
virtual const GeomDetUnit * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
virtual void simulateNoise(const GEMEtaPartition *roll)=0
T get(const Candidate &c)
const std::vector< GEMEtaPartition * > & etaPartitions() const
Return a vector of all GEM chambers.