28 using namespace CLHEP;
32 : fVertex(0), boost_(0), fTimeOffset(0), fEngine(0),
33 sourceLabel(pset.getParameter<edm::
InputTag>(
"src"))
52 <<
"The BaseEvtVtxGenerator requires the RandomNumberGeneratorService\n"
53 "which is not present in the configuration file. You must add the service\n"
54 "in the configuration file or remove the modules that require it.";
57 CLHEP::HepRandomEngine& engine = rng->
getEngine();
90 auto_ptr<bool> NewProduct(
new bool(
true)) ;
91 evt.
put( NewProduct ) ;
CLHEP::HepRandomEngine & getEngine()
virtual HepMC::FourVector * newVertex()=0
HepMC::FourVector * fVertex
CLHEP::HepRandomEngine * fEngine
virtual ~BaseEvtVtxGenerator()
BaseEvtVtxGenerator(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void produce(edm::Event &, const edm::EventSetup &)
virtual TMatrixD * GetInvLorentzBoost()=0
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag sourceLabel