13 _useHepMC(iConfig.getParameter<bool>(
"UseWeightFromHepMC"))
25 const HepMC::GenEvent *myGenEvent = evt->GetEvent();
28 if (myGenEvent->weights().size() > 0)
29 weight = myGenEvent->weights()[0];
36 weight *= info->weight();
T getParameter(std::string const &) const
std::vector< edm::InputTag > _genEventInfos
edm::InputTag _hepmcCollection
WeightManager(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double weight(const edm::Event &)