28 using namespace CLHEP;
37 <<
"The RandomNumberProducer module requires the RandomNumberGeneratorService\n"
38 "which appears to be absent. Please add that service to your configuration\n"
39 "or remove the modules that require it.";
92 produces<GenRunInfoProduct, InRun>();
124 run.
put( genRunInfo );
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void endRun(edm::Run const &r, const edm::EventSetup &) override
CLHEP::HepRandomEngine & fRandomEngine
virtual ~BaseFlatGunProducer()
BaseFlatGunProducer(const ParameterSet &)
void getData(T &iHolder) const
void endRunProduce(edm::Run &r, const edm::EventSetup &) override
CLHEP::HepRandomEngine & getEngineReference()
ESHandle< HepPDT::ParticleDataTable > fPDGTable
CLHEP::RandFlat * fRandomGenerator
void beginRun(const edm::Run &r, const edm::EventSetup &) override
std::vector< int > fPartIDs
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
return(e1-e2)*(e1-e2)+dp *dp
void put(std::auto_ptr< PROD > product)
Put a new product.