Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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__
Definition:
PileUpSummaryInfo.py:5
PileUpSummaryInfo.PileUpSummaryInfo.nPU
def nPU
Definition:
PileUpSummaryInfo.py:9
PileUpSummaryInfo.PileUpSummaryInfo.nTrueInteractions
def nTrueInteractions
Definition:
PileUpSummaryInfo.py:12
PileUpSummaryInfo.PileUpSummaryInfo.object
object
Definition:
PileUpSummaryInfo.py:3
PileUpSummaryInfo.PileUpSummaryInfo
Definition:
PileUpSummaryInfo.py:1
format
PileUpSummaryInfo.PileUpSummaryInfo.__str__
def __str__
Definition:
PileUpSummaryInfo.py:15
PileUpSummaryInfo.PileUpSummaryInfo.__init__
def __init__
Definition:
PileUpSummaryInfo.py:2
Generated for CMSSW Reference Manual by
1.8.5