Simple algorithm which explicitly book&fill profile histograms
Definition at line 39 of file HistoEx2.py.
◆ __init__()
def HistoEx2.HistoEx2.__init__ |
( |
|
self, |
|
|
|
name = 'HistoEx2' |
|
) |
| |
Constructor
Definition at line 42 of file HistoEx2.py.
42 def __init__(self, name='HistoEx2'):
44 HistoAlgo.__init__(self, name)
◆ execute()
def HistoEx2.HistoEx2.execute |
( |
|
self | ) |
|
The major method 'execute', it is invoked for each event
Definition at line 46 of file HistoEx2.py.
47 """ The major method 'execute', it is invoked for each event """
51 for i
in range(0, 10000):
54 self.plot2D(x, y,
' x vs y ', -2, 2, -4, 4)
55 self.plot2D(x, y + 3 * x,
' x vs y+3x ', -2, 2, -4, 4)
56 self.plot2D(x, y - 3 * x,
' x vs y-3x ', -2, 2, -4, 4)
57 self.profile1D(x, y,
' x vs y (profile)', -2, 2)
58 self.profile1D(x, y + 3 * x,
' x vs y+3x (profile)', -2, 2)
59 self.profile1D(x, y - 3 * x,
' x vs y-3x (profile)', -2, 2)
The documentation for this class was generated from the following file: