The Gaudi Framework  v36r7 (7f57a304)
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 40 of file HistoEx2.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 43 of file HistoEx2.py.

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

Member Function Documentation

◆ execute()

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

Definition at line 47 of file HistoEx2.py.

47  def execute(self):
48  """The major method 'execute', it is invoked for each event"""
49 
50  gauss = Rndm.Numbers(self.randSvc(), Rndm.Gauss(0, 1))
51 
52  for i in range(0, 10000):
53  x = gauss()
54  y = gauss()
55  self.plot2D(x, y, " x vs y ", -2, 2, -4, 4)
56  self.plot2D(x, y + 3 * x, " x vs y+3x ", -2, 2, -4, 4)
57  self.plot2D(x, y - 3 * x, " x vs y-3x ", -2, 2, -4, 4)
58  self.profile1D(x, y, " x vs y (profile)", -2, 2)
59  self.profile1D(x, y + 3 * x, " x vs y+3x (profile)", -2, 2)
60  self.profile1D(x, y - 3 * x, " x vs y-3x (profile)", -2, 2)
61  return SUCCESS
62 
63 
64 # =============================================================================
65 # job configuration
66 # =============================================================================

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:588
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:102