diff --git a/GeneratorInterface/LHEInterface/interface/TestWeightInfo.h b/GeneratorInterface/LHEInterface/interface/TestWeightInfo.h index efb0162bb8063..7e386bf1cd4ce 100644 --- a/GeneratorInterface/LHEInterface/interface/TestWeightInfo.h +++ b/GeneratorInterface/LHEInterface/interface/TestWeightInfo.h @@ -1,4 +1,5 @@ #include "SimDataFormats/GeneratorProducts/interface/WeightGroupInfo.h" +#include "SimDataFormats/GeneratorProducts/interface/PdfWeightGroupInfo.h" #include std::string parseId(std::string label) { @@ -993,7 +994,7 @@ edm::OwnVector getExamplePdfWeights() { int counter = 8; for (const auto& entry : entries) { if (entry.find(" +#include "SimDataFormats/GeneratorProducts/interface/PdfWeightGroupInfo.h" + +namespace gen { + void PdfWeightGroupInfo::copy(const PdfWeightGroupInfo &other) { + uncertaintyType_ = other.uncertaintyType(); + hasAlphasVars_ = other.hasAlphasVariations(); + alphasUpIndex_ = other.alphasDownIndex(); + alphasDownIndex_ = other.alphasDownIndex(); + WeightGroupInfo::copy(other); + } + + PdfWeightGroupInfo* PdfWeightGroupInfo::clone() const { + return new PdfWeightGroupInfo(*this); + } +} diff --git a/SimDataFormats/GeneratorProducts/src/classes_def.xml b/SimDataFormats/GeneratorProducts/src/classes_def.xml index 7e6ae7131b9c8..6e36f2de18394 100644 --- a/SimDataFormats/GeneratorProducts/src/classes_def.xml +++ b/SimDataFormats/GeneratorProducts/src/classes_def.xml @@ -223,9 +223,8 @@ - - - + +