26 using namespace CLHEP;
30 : fVertex(0), boost_(0), fTimeOffset(0), fEngine(0),
31 sourceLabel(pset.getParameter<edm::
InputTag>(
"src"))
50 <<
"The BaseEvtVtxGenerator requires the RandomNumberGeneratorService\n"
51 "which is not present in the configuration file. You must add the service\n"
52 "in the configuration file or remove the modules that require it.";
55 CLHEP::HepRandomEngine& engine = rng->
getEngine();
88 auto_ptr<bool> NewProduct(
new bool(
true)) ;
89 evt.
put( NewProduct ) ;
CLHEP::HepRandomEngine & getEngine()
virtual HepMC::FourVector * newVertex()=0
HepMC::FourVector * fVertex
virtual void produce(edm::Event &, const edm::EventSetup &) override
CLHEP::HepRandomEngine * fEngine
virtual ~BaseEvtVtxGenerator()
BaseEvtVtxGenerator(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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
return(e1-e2)*(e1-e2)+dp *dp
edm::InputTag sourceLabel