| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

# AnalysisInit.py

Go to the documentation of this file.

    00001 """ Simple Analysis Tools
    00002 """
    00003 from math import *
    00004 from random import *
    00005 from gaudiextra import PartSvc
    00006
    00007 #-------------------Algorithm-----------------------------------------------
    00008 class PhysAnalAlg(PyAlgorithm):
    00009         def initialize(self):
    00010                 print 'Initializing User Analysis...'
    00011                 global evt, his, det, pdt
    00012                 his  = g.histoSvc()
    00013                 evt  = g.evtSvc()
    00014                 det  = g.detSvc()
    00015                 pdt  = PartSvc()
    00016                 initialize()
    00017                 print '....User Analysis Initialized'
    00018                 return 1
    00019         def execute(self):
    00020                 execute()
    00021                 return 1
    00022         def finalize(self):
    00023                 print 'Finalizing User Analysis...'
    00024                 finalize()
    00025                 print '....User Analysis Finalized'
    00026                 return 1
    00027
    00028 #-------------------Global utility fucntions--------------------------------
    00029 def select(list,sel):
    00030         r = []
    00031         for i in list:
    00032                 if apply(sel,[i]): r.append(i)
    00033         return r
    00034
    00035 #-------------------Configuration of Appliaction ---------------------------
    00036
    00037 physalg  = PhysAnalAlg(g,'PhysAnalAlg')
    00038 g.topAlg = g.topAlg + ['PhysAnalAlg']
    00039 g.DLLs   = g.DLLs   + ['GaudiIntrospection']
    00040 g.ExtSvc = g.ExtSvc + ['IntrospectionSvc', 'ParticlePropertySvc']
    00041
    00042
    00043
    00044
    00045
    00046
    00047

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines