The Gaudi Framework
v25r3
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
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
AnalysisInit.PhysAnalAlg.finalize
def finalize
Definition:
AnalysisInit.py:22
AnalysisInit.PhysAnalAlg.execute
def execute
Definition:
AnalysisInit.py:19
AnalysisInit.select
def select
Definition:
AnalysisInit.py:29
AnalysisInit.PhysAnalAlg.initialize
def initialize
Definition:
AnalysisInit.py:9
AnalysisInit.PhysAnalAlg
Definition:
AnalysisInit.py:8
GaudiPython
home
AnalysisInit.py
Generated on Wed Jul 9 2014 09:54:15 for The Gaudi Framework by
1.8.7