Added possibility to save and load initial values.
This commit is contained in:
@ -262,17 +262,15 @@
|
||||
|
||||
# Dummy, thin cylindres used for applying the SAME RA field-map (ROTATED by 90 deg.) to different anodes.
|
||||
# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cons, tori, etc.!
|
||||
/musr/command construct tubs RA_U 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 322
|
||||
/musr/command construct tubs RA_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 322
|
||||
/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 324
|
||||
/musr/command construct tubs RA_D 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 326
|
||||
/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 326
|
||||
/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 328
|
||||
|
||||
# RA_G - Ring Anode Ground Cylinder
|
||||
/musr/command construct tubs RA_G 58 62.5 58.0 0 360 G4_Cu 0 0 -221.5 log_World norot dead 351
|
||||
|
||||
# Ring Anodes visual attributes (optional)
|
||||
#/musr/command visattributes log_RA_EU invisible
|
||||
#/musr/command visattributes log_RA_MR invisible
|
||||
/musr/command visattributes log_RA_G invisible
|
||||
#/musr/command visattributes log_RA_G Grid_style
|
||||
|
||||
@ -446,6 +444,10 @@
|
||||
/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600
|
||||
/musr/command visattributes log_L1ENV invisible
|
||||
|
||||
# Lens 1 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 246 mm)
|
||||
/musr/command construct tubs L1ST 70 73 60 0 360 Steel 0 0 0 log_L1ENV norot dead 650
|
||||
|
||||
|
||||
# GPn - Ground Potential Electrodes. (n = 1-2, inner dia: 80 mm, outer dia: 84 mm, length: 100 mm)
|
||||
# n = 1 - Ground Electrode 1 (further from SR).
|
||||
/musr/command construct tubs L1GP1 40 44 50 0 360 Steel 0 0 -100 log_L1ENV norot dead 651
|
||||
@ -457,6 +459,10 @@
|
||||
# Lens 1 visual attributes (optional)
|
||||
/musr/command visattributes log_L1HP darkred
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
###################################################################################
|
||||
################### E L E C T R O M G N E T I C F I E L D S ##################
|
||||
###################################################################################
|
||||
@ -509,6 +515,10 @@
|
||||
/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B RA_BVOL
|
||||
/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L RA_LVOL
|
||||
|
||||
### Magnetic field at the sample
|
||||
/musr/command construct tubs SBField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.0 log_World norot dead 709 nofield
|
||||
/musr/command globalfield SampleBField 0. 0. 15.0 fromfile 3DB wew_rs_ext.map log_SBField SAM_BFIELD
|
||||
|
||||
# Set parameters for particle tracking in an EM field
|
||||
/musr/command globalfield setparameter SetLargestAcceptableStep 5
|
||||
/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5
|
||||
@ -605,8 +615,8 @@
|
||||
# VISUALIZATION options
|
||||
# To enable or disable visualization uncomment one of these lines
|
||||
# To modify visualization options edit the file vis.mac
|
||||
#*/vis/disable
|
||||
/control/execute vis.mac
|
||||
/vis/disable
|
||||
#*/control/execute vis.mac
|
||||
#*/control/execute visdawn.mac
|
||||
|
||||
|
||||
@ -739,7 +749,7 @@
|
||||
|
||||
# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons
|
||||
# to add 3.73 keV
|
||||
/gun/kenergy 15.0 keV
|
||||
/gun/kenergy ENERGY keV
|
||||
|
||||
# Set beam momentum direction
|
||||
/gun/direction 0.0 0.0 1.0
|
||||
@ -771,6 +781,6 @@
|
||||
|
||||
# BEAM ON
|
||||
#/run/beamOn 1000000
|
||||
#/run/beamOn 1
|
||||
#/run/beamOn 10000
|
||||
#/run/beamOn 10
|
||||
/run/beamOn 1000
|
||||
|
||||
|
Reference in New Issue
Block a user