The Gaudi Framework  v36r1 (3e2fb5a8)
HistoEx2.HistoEx2 Class Reference
Inheritance diagram for HistoEx2.HistoEx2:
Collaboration diagram for HistoEx2.HistoEx2:

Public Member Functions

def __init__ (self, name='HistoEx2')
 
def execute (self)
 

Detailed Description

Simple algorithm which explicitly book&fill profile histograms 

Definition at line 39 of file HistoEx2.py.

Constructor & Destructor Documentation

◆ __init__()

def HistoEx2.HistoEx2.__init__ (   self,
  name = 'HistoEx2' 
)
Constructor 

Definition at line 42 of file HistoEx2.py.

42  def __init__(self, name='HistoEx2'):
43  """ Constructor """
44  HistoAlgo.__init__(self, name)
45 

Member Function Documentation

◆ execute()

def HistoEx2.HistoEx2.execute (   self)
The major method 'execute', it is invoked for each event 

Definition at line 46 of file HistoEx2.py.

46  def execute(self):
47  """ The major method 'execute', it is invoked for each event """
48 
49  gauss = Rndm.Numbers(self.randSvc(), Rndm.Gauss(0, 1))
50 
51  for i in range(0, 10000):
52  x = gauss()
53  y = gauss()
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)
60  return SUCCESS
61 
62 
63 # =============================================================================
64 # job configuration
65 # =============================================================================

The documentation for this class was generated from the following file:
Rndm::Gauss
Parameters for the Gauss random number generation.
Definition: RndmGenerators.h:32
Rndm::Numbers
Random number accessor This small class encapsulates the use of the random number generator.
Definition: RndmGenerators.h:359
GaudiPython.Pythonizations.execute
execute
Definition: Pythonizations.py:566
HistoUtilsEx.gauss
gauss
Definition: HistoUtilsEx.py:66
Gaudi::Functional::details::zip::range
decltype(auto) range(Args &&... args)
Zips multiple containers together to form a single range.
Definition: FunctionalDetails.h:97