13 _useHepMC(iConfig.getParameter<
bool>(
"UseWeightFromHepMC"))
29 const HepMC::GenEvent *myGenEvent = evt->
GetEvent();
32 if (!myGenEvent->weights().empty())
33 weight = myGenEvent->weights()[0];
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
std::vector< edm::InputTag > _genEventInfos
edm::InputTag _hepmcCollection
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< edm::EDGetTokenT< std::vector< edm::InputTag > > > genEventInfosTokens_
edm::EDGetTokenT< edm::HepMCProduct > hepmcCollectionToken_
const HepMC::GenEvent * GetEvent() const
WeightManager(const edm::ParameterSet &, edm::ConsumesCollector iC)
double weight(const edm::Event &)