00001
00002
00003 __all__ = ['Configure','ElecSimConf','Viewer']
00004
00005 class Configure:
00006 '''
00007 Create default configuration for ElecSim. Configuration only adds the
00008 ElecSim algorithm, EsFrontEndAlg.
00009
00010 Changes to algorithm and tool properties from their defaults can be
00011 made in individual job option scripts by accessing them via ElecSimConf.
00012 '''
00013
00014 def __init__(self, use_push_algs = True,use_sim_subseq=False):
00015 '''
00016 Configure ElecSim.
00017
00018 Default tools are:
00019 PmtTool - EsPmtEffectPulseTool
00020 RpcTool - EsIdealPulseTool
00021 FeeTool - EsIdealFeeTool
00022 FecTool - EsIdealFecTool
00023 '''
00024
00025 import DataSvc
00026 self.dataSvc = DataSvc.Configure()
00027
00028 if use_push_algs:
00029 from ElecSim.ElecSimConf import EsFrontEndAlg
00030 self.frontEndAlg = EsFrontEndAlg()
00031
00032 if not use_sim_subseq:
00033 from Gaudi.Configuration import ApplicationMgr
00034 app = ApplicationMgr()
00035 app.TopAlg.append(self.frontEndAlg)
00036 pass
00037 pass
00038
00039 return
00040