| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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.execute
def execute(self)
Definition: AnalysisInit.py:19
AnalysisInit.PhysAnalAlg.initialize
def initialize(self)
Definition: AnalysisInit.py:9
AnalysisInit.PhysAnalAlg.finalize
def finalize(self)
Definition: AnalysisInit.py:22
AnalysisInit.PhysAnalAlg
Definition: AnalysisInit.py:8
AnalysisInit.select
def select(list, sel)
Definition: AnalysisInit.py:29