#include <PdfWeightProducerTool.h>
Public Member Functions | |
void | addPdfSet (const std::string &name) |
void | beginJob () |
const std::vector< double > & | getWeights (const std::string &name) const |
PdfWeightProducerTool () | |
void | processEvent (const GenEventInfoProduct &pdfstuff) |
Private Attributes | |
std::vector< std::string > | pdfs_ |
std::map< std::string, std::vector< double > > | weights_ |
Definition at line 16 of file PdfWeightProducerTool.h.
|
inline |
Definition at line 18 of file PdfWeightProducerTool.h.
void heppy::PdfWeightProducerTool::addPdfSet | ( | const std::string & | name | ) |
Definition at line 18 of file PdfWeightProducerTool.cc.
References mergeVDriftHistosByStation::name, pdfs_, and weights_.
void heppy::PdfWeightProducerTool::beginJob | ( | void | ) |
Definition at line 23 of file PdfWeightProducerTool.cc.
References i, LHAPDF::initPDFSet(), gen::n, and pdfs_.
const std::vector< double > & heppy::PdfWeightProducerTool::getWeights | ( | const std::string & | name | ) | const |
Definition at line 55 of file PdfWeightProducerTool.cc.
References assert(), match(), and weights_.
void heppy::PdfWeightProducerTool::processEvent | ( | const GenEventInfoProduct & | pdfstuff | ) |
Definition at line 29 of file PdfWeightProducerTool.cc.
References i, gen::PdfInfo::id, j, gen::n, LHAPDF::numberPDF(), GenEventInfoProduct::pdf(), pdfs_, class-composition::Q, gen::PdfInfo::scalePDF, LHAPDF::usePDFMember(), create_public_pileup_plots::weights, weights_, gen::PdfInfo::x, LHAPDF::xfx(), and gen::PdfInfo::xPDF.
|
private |
Definition at line 24 of file PdfWeightProducerTool.h.
Referenced by addPdfSet(), beginJob(), and processEvent().
|
private |
Definition at line 25 of file PdfWeightProducerTool.h.
Referenced by addPdfSet(), getWeights(), and processEvent().