15 theNoise{
config.getParameter<
bool>(
"doBkgNoise")} {}
22 CLHEP::HepRandomEngine* engine) {
26 std::map<int, edm::PSimHitContainer> hitMap;
28 hitMap[hitItr->detUnitId()].push_back(*hitItr);
33 <<
"RPCDigitizer requires the RPCGeometry \n which is not present in the configuration file. You must add the "
34 "service\n in the configuration file or remove the modules that require it.";
38 for (
auto r = rpcRolls.begin();
r != rpcRolls.end();
r++) {
42 if (!((*r)->isIRPC())) {
50 theRPCSim->fillDigis((*r)->id(), rpcDigis);
58 return dynamic_cast<const RPCRoll*
>(detUnit);
uint16_t *__restrict__ id
const std::vector< const RPCRoll * > & rolls() const
Return a vector of all RPC rolls.
RPCDigitizer(const edm::ParameterSet &config)
RPCSimSetUp * theSimSetUp
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
std::unique_ptr< RPCSim > theRPCSim
void doAction(MixCollection< PSimHit > &simHits, RPCDigiCollection &rpcDigis, RPCDigiSimLinks &rpcDigiSimLink, CLHEP::HepRandomEngine *)
const RPCGeometry * theGeometry
T getParameter(std::string const &) const
tuple config
parse the configuration file
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