The Gaudi Framework  v36r16 (ea80daf8)
TupleEx1 Namespace Reference

Classes

class  TupleEx1
 

Functions

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

Variables

 __author__
 
 SUCCESS
 
 Rndm
 
 Numbers
 
 gaudi
 

Function Documentation

◆ configure()

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

Definition at line 170 of file TupleEx1.py.

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

◆ vct()

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

Definition at line 50 of file TupleEx1.py.

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

Variable Documentation

◆ __author__

TupleEx1.__author__
private

Definition at line 30 of file TupleEx1.py.

◆ gaudi

TupleEx1.gaudi

Definition at line 207 of file TupleEx1.py.

◆ Numbers

TupleEx1.Numbers

Definition at line 39 of file TupleEx1.py.

◆ Rndm

TupleEx1.Rndm

Definition at line 38 of file TupleEx1.py.

◆ SUCCESS

TupleEx1.SUCCESS

Definition at line 35 of file TupleEx1.py.

TupleEx1.configure
def configure(gaudi=None)
Definition: TupleEx1.py:170
GaudiPython.Bindings.AppMgr
Definition: Bindings.py:869
TupleEx1.vct
def vct(sequence)
Definition: TupleEx1.py:50
TupleEx1
Definition: TupleEx1.py:1