Simple algorithm which explicitely book&fill three histograms
Definition at line 36 of file HistoEx1.py.
◆ __init__()
def HistoEx1.HistoEx1.__init__ |
( |
|
self, |
|
|
|
name |
|
) |
| |
Constructor
Definition at line 39 of file HistoEx1.py.
39 def __init__(self, name):
41 HistoAlgo.__init__(self, name)
◆ execute()
def HistoEx1.HistoEx1.execute |
( |
|
self | ) |
|
The major method 'execute', it is invoked for each event
Definition at line 55 of file HistoEx1.py.
56 """The major method 'execute', it is invoked for each event"""
58 for i
in range(0, 10):
59 self.h1.
fill(i, 0.166)
60 for j
in range(0, 10):
62 for k
in range(0, 10):
◆ initialize()
def HistoEx1.HistoEx1.initialize |
( |
|
self | ) |
|
Initialization, initialize the base class and book histograms
Definition at line 43 of file HistoEx1.py.
44 """Initialization, initialize the base class and book histograms"""
45 status = HistoAlgo.initialize(self)
46 if status.isFailure():
49 self.h1 = self.book1D(
" 1D histo ", 0, 20, 20)
50 self.h2 = self.book2D(
" 2D histo ", 0, 20, 20, 0, 20, 20)
51 self.h3 = self.book3D(
" 3D histo ", 0, 20, 20, 0, 20, 20, 0, 20, 20)
◆ h1
◆ h2
◆ h3
The documentation for this class was generated from the following file: