15 theRPCSim->setRandomEngine(eng);
32 std::map<int, edm::PSimHitContainer> hitMap;
34 hitItr != simHits.
end(); ++hitItr)
36 hitMap[hitItr->detUnitId()].push_back(*hitItr);
41 <<
"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.";
46 for(std::vector<RPCRoll*>::iterator
r = rpcRolls.begin();
47 r != rpcRolls.end();
r++){
64 return dynamic_cast<const RPCRoll *
>(detUnit);
T getParameter(std::string const &) const
const RPCDigiSimLinks & rpcDigiSimLinks() const
virtual const GeomDetUnit * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
RPCSimSetUp * theSimSetUp
RPCDigitizer(const edm::ParameterSet &config, CLHEP::HepRandomEngine &)
void setRPCSimSetUp(RPCSimSetUp *setup)
virtual void fillDigis(int rollDetId, RPCDigiCollection &digis)
const RPCGeometry * theGeometry
void doAction(MixCollection< PSimHit > &simHits, RPCDigiCollection &rpcDigis, RPCDigiSimLinks &rpcDigiSimLink)
virtual void simulateNoise(const RPCRoll *roll)=0
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)=0
T get(const Candidate &c)
const std::vector< RPCRoll * > & rolls() const
Return a vector of all RPC rolls.