def initPDFWeights(self): from ROOT import PdfWeightProducerTool self.pdfWeightInit = True self.pdfWeightTool = PdfWeightProducerTool() for pdf in self.cfg_ana.PDFWeights: self.pdfWeightTool.addPdfSet(pdf + ".LHgrid") self.pdfWeightTool.beginJob()