File indexing completed on 2024-04-06 12:23:28
0001 class PileUpSummaryInfo( object ):
0002 def __init__(self, object ):
0003 self.object = object
0004
0005 def __getattr__(self,name):
0006 '''all accessors from cmg::DiTau are transferred to this class.'''
0007 return getattr(self.object, name)
0008
0009 def nPU(self):
0010 return self.object.getPU_NumInteractions()
0011
0012 def nTrueInteractions(self):
0013 return self.object.getTrueNumInteractions()
0014
0015 def __str__(self):
0016 tmp = '{className} : bunchx = {bunchx}; numPU = {numpu}'.format(
0017 className = self.__class__.__name__,
0018 bunchx = self.object.getBunchCrossing(),
0019 numpu = self.object.getPU_NumInteractions() )
0020 return tmp
0021