Classes | |
class | TupleEx1 |
Simple algorithm which book&fill 3 histograms. More... | |
Functions | |
def | vct |
Primitive function which transform arbitrary sequence into GaudiPython.Vector ( std::vector<double> ). | |
def | configure |
job configuration | |
Variables | |
string | __author__ = 'Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr' |
SUCCESS = GaudiPython.SUCCESS | |
Rndm = GaudiPython.gbl.Rndm | |
Numbers = Rndm.Numbers | |
tuple | gaudi = GaudiPython.AppMgr() |
The actual job excution. |
def TupleEx1::vct | ( | sequence | ) |
Primitive function which transform arbitrary sequence into GaudiPython.Vector ( std::vector<double> ).
Primitive function which transform arbitrary sequence into GaudiPython.Vector ( std::vector<double> )
Definition at line 42 of file TupleEx1.py.
00042 : 00043 """ 00044 Primitive function which transform arbitrary sequence into 00045 GaudiPython.Vector ( std::vector<double> ) 00046 """ 00047 result = GaudiPython.gbl.GaudiPython.Vector() 00048 if hasattr( sequence , '__len__' ) : result.reserve ( len(sequence) ) 00049 elif hasattr( sequence , 'size' ) : result.reserve ( sequence.size() ) 00050 00051 for item in sequence : result.push_back( item ) 00052 return result 00053 00054 # ============================================================================= ## @class TupleEx1
def TupleEx1::configure | ( | gaudi = None |
) |
job configuration
Configuration of the job
Definition at line 146 of file TupleEx1.py.
00146 : 00147 """ Configuration of the job """ 00148 00149 if not gaudi : gaudi = GaudiPython.AppMgr() 00150 00151 gaudi.JobOptionsType = 'NONE' 00152 gaudi.EvtSel = 'NONE' 00153 gaudi.HistogramPersistency = 'ROOT' 00154 00155 gaudi.ExtSvc += ["NTupleSvc" ] 00156 00157 ntSvc = gaudi.service('NTupleSvc') 00158 ntSvc.Output = [ "MYLUN DATAFILE='TupleEx1.root' OPT='NEW' TYP='ROOT'" ] 00159 00160 gaudi.config() 00161 00162 gaudi.DLLs = [ 'GaudiAlg', 'RootHistCnv', ] 00163 00164 alg = TupleEx1('TupleEx1') 00165 gaudi.setAlgorithms( [alg] ) 00166 00167 ## configure the properties 00168 alg.NTupleLUN = 'MYLUN' 00169 00170 return SUCCESS 00171 00172 00173 # ============================================================================= ## The actual job excution
string TupleEx1::__author__ = 'Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr' [static] |
Definition at line 24 of file TupleEx1.py.
TupleEx1::SUCCESS = GaudiPython.SUCCESS [static] |
Definition at line 29 of file TupleEx1.py.
TupleEx1::Rndm = GaudiPython.gbl.Rndm [static] |
Definition at line 32 of file TupleEx1.py.
TupleEx1::Numbers = Rndm.Numbers [static] |
Definition at line 33 of file TupleEx1.py.
tuple TupleEx1::gaudi = GaudiPython.AppMgr() [static] |
The actual job excution.
Definition at line 179 of file TupleEx1.py.