35 #include "CLHEP/Random/RandomEngine.h"
41 produces<RPCDigiCollection>();
42 produces<RPCDigitizerSimLinks>(
"RPCDigiSimLink");
49 if ( ! rng.isAvailable()) {
51 <<
"RPCDigitizer requires the RandomNumberGeneratorService\n"
52 "which is not present in the configuration file. You must add the service\n"
53 "in the configuration file or remove the modules that require it.";
57 CLHEP::HepRandomEngine& engine = rng->getEngine();
95 std::auto_ptr<MixCollection<PSimHit> >
107 e.
put(RPCDigitSimLink,
"RPCDigiSimLink");
T getParameter(std::string const &) const
std::string collection_for_XF
RPCDigiProducer(const edm::ParameterSet &ps)
void setGeometry(const RPCGeometry *geom)
sets geometry
void setGeometry(const RPCGeometry *geom)
sets geometry
RPCSimSetUp * theRPCSimSetUp
void setRPCSimSetUp(RPCSimSetUp *simsetup)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
MuonDigiCollection< RPCDetId, RPCDigi > RPCDigiCollection
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual ~RPCDigiProducer()
RPCDigitizer::RPCDigiSimLinks RPCDigitizerSimLinks
void doAction(MixCollection< PSimHit > &simHits, RPCDigiCollection &rpcDigis, RPCDigiSimLinks &rpcDigiSimLink)
T const * product() const
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
RPCDigitizer * theDigitizer
void setRPCSetUp(const std::vector< RPCStripNoises::NoiseItem > &vnoise, const std::vector< float > &vcls)