Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v36r16 (ea80daf8)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
bug_38882.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
2 
13 
14 # =============================================================================
15 from __future__ import print_function
16 
17 __author__ = "Marco Clemencic"
18 # =============================================================================
19 
20 from GaudiPython.GaudiAlgs import GaudiAlgo
21 
22 import GaudiPython
23 
24 SUCCESS = GaudiPython.SUCCESS
25 
26 # =============================================================================
27 # Simple algorithm which book&fill 3 histograms
28 # =============================================================================
29 
30 
32  """Simple algorithm that prints a message during execute"""
33 
34  def __init__(self, name):
35  """Constructor"""
36  GaudiAlgo.__init__(self, name)
37 
38  def execute(self):
39  """The main method 'execute', it is invoked for each event"""
40  print("=== %s Execute ===" % self.name())
41  return SUCCESS
42 
43 
44 # =============================================================================
45 # job configuration
46 # =============================================================================
47 
48 
49 def configure(gaudi=None):
50  """Configuration of the job"""
51 
52  if not gaudi:
53  gaudi = GaudiPython.AppMgr()
54 
55  gaudi.JobOptionsType = "NONE"
56  gaudi.EvtSel = "NONE"
57  gaudi.HistogramPersistency = "NONE"
58 
59  gaudi.config()
60 
61  gaudi.initialize()
62 
63  alg = TestAlg("bug_38882_test_alg")
64  gaudi.setAlgorithms([alg])
65 
66  return SUCCESS
67 
68 
69 # =============================================================================
70 # The actual job excution
71 # =============================================================================
72 if "__main__" == __name__:
74  configure(gaudi)
75  gaudi.run(1)
bug_38882.TestAlg.execute
def execute(self)
Definition: bug_38882.py:38
GaudiPython.Bindings.AppMgr
Definition: Bindings.py:869
bug_38882.TestAlg.__init__
def __init__(self, name)
Definition: bug_38882.py:34
GaudiPython.GaudiAlgs.GaudiAlgo
Definition: GaudiAlgs.py:638
bug_38882.TestAlg
Definition: bug_38882.py:31
GaudiPython.GaudiAlgs
Definition: GaudiAlgs.py:1
bug_38882.configure
def configure(gaudi=None)
Definition: bug_38882.py:49