def beginLoop(self): super(PileUpAnalyzer, self).beginLoop() self.averages.add('vertexWeight', Average('vertexWeight'))