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

Public Member Functions

def __init__ (self, name)
 
def initialize (self)
 
def execute (self)
 

Public Attributes

 h1
 
 h2
 
 h3
 

Detailed Description

Simple algorithm which explicitely book&fill three histograms 

Definition at line 35 of file HistoEx1.py.

Constructor & Destructor Documentation

◆ __init__()

def HistoEx1.HistoEx1.__init__ (   self,
  name 
)
Constructor 

Definition at line 38 of file HistoEx1.py.

38  def __init__(self, name):
39  """ Constructor """
40  HistoAlgo.__init__(self, name)
41 

Member Function Documentation

◆ execute()

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

Definition at line 54 of file HistoEx1.py.

54  def execute(self):
55  """ The major method 'execute', it is invoked for each event """
56 
57  for i in range(0, 10):
58  self.h1.fill(i, 0.166)
59  for j in range(0, 10):
60  self.h2.fill(i, j)
61  for k in range(0, 10):
62  self.h3.fill(i, j, k)
63 
64  return SUCCESS
65 
66 
67 # =============================================================================
68 # job configuration
69 # =============================================================================

◆ initialize()

def HistoEx1.HistoEx1.initialize (   self)
Initialization, initialize the base class and book histograms 

Definition at line 42 of file HistoEx1.py.

42  def initialize(self):
43  """ Initialization, initialize the base class and book histograms """
44  status = HistoAlgo.initialize(self)
45  if status.isFailure():
46  return status
47 
48  self.h1 = self.book1D(' 1D histo ', 0, 20, 20)
49  self.h2 = self.book2D(' 2D histo ', 0, 20, 20, 0, 20, 20)
50  self.h3 = self.book3D(' 3D histo ', 0, 20, 20, 0, 20, 20, 0, 20, 20)
51 
52  return SUCCESS
53 

Member Data Documentation

◆ h1

HistoEx1.HistoEx1.h1

Definition at line 48 of file HistoEx1.py.

◆ h2

HistoEx1.HistoEx1.h2

Definition at line 49 of file HistoEx1.py.

◆ h3

HistoEx1.HistoEx1.h3

Definition at line 50 of file HistoEx1.py.


The documentation for this class was generated from the following file:
GaudiPython.Pythonizations.execute
execute
Definition: Pythonizations.py:566
Gaudi::Utils::Histos::fill
GAUDI_API void fill(AIDA::IHistogram1D *histo, const double value, const double weight=1.0)
simple function to fill AIDA::IHistogram1D objects
Definition: Fill.cpp:45
Gaudi::Functional::details::zip::range
decltype(auto) range(Args &&... args)
Zips multiple containers together to form a single range.
Definition: FunctionalDetails.h:97