5 #include <HepMC/GenEvent.h> 6 #include <HepMC/WeightContainer.h> 7 #include <HepMC/PdfInfo.h> 17 : signalProcessID_(0), qScale_(-1.), alphaQCD_(-1.), alphaQED_(-1.), nMEPartons_(-1), nMEPartonsFiltered_(-1) {}
27 const HepMC::PdfInfo *hepPDF = evt->pdf_info();
31 pdf.
id = std::make_pair(hepPDF->id1(), hepPDF->id2());
32 pdf.
x = std::make_pair(hepPDF->x1(), hepPDF->x2());
33 pdf.
xPDF = std::make_pair(hepPDF->pdf1(), hepPDF->pdf2());
99 return std::accumulate(
weights_.begin(),
weights_.end(), 1., std::multiplies<double>());
void setPDF(const PDF *pdf)
std::pair< double, double > x
GenEventInfoProduct & operator=(const GenEventInfoProduct &other)
std::pair< double, double > xPDF
std::vector< float > DJRValues_
virtual ~GenEventInfoProduct()
std::vector< double > weights_
std::unique_ptr< PDF > pdf_
double weightProduct() const
std::vector< double > binningValues_
std::vector< double > & weights()
unsigned int signalProcessID_