Go to the documentation of this file.
77 produces<edm::HepMCProduct>(
"unsmeared");
99 HepMC::GenVertex*
v =
new HepMC::GenVertex();
104 v->add_particle_in(gp1);
107 v->add_particle_in(gp2);
108 evt->set_beam_particles(gp1, gp2);
110 LogWarning(
"LHE2HepMCConverter") <<
"Could not retrieve the LHERunInfoProduct for this event. You'll miss the beam "
111 "particles in your HepMC product.";
119 HepMC::FourVector
p(lheEventSrc->
hepeup().
PUP[
i][0],
124 gp->set_generated_mass(lheEventSrc->
hepeup().
PUP[
i][4]);
125 v->add_particle_out(
gp);
128 std::unique_ptr<HepMCProduct> pOut(
new HepMCProduct(evt));
136 if (lheRunSrcHandle.
isValid()) {
141 if (lheRunSrcHandle.
isValid()) {
143 edm::LogInfo(
"LHE2HepMCConverter") <<
"Taking LHERunInfoproduct from source";
145 edm::LogWarning(
"LHE2HepMCConverter") <<
"No LHERunInfoProduct from source";
edm::InputTag _lheEventSrcTag
T const * product() const
void produce(edm::Event &, const edm::EventSetup &) override
const lhef::HEPRUP & heprup() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const LHERunInfoProduct * _lheRunSrc
std::pair< double, double > EBMUP
#define DEFINE_FWK_MODULE(type)
edm::InputTag _lheRunSrcTag
T getParameter(std::string const &) const
const lhef::HEPEUP & hepeup() const
bool getByLabel(std::string const &label, Handle< PROD > &result) const
void addDefault(ParameterSetDescription const &psetDescription)
~LHE2HepMCConverter() override
std::vector< FiveVector > PUP
LHE2HepMCConverter(const edm::ParameterSet &)
std::pair< int, int > IDBMUP
void beginRun(edm::Run const &, edm::EventSetup const &) override