The Gaudi Framework  v36r1 (3e2fb5a8)
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 172 of file TupleEx1.py.

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

◆ vct()

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

Definition at line 52 of file TupleEx1.py.

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

Variable Documentation

◆ __author__

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

Definition at line 31 of file TupleEx1.py.

◆ gaudi

TupleEx1.gaudi = GaudiPython.AppMgr()

Definition at line 209 of file TupleEx1.py.

◆ Numbers

TupleEx1.Numbers = Rndm.Numbers

Definition at line 41 of file TupleEx1.py.

◆ Rndm

TupleEx1.Rndm = GaudiPython.gbl.Rndm

Definition at line 40 of file TupleEx1.py.

◆ SUCCESS

TupleEx1.SUCCESS = GaudiPython.SUCCESS

Definition at line 37 of file TupleEx1.py.

TupleEx1.configure
def configure(gaudi=None)
Definition: TupleEx1.py:172
GaudiPython.Bindings.AppMgr
Definition: Bindings.py:842
TupleEx1.vct
def vct(sequence)
Definition: TupleEx1.py:52
TupleEx1
Definition: TupleEx1.py:1