27 CLHEP::HepRandomEngine* engine)
33 std::map<int, edm::PSimHitContainer> hitMap;
35 hitItr != simHits.
end(); ++hitItr)
37 hitMap[hitItr->detUnitId()].push_back(*hitItr);
42 <<
"RPCDigitizer 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++){
67 return dynamic_cast<const RPCRoll *
>(detUnit);
T getParameter(std::string const &) const
const RPCDigiSimLinks & rpcDigiSimLinks() const
const std::vector< const RPCRoll * > & rolls() const
Return a vector of all RPC rolls.
RPCDigitizer(const edm::ParameterSet &config)
RPCSimSetUp * theSimSetUp
virtual void simulateNoise(const RPCRoll *roll, CLHEP::HepRandomEngine *)=0
void setRPCSimSetUp(RPCSimSetUp *setup)
void doAction(MixCollection< PSimHit > &simHits, RPCDigiCollection &rpcDigis, RPCDigiSimLinks &rpcDigiSimLink, CLHEP::HepRandomEngine *)
virtual void fillDigis(int rollDetId, RPCDigiCollection &digis)
const RPCGeometry * theGeometry
void insert(detset const &s)
Insert the given DetSet.
const RPCRoll * findDet(int detId) const
finds the rpc det unit in the geometry associated with this det ID
std::vector< PSimHit > PSimHitContainer
virtual void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits, CLHEP::HepRandomEngine *)=0
T get(const Candidate &c)
virtual const GeomDetUnit * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.