27 CLHEP::HepRandomEngine* engine)
33 std::map<int, edm::PSimHitContainer> hitMap;
35 hitItr != simHits.
end(); ++hitItr)
37 hitMap[hitItr->detUnitId()].push_back(*hitItr);
42 <<
"IRPCDigitizer requires the RPCGeometry \n which is not present in the configuration file. You must add the service\n in the configuration file or remove the modules that require it.";
47 for(
auto r = rpcRolls.begin();
48 r != rpcRolls.end();
r++){
70 return dynamic_cast<const RPCRoll *
>(detUnit);
T getParameter(std::string const &) const
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
const RPCDigiSimLinks & rpcDigiSimLinks() const
const std::vector< const RPCRoll * > & rolls() const
Return a vector of all RPC rolls.
void doAction(MixCollection< PSimHit > &simHits, RPCDigiCollection &rpcDigis, RPCDigiSimLinks &rpcDigiSimLink, CLHEP::HepRandomEngine *)
const RPCGeometry * theGeometry
virtual void simulateNoise(const RPCRoll *roll, CLHEP::HepRandomEngine *)=0
void setRPCSimSetUp(RPCSimSetUp *setup)
virtual void fillDigis(int rollDetId, RPCDigiCollection &digis)
IRPCDigitizer(const edm::ParameterSet &config)
void insert(detset const &s)
Insert the given DetSet.
RPCSimSetUp * theSimSetUp
std::vector< PSimHit > PSimHitContainer
virtual void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits, CLHEP::HepRandomEngine *)=0
T get(const Candidate &c)
const RPCRoll * findDet(int detId) const
finds the rpc det unit in the geometry associated with this det ID