The Gaudi Framework  v36r9 (fd2bdac3)
TupleEx1 Namespace Reference

Classes

class  TupleEx1
 

Functions

def vct (sequence)
 
def configure (gaudi=None)
 

Variables

string __author__ = "Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr"
 
 SUCCESS = GaudiPython.SUCCESS
 
 Rndm = GaudiPython.gbl.Rndm
 
 Numbers = Rndm.Numbers
 
 gaudi = GaudiPython.AppMgr()
 

Function Documentation

◆ configure()

def TupleEx1.configure (   gaudi = None)
Configuration of the job

Definition at line 174 of file TupleEx1.py.

174 def configure(gaudi=None):
175  """Configuration of the job"""
176 
177  if not gaudi:
178  gaudi = GaudiPython.AppMgr()
179 
180  gaudi.JobOptionsType = "NONE"
181  gaudi.EvtSel = "NONE"
182  gaudi.HistogramPersistency = "ROOT"
183 
184  gaudi.ExtSvc += ["NTupleSvc"]
185 
186  ntSvc = gaudi.service("NTupleSvc")
187  ntSvc.Output = ["MYLUN DATAFILE='TupleEx1.root' OPT='NEW' TYP='ROOT'"]
188 
189  gaudi.config()
190 
191  gaudi.DLLs = [
192  "GaudiAlg",
193  "RootHistCnv",
194  ]
195 
196  alg = TupleEx1("TupleEx1")
197  gaudi.setAlgorithms([alg])
198 
199  # configure the properties
200  alg.NTupleLUN = "MYLUN"
201 
202  return SUCCESS
203 
204 
205 # =============================================================================
206 # The actual job excution
207 # @author Vanya BELYAEV ibelyaev@physics.syr.edu
208 # @date 2006-11-26

◆ vct()

def TupleEx1.vct (   sequence)
Primitive function which transform arbitrary sequence  into
GaudiPython.Vector ( std::vector<double> )

Definition at line 54 of file TupleEx1.py.

54 def vct(sequence):
55  """
56  Primitive function which transform arbitrary sequence into
57  GaudiPython.Vector ( std::vector<double> )
58  """
59  result = GaudiPython.gbl.GaudiPython.Vector()
60  if hasattr(sequence, "__len__"):
61  result.reserve(len(sequence))
62  elif hasattr(sequence, "size"):
63  result.reserve(sequence.size())
64 
65  for item in sequence:
66  result.push_back(item)
67  return result
68 
69 
70 # =============================================================================
71 # @class TupleEx1
72 # Simple algorithm which book&fill 3 histograms
73 # @author Vanya BELYAEV ibelyaev@physics.syr.edu
74 # @date 2006-11-26
75 
76 

Variable Documentation

◆ __author__

string TupleEx1.__author__ = "Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr"
private

Definition at line 32 of file TupleEx1.py.

◆ gaudi

TupleEx1.gaudi = GaudiPython.AppMgr()

Definition at line 211 of file TupleEx1.py.

◆ Numbers

TupleEx1.Numbers = Rndm.Numbers

Definition at line 43 of file TupleEx1.py.

◆ Rndm

TupleEx1.Rndm = GaudiPython.gbl.Rndm

Definition at line 42 of file TupleEx1.py.

◆ SUCCESS

TupleEx1.SUCCESS = GaudiPython.SUCCESS

Definition at line 39 of file TupleEx1.py.

TupleEx1.configure
def configure(gaudi=None)
Definition: TupleEx1.py:174
GaudiPython.Bindings.AppMgr
Definition: Bindings.py:873
TupleEx1.vct
def vct(sequence)
Definition: TupleEx1.py:54
TupleEx1
Definition: TupleEx1.py:1