18 #include "CLHEP/Random/RandomEngine.h"
32 produces<GEMDigiCollection>();
33 produces<StripDigiSimLinks>(
"GEM");
39 if ( ! rng.isAvailable())
42 <<
"GEMDigiProducer::GEMDigiProducer() - RandomNumberGeneratorService is not present in configuration file.\n"
43 <<
"Add the service in the configuration file or remove the modules that require it.";
45 CLHEP::HepRandomEngine& engine = rng->getEngine();
75 std::vector<RPCStripNoises::NoiseItem> vnoise;
76 std::vector<float> vcls;
79 if (vnoise.size()==0 && vcls.size()==0)
105 e.
put(digiSimLinks,
"GEM");
T getParameter(std::string const &) const
GEMDigitizer::StripDigiSimLinks StripDigiSimLinks
GEMSimSetUp * gemSimSetUp_
GEMDigitizer * digitizer_
void setGeometry(const GEMGeometry *geom)
MuonDigiCollection< GEMDetId, GEMDigi > GEMDigiCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
GEMDigiProducer(const edm::ParameterSet &ps)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void setGeometry(const GEMGeometry *geom)
sets geometry
virtual void produce(edm::Event &e, const edm::EventSetup &c) override
virtual ~GEMDigiProducer()
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
void digitize(MixCollection< PSimHit > &simHits, GEMDigiCollection &rpcDigis, StripDigiSimLinks &digiSimLinks)
void setGEMSimSetUp(GEMSimSetUp *simsetup)
T const * product() const
std::string collectionXF_