/search.css" rel="stylesheet" type="text/css"/> /search.js">
00001 #!/usr/bin/env python 00002 00003 ''' 00004 This demonstrates the basic properties of the DbyEventMgr classes 00005 that manage the TES and the AES. 00006 00007 usage example: 00008 00009 nuwa.py -n 20 -m UseMockEvt -m TESDemo 00010 00011 ''' 00012 00013 00014 def configure(): 00015 from Gaudi.Configuration import ApplicationMgr 00016 theApp = ApplicationMgr() 00017 00018 from MockEvt.MockEvtConf import MockEvtStorageSvc 00019 storeSvc = MockEvtStorageSvc("DybStorageSvc") 00020 theApp.ExtSvc.append(storeSvc) 00021 00022 from DybEventMgr.DybEventMgrConf import ArchiveTrimSvc 00023 trimSvc = ArchiveTrimSvc() 00024 theApp.ExtSvc.append(trimSvc) 00025 trimSvc.DefaultWindowSeconds = 0.0001 # not in system-of-units time! 00026 00027 from TESDemo.TESDemoConf import TESDemoTracing, TESDemoTrim, TESDemoFill1, \ 00028 TESDemoFill2, TESDemoUse, TESDemoMark, TESDemoOutput 00029 00030 tracing = TESDemoTracing() 00031 tracing.On = 1 00032 theApp.TopAlg.append(tracing) 00033 00034 trim = TESDemoTrim() 00035 theApp.TopAlg.append(trim) 00036 00037 fill1 = TESDemoFill1() 00038 fill1.PositronPercentage = 20 00039 theApp.TopAlg.append(fill1) 00040 00041 fill2 = TESDemoFill2() 00042 fill2.NeutronPercentage = 40 00043 theApp.TopAlg.append(fill2) 00044 00045 mark = TESDemoMark() 00046 theApp.TopAlg.append(mark) 00047 00048 out = TESDemoOutput() 00049 theApp.TopAlg.append(out) 00050 00051 return 00052 00053 def run(app): 00054 pass