26 using namespace CLHEP;
35 <<
"The BaseEvtVtxGenerator requires the RandomNumberGeneratorService\n" 36 "which is not present in the configuration file. \n" 37 "You must add the service\n" 38 "in the configuration file or remove the modules that require it.";
42 produces<edm::HepMCProduct>();
56 evt.
getByToken( sourceToken, HepUnsmearedMCEvt ) ;
59 HepMC::GenEvent* genevt =
new HepMC::GenEvent(*HepUnsmearedMCEvt->
GetEvent());
63 HepMCEvt->applyVtxGen( newVertex(engine) ) ;
66 HepMCEvt->boostToLab( GetInvLorentzBoost(),
"vertex" );
67 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
return(e1-e2)*(e1-e2)+dp *dp
StreamID streamID() const
~BaseEvtVtxGenerator() override