PhysicsTools
Heppy
python
physicsutils
PileUpSummaryInfo.py
Go to the documentation of this file.
1
class
PileUpSummaryInfo
(
object
):
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
PileUpSummaryInfo.PileUpSummaryInfo.__getattr__
def __getattr__(self, name)
Definition:
PileUpSummaryInfo.py:5
PileUpSummaryInfo.PileUpSummaryInfo.nTrueInteractions
def nTrueInteractions(self)
Definition:
PileUpSummaryInfo.py:12
PileUpSummaryInfo.PileUpSummaryInfo.__init__
def __init__(self, object)
Definition:
PileUpSummaryInfo.py:2
PileUpSummaryInfo.PileUpSummaryInfo.object
object
Definition:
PileUpSummaryInfo.py:3
PileUpSummaryInfo.PileUpSummaryInfo
Definition:
PileUpSummaryInfo.py:1
format
resolutioncreator_cfi.object
object
Definition:
resolutioncreator_cfi.py:4
PileUpSummaryInfo.PileUpSummaryInfo.__str__
def __str__(self)
Definition:
PileUpSummaryInfo.py:15
PileUpSummaryInfo.PileUpSummaryInfo.nPU
def nPU(self)
Definition:
PileUpSummaryInfo.py:9
Generated for CMSSW Reference Manual by
1.8.14