13 : _useHepMC(iConfig.getParameter<bool>(
"UseWeightFromHepMC")) {
31 if (!myGenEvent->weights().empty())
32 weight = myGenEvent->weights()[0];
39 weight *= info->weight();
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
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_
T getParameter(std::string const &) const
WeightManager(const edm::ParameterSet &, edm::ConsumesCollector iC)
double weight(const edm::Event &)