12 : _useHepMC(iConfig.getParameter<
bool>(
"UseWeightFromHepMC")) {
30 if (!myGenEvent->weights().empty())
31 weight = myGenEvent->weights()[0];
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::vector< edm::InputTag > _genEventInfos
T getParameter(std::string const &) const
edm::InputTag _hepmcCollection
std::vector< edm::EDGetTokenT< GenEventInfoProduct > > genEventInfosTokens_
edm::EDGetTokenT< edm::HepMCProduct > hepmcCollectionToken_
const HepMC::GenEvent * GetEvent() const
WeightManager(const edm::ParameterSet &, edm::ConsumesCollector iC)
std::vector< std::vector< double > > weightsCollection(const edm::Event &)
double weight(const edm::Event &)