23 #include <boost/shared_ptr.hpp> 86 produces<edm::HepMCProduct>(
"unsmeared");
116 HepMC::GenVertex*
v =
new HepMC::GenVertex();
121 v->add_particle_in(gp1);
124 v->add_particle_in(gp2);
125 evt->set_beam_particles(gp1, gp2);
127 LogWarning(
"LHE2HepMCConverter") <<
"Could not retrieve the LHERunInfoProduct for this event. You'll miss the beam particles in your HepMC product." ;
139 gp->set_generated_mass(lheEventSrc->
hepeup().
PUP[
i][4]);
140 v->add_particle_out(gp);
143 std::unique_ptr<HepMCProduct> pOut(
new HepMCProduct(evt));
155 if (lheRunSrcHandle.
isValid()) {
161 if (lheRunSrcHandle.
isValid()) {
163 edm::LogInfo(
"LHE2HepMCConverter") <<
"Taking LHERunInfoproduct from source";
166 edm::LogWarning(
"LHE2HepMCConverter") <<
"No LHERunInfoProduct from source";
T getParameter(std::string const &) const
bool getByLabel(std::string const &label, Handle< PROD > &result) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const lhef::HEPEUP & hepeup() const
#define DEFINE_FWK_MODULE(type)
std::pair< double, double > EBMUP
void produce(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::pair< int, int > IDBMUP
edm::InputTag _lheRunSrcTag
const lhef::HEPRUP & heprup() const
LHE2HepMCConverter(const edm::ParameterSet &)
~LHE2HepMCConverter() override
void addDefault(ParameterSetDescription const &psetDescription)
std::vector< FiveVector > PUP
edm::InputTag _lheEventSrcTag
const LHERunInfoProduct * _lheRunSrc
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void beginRun(edm::Run const &, edm::EventSetup const &) override
T const * product() const