00001
00002
00003 '''
00004 usage example:
00005
00006 nuwa.py -m "mpt"
00007
00008 as nosetest:
00009 nuwa.py -m "mpt" -n 1 --no-history
00010
00011 '''
00012
00013 def configure():
00014 import DybAlg
00015 import GaudiKernel.SystemOfUnits as units
00016 from DybAlg.DybAlgConf import DybModifyProperties
00017 mp = DybModifyProperties()
00018
00019
00020 v = ['ABSLENGTH','NEWCONSTANT',str(50.00*units.mm)]
00021 mp.ModifyPropertyMap['/dd/Materials/Acrylic'] = v
00022
00023
00024 v = ['RINDEX','NEWCONSTANT','1.2']
00025 mp.ModifyPropertyMap['/dd/Materials/LiquidScintillator'] = v
00026
00027 v = ['FASTCOMPONENT','NEWCONSTANT',str(4.3434*units.ns)]
00028 mp.ModifyPropertyMap['/dd/Materials/GdDopedLS'] = v
00029
00030
00031
00032 from Gaudi.Configuration import ApplicationMgr
00033 theA = ApplicationMgr()
00034 theA.TopAlg.append(mp)
00035
00036 return