00001
00002
00003 '''
00004 usage example:
00005
00006 nuwa.py -n 10 -o output.root runDark
00007
00008 '''
00009
00010 def configure():
00011 from ElecSim.ElecSimConf import EsDarkDetectorAlg
00012 darkDet = EsDarkDetectorAlg()
00013 darkDet.Detectors = ["DayaBayAD1"]
00014 from Gaudi.Configuration import ApplicationMgr
00015 app = ApplicationMgr()
00016 app.TopAlg.append(darkDet)
00017
00018 import ElecSim
00019 elecsim = ElecSim.Configure()
00020
00021 import TrigSim
00022 trigsim = TrigSim.Configure()
00023 import TrigSim.TrigSimConf as TsConf
00024 TsConf.TsTriggerAlg().TrigTools = [ "TsExternalTriggerTool" ]
00025
00026 import ReadoutSim
00027 rosim = ReadoutSim.Configure()
00028