test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PileUpSummaryInfo.py
Go to the documentation of this file.
2  def __init__(self, object ):
3  self.object = object
4 
5  def __getattr__(self,name):
6  '''all accessors from cmg::DiTau are transferred to this class.'''
7  return getattr(self.object, name)
8 
9  def nPU(self):
10  return self.object.getPU_NumInteractions()
11 
12  def nTrueInteractions(self):
13  return self.object.getTrueNumInteractions()
14 
15  def __str__(self):
16  tmp = '{className} : bunchx = {bunchx}; numPU = {numpu}'.format(
17  className = self.__class__.__name__,
18  bunchx = self.object.getBunchCrossing(),
19  numpu = self.object.getPU_NumInteractions() )
20  return tmp
21