Gaudi Framework, version v23r9
Home
Generated: Thu Jul 18 2013
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
GaudiPython
home
AnalysisInit.py
Go to the documentation of this file.
1
""" Simple Analysis Tools
2
"""
3
from
math
import
*
4
from
random
import
*
5
from
gaudiextra
import
PartSvc
6
7
#-------------------Algorithm-----------------------------------------------
8
class
PhysAnalAlg
(PyAlgorithm):
9
def
initialize
(self):
10
print
'Initializing User Analysis...'
11
global
evt, his, det, pdt
12
his = g.histoSvc()
13
evt = g.evtSvc()
14
det = g.detSvc()
15
pdt = PartSvc()
16
initialize
()
17
print
'....User Analysis Initialized'
18
return
1
19
def
execute
(self):
20
execute
()
21
return
1
22
def
finalize
(self):
23
print
'Finalizing User Analysis...'
24
finalize
()
25
print
'....User Analysis Finalized'
26
return
1
27
28
#-------------------Global utility fucntions--------------------------------
29
def
select
(list,sel):
30
r = []
31
for
i
in
list:
32
if
apply(sel,[i]): r.append(i)
33
return
r
34
35
#-------------------Configuration of Appliaction ---------------------------
36
37
physalg =
PhysAnalAlg
(g,
'PhysAnalAlg'
)
38
g.topAlg = g.topAlg + [
'PhysAnalAlg'
]
39
g.DLLs = g.DLLs + [
'GaudiIntrospection'
]
40
g.ExtSvc = g.ExtSvc + [
'IntrospectionSvc'
,
'ParticlePropertySvc'
]
41
42
43
44
45
46
47
Generated at Thu Jul 18 2013 12:18:04 for Gaudi Framework, version v23r9 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004