#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 Skims_PA_cff::name, pdfs_, and weights_.
void heppy::PdfWeightProducerTool::beginJob | ( | void | ) |
Definition at line 23 of file PdfWeightProducerTool.cc.
References mps_fire::i, LHAPDF::initPDFSet(), dqmiodumpmetadata::n, and pdfs_.
const std::vector< double > & heppy::PdfWeightProducerTool::getWeights | ( | const std::string & | name | ) | const |
Definition at line 56 of file PdfWeightProducerTool.cc.
References cms::cuda::assert(), match(), Skims_PA_cff::name, and weights_.
void heppy::PdfWeightProducerTool::processEvent | ( | const GenEventInfoProduct & | pdfstuff | ) |
Definition at line 29 of file PdfWeightProducerTool.cc.
References mps_fire::i, gen::PdfInfo::id, globals_cff::id1, globals_cff::id2, dqmiolumiharvest::j, dqmiodumpmetadata::n, LHAPDF::numberPDF(), GenEventInfoProduct::pdf(), pdfs_, class-composition::Q, gen::PdfInfo::scalePDF, LHAPDF::usePDFMember(), HLT_FULL_cff::weights, weights_, gen::PdfInfo::x, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, LHAPDF::xfx(), and gen::PdfInfo::xPDF.
|
private |
Definition at line 25 of file PdfWeightProducerTool.h.
Referenced by addPdfSet(), beginJob(), and processEvent().
|
private |
Definition at line 26 of file PdfWeightProducerTool.h.
Referenced by addPdfSet(), getWeights(), and processEvent().