26 using namespace CLHEP;
32 throw cms::Exception(
"Configuration") <<
"The BaseEvtVtxGenerator requires the RandomNumberGeneratorService\n" 33 "which is not present in the configuration file. \n" 34 "You must add the service\n" 35 "in the configuration file or remove the modules that require it.";
39 produces<edm::HepMCProduct>();
50 evt.
getByToken(sourceToken, HepUnsmearedMCEvt);
57 HepMCEvt->applyVtxGen(newVertex(engine));
60 HepMCEvt->boostToLab(GetInvLorentzBoost(),
"vertex");
61 HepMCEvt->boostToLab(GetInvLorentzBoost(),
"momentum");
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void produce(edm::Event &, const edm::EventSetup &) override
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
BaseEvtVtxGenerator(const edm::ParameterSet &)
const HepMC::GenEvent * GetEvent() const
StreamID streamID() const
~BaseEvtVtxGenerator() override