From ff6fb614328774b54d1d1e8688c8e8d3429d6629 Mon Sep 17 00:00:00 2001 From: nemu Date: Tue, 20 Sep 2016 18:54:07 +0200 Subject: [PATCH] Added LEM/templates directory to repository --- run/LEM/templates/31000.mac | 937 +++++++++++++++++ run/LEM/templates/310001.mac | 937 +++++++++++++++++ run/LEM/templates/310002.mac | 937 +++++++++++++++++ run/LEM/templates/310003.mac | 937 +++++++++++++++++ run/LEM/templates/310004.mac | 937 +++++++++++++++++ run/LEM/templates/310005.mac | 937 +++++++++++++++++ run/LEM/templates/310006.mac | 939 +++++++++++++++++ run/LEM/templates/310007.mac | 939 +++++++++++++++++ run/LEM/templates/310008.mac | 939 +++++++++++++++++ run/LEM/templates/31013.mac | 938 +++++++++++++++++ run/LEM/templates/31015.mac | 938 +++++++++++++++++ run/LEM/templates/410004.mac | 937 +++++++++++++++++ run/LEM/templates/410005.mac | 937 +++++++++++++++++ run/LEM/templates/410006.mac | 939 +++++++++++++++++ run/LEM/templates/410007.mac | 939 +++++++++++++++++ run/LEM/templates/410008.mac | 939 +++++++++++++++++ run/LEM/templates/410009.mac | 938 +++++++++++++++++ run/LEM/templates/410010.mac | 937 +++++++++++++++++ run/LEM/templates/41027501.mac | 938 +++++++++++++++++ run/LEM/templates/41027502.mac | 938 +++++++++++++++++ run/LEM/templates/41027503.mac | 938 +++++++++++++++++ run/LEM/templates/41027504.mac | 938 +++++++++++++++++ run/LEM/templates/41027505.mac | 938 +++++++++++++++++ run/LEM/templates/41030001.mac | 938 +++++++++++++++++ run/LEM/templates/41030002.mac | 938 +++++++++++++++++ run/LEM/templates/41032501.mac | 938 +++++++++++++++++ run/LEM/templates/41032502.mac | 938 +++++++++++++++++ run/LEM/templates/760000.mac | 939 +++++++++++++++++ run/LEM/templates/760001.mac | 939 +++++++++++++++++ run/LEM/templates/760002.mac | 939 +++++++++++++++++ run/LEM/templates/760003.mac | 939 +++++++++++++++++ run/LEM/templates/760004.mac | 939 +++++++++++++++++ run/LEM/templates/760005.mac | 939 +++++++++++++++++ run/LEM/templates/760006.mac | 939 +++++++++++++++++ run/LEM/templates/760007.mac | 939 +++++++++++++++++ run/LEM/templates/760008.mac | 939 +++++++++++++++++ run/LEM/templates/7601500.mac | 939 +++++++++++++++++ run/LEM/templates/7601501.mac | 939 +++++++++++++++++ run/LEM/templates/76015011.mac | 939 +++++++++++++++++ run/LEM/templates/76015012.mac | 939 +++++++++++++++++ run/LEM/templates/76015013.mac | 939 +++++++++++++++++ run/LEM/templates/76015014.mac | 939 +++++++++++++++++ run/LEM/templates/76015015.mac | 939 +++++++++++++++++ run/LEM/templates/76015016.mac | 939 +++++++++++++++++ run/LEM/templates/76015017.mac | 939 +++++++++++++++++ run/LEM/templates/76015018.mac | 939 +++++++++++++++++ run/LEM/templates/76015019.mac | 939 +++++++++++++++++ run/LEM/templates/7601502.mac | 939 +++++++++++++++++ run/LEM/templates/76015020.mac | 939 +++++++++++++++++ run/LEM/templates/7601503.mac | 939 +++++++++++++++++ run/LEM/templates/7601504.mac | 939 +++++++++++++++++ run/LEM/templates/7601505.mac | 939 +++++++++++++++++ run/LEM/templates/7601506.mac | 939 +++++++++++++++++ run/LEM/templates/7601507.mac | 939 +++++++++++++++++ run/LEM/templates/7601508.mac | 939 +++++++++++++++++ run/LEM/templates/7601509.mac | 939 +++++++++++++++++ run/LEM/templates/7601510.mac | 939 +++++++++++++++++ run/LEM/templates/800000.mac | 940 +++++++++++++++++ run/LEM/templates/800001.mac | 940 +++++++++++++++++ run/LEM/templates/800002.mac | 940 +++++++++++++++++ run/LEM/templates/800100.mac | 940 +++++++++++++++++ run/LEM/templates/800101.mac | 940 +++++++++++++++++ run/LEM/templates/800102.mac | 940 +++++++++++++++++ run/LEM/templates/800103.mac | 940 +++++++++++++++++ run/LEM/templates/800104.mac | 940 +++++++++++++++++ run/LEM/templates/800105.mac | 940 +++++++++++++++++ run/LEM/templates/800110.mac | 940 +++++++++++++++++ run/LEM/templates/800111.mac | 940 +++++++++++++++++ run/LEM/templates/800112.mac | 940 +++++++++++++++++ run/LEM/templates/800113.mac | 940 +++++++++++++++++ run/LEM/templates/800114.mac | 940 +++++++++++++++++ run/LEM/templates/800200.mac | 940 +++++++++++++++++ run/LEM/templates/800201.mac | 940 +++++++++++++++++ run/LEM/templates/800202.mac | 940 +++++++++++++++++ run/LEM/templates/800203.mac | 940 +++++++++++++++++ run/LEM/templates/800204.mac | 940 +++++++++++++++++ run/LEM/templates/800205.mac | 940 +++++++++++++++++ run/LEM/templates/800300.mac | 940 +++++++++++++++++ run/LEM/templates/800301.mac | 940 +++++++++++++++++ run/LEM/templates/800302.mac | 940 +++++++++++++++++ run/LEM/templates/800303.mac | 940 +++++++++++++++++ run/LEM/templates/800304.mac | 940 +++++++++++++++++ run/LEM/templates/800305.mac | 940 +++++++++++++++++ run/LEM/templates/800310.mac | 940 +++++++++++++++++ run/LEM/templates/800311.mac | 940 +++++++++++++++++ run/LEM/templates/800312.mac | 940 +++++++++++++++++ run/LEM/templates/800313.mac | 940 +++++++++++++++++ run/LEM/templates/RunSummary.ods | Bin 0 -> 79764 bytes run/LEM/templates/Template_12kV_muons.mac | 1009 ++++++++++++++++++ run/LEM/templates/Template_12kV_protons.mac | 1010 +++++++++++++++++++ run/LEM/templates/Template_15kV_muons.mac | 1009 ++++++++++++++++++ run/LEM/templates/Template_15kV_protons.mac | 1010 +++++++++++++++++++ 92 files changed, 85731 insertions(+) create mode 100644 run/LEM/templates/31000.mac create mode 100644 run/LEM/templates/310001.mac create mode 100644 run/LEM/templates/310002.mac create mode 100644 run/LEM/templates/310003.mac create mode 100644 run/LEM/templates/310004.mac create mode 100644 run/LEM/templates/310005.mac create mode 100644 run/LEM/templates/310006.mac create mode 100644 run/LEM/templates/310007.mac create mode 100644 run/LEM/templates/310008.mac create mode 100644 run/LEM/templates/31013.mac create mode 100644 run/LEM/templates/31015.mac create mode 100644 run/LEM/templates/410004.mac create mode 100644 run/LEM/templates/410005.mac create mode 100644 run/LEM/templates/410006.mac create mode 100644 run/LEM/templates/410007.mac create mode 100644 run/LEM/templates/410008.mac create mode 100644 run/LEM/templates/410009.mac create mode 100644 run/LEM/templates/410010.mac create mode 100644 run/LEM/templates/41027501.mac create mode 100644 run/LEM/templates/41027502.mac create mode 100644 run/LEM/templates/41027503.mac create mode 100644 run/LEM/templates/41027504.mac create mode 100644 run/LEM/templates/41027505.mac create mode 100644 run/LEM/templates/41030001.mac create mode 100644 run/LEM/templates/41030002.mac create mode 100644 run/LEM/templates/41032501.mac create mode 100644 run/LEM/templates/41032502.mac create mode 100644 run/LEM/templates/760000.mac create mode 100644 run/LEM/templates/760001.mac create mode 100644 run/LEM/templates/760002.mac create mode 100644 run/LEM/templates/760003.mac create mode 100644 run/LEM/templates/760004.mac create mode 100644 run/LEM/templates/760005.mac create mode 100644 run/LEM/templates/760006.mac create mode 100644 run/LEM/templates/760007.mac create mode 100644 run/LEM/templates/760008.mac create mode 100644 run/LEM/templates/7601500.mac create mode 100644 run/LEM/templates/7601501.mac create mode 100644 run/LEM/templates/76015011.mac create mode 100644 run/LEM/templates/76015012.mac create mode 100644 run/LEM/templates/76015013.mac create mode 100644 run/LEM/templates/76015014.mac create mode 100644 run/LEM/templates/76015015.mac create mode 100644 run/LEM/templates/76015016.mac create mode 100644 run/LEM/templates/76015017.mac create mode 100644 run/LEM/templates/76015018.mac create mode 100644 run/LEM/templates/76015019.mac create mode 100644 run/LEM/templates/7601502.mac create mode 100644 run/LEM/templates/76015020.mac create mode 100644 run/LEM/templates/7601503.mac create mode 100644 run/LEM/templates/7601504.mac create mode 100644 run/LEM/templates/7601505.mac create mode 100644 run/LEM/templates/7601506.mac create mode 100644 run/LEM/templates/7601507.mac create mode 100644 run/LEM/templates/7601508.mac create mode 100644 run/LEM/templates/7601509.mac create mode 100644 run/LEM/templates/7601510.mac create mode 100644 run/LEM/templates/800000.mac create mode 100644 run/LEM/templates/800001.mac create mode 100644 run/LEM/templates/800002.mac create mode 100644 run/LEM/templates/800100.mac create mode 100644 run/LEM/templates/800101.mac create mode 100644 run/LEM/templates/800102.mac create mode 100644 run/LEM/templates/800103.mac create mode 100644 run/LEM/templates/800104.mac create mode 100644 run/LEM/templates/800105.mac create mode 100644 run/LEM/templates/800110.mac create mode 100644 run/LEM/templates/800111.mac create mode 100644 run/LEM/templates/800112.mac create mode 100644 run/LEM/templates/800113.mac create mode 100644 run/LEM/templates/800114.mac create mode 100644 run/LEM/templates/800200.mac create mode 100644 run/LEM/templates/800201.mac create mode 100644 run/LEM/templates/800202.mac create mode 100644 run/LEM/templates/800203.mac create mode 100644 run/LEM/templates/800204.mac create mode 100644 run/LEM/templates/800205.mac create mode 100644 run/LEM/templates/800300.mac create mode 100644 run/LEM/templates/800301.mac create mode 100644 run/LEM/templates/800302.mac create mode 100644 run/LEM/templates/800303.mac create mode 100644 run/LEM/templates/800304.mac create mode 100644 run/LEM/templates/800305.mac create mode 100644 run/LEM/templates/800310.mac create mode 100644 run/LEM/templates/800311.mac create mode 100644 run/LEM/templates/800312.mac create mode 100644 run/LEM/templates/800313.mac create mode 100644 run/LEM/templates/RunSummary.ods create mode 100644 run/LEM/templates/Template_12kV_muons.mac create mode 100644 run/LEM/templates/Template_12kV_protons.mac create mode 100644 run/LEM/templates/Template_15kV_muons.mac create mode 100644 run/LEM/templates/Template_15kV_protons.mac diff --git a/run/LEM/templates/31000.mac b/run/LEM/templates/31000.mac new file mode 100644 index 0000000..1cda9ae --- /dev/null +++ b/run/LEM/templates/31000.mac @@ -0,0 +1,937 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +#/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.5 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 6.30 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.6878 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0056551 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +#/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +#/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +#/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +#/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 8.62 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 8.66 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 8.62 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 8.58 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/310001.mac b/run/LEM/templates/310001.mac new file mode 100644 index 0000000..b11788a --- /dev/null +++ b/run/LEM/templates/310001.mac @@ -0,0 +1,937 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.5 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 7.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.7142 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0057 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 8.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 7.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 7.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 7.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 7.5 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/310002.mac b/run/LEM/templates/310002.mac new file mode 100644 index 0000000..351c348 --- /dev/null +++ b/run/LEM/templates/310002.mac @@ -0,0 +1,937 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.5 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 7.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.7142 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0057 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 8.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 7.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 7.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 7.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 7.5 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.026 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/310003.mac b/run/LEM/templates/310003.mac new file mode 100644 index 0000000..12b8470 --- /dev/null +++ b/run/LEM/templates/310003.mac @@ -0,0 +1,937 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.5 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 7.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.7142 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0057 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 8.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 7.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 7.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 7.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 7.5 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -10 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.026 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/310004.mac b/run/LEM/templates/310004.mac new file mode 100644 index 0000000..ad54447 --- /dev/null +++ b/run/LEM/templates/310004.mac @@ -0,0 +1,937 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.5 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 7.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.7142 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0057 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 8.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 7.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 7.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 7.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 7.5 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -10 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 15.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/310005.mac b/run/LEM/templates/310005.mac new file mode 100644 index 0000000..3a11304 --- /dev/null +++ b/run/LEM/templates/310005.mac @@ -0,0 +1,937 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.5 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 7.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.7142 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0057 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 8.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 7.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 7.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 7.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 7.5 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 15.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/310006.mac b/run/LEM/templates/310006.mac new file mode 100644 index 0000000..3c6bb81 --- /dev/null +++ b/run/LEM/templates/310006.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +#/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.5 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 6.30 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.6878 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0056551 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +#/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +#/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +#/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +#/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 8.62 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 8.66 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 8.62 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 8.58 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/310007.mac b/run/LEM/templates/310007.mac new file mode 100644 index 0000000..387ca60 --- /dev/null +++ b/run/LEM/templates/310007.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +#/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.75 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 6.30 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.75 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0056551 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +#/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +#/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +#/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +#/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 8.62 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 8.62 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 8.62 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 8.62 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/310008.mac b/run/LEM/templates/310008.mac new file mode 100644 index 0000000..dc935df --- /dev/null +++ b/run/LEM/templates/310008.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +#/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.75 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 6.30 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.75 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0056551 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +#/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +#/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +#/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +#/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 8.62 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 8.62 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 8.62 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 8.62 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 15.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/31013.mac b/run/LEM/templates/31013.mac new file mode 100644 index 0000000..614daf9 --- /dev/null +++ b/run/LEM/templates/31013.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +#/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.5 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 5.70 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.476 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0151 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +#/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +#/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +#/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +#/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 8.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 8.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 8.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 8.15 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +#/gun/particle mu+ +/gun/particle proton + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 5.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# FWHM of kenergy= 2.354 eV Pmu= 0.097MeV/c ==> sigma = /2.354 = MeV +/gun/momentumsmearing 0.0097 MeV +#/gun/momentumsmearing 0 +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/31015.mac b/run/LEM/templates/31015.mac new file mode 100644 index 0000000..8be81e9 --- /dev/null +++ b/run/LEM/templates/31015.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +#/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.168498 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.6933 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.75 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 6.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 5.70 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.476 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.0151 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +#/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +#/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +#/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +#/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 8.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 8.23 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 8.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 8.07 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +#/gun/particle mu+ +/gun/particle proton + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 5.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# FWHM of kenergy= 2.354 eV Pmu= 0.097MeV/c ==> sigma = /2.354 = MeV +/gun/momentumsmearing 0.0097 MeV +#/gun/momentumsmearing 0 +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/410004.mac b/run/LEM/templates/410004.mac new file mode 100644 index 0000000..fad72c2 --- /dev/null +++ b/run/LEM/templates/410004.mac @@ -0,0 +1,937 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.75 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.57 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.9 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.9 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.9 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.9 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -10 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 15.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/410005.mac b/run/LEM/templates/410005.mac new file mode 100644 index 0000000..13f36d7 --- /dev/null +++ b/run/LEM/templates/410005.mac @@ -0,0 +1,937 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.75 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.57 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.9 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.9 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.9 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.9 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 15.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/410006.mac b/run/LEM/templates/410006.mac new file mode 100644 index 0000000..b4c731c --- /dev/null +++ b/run/LEM/templates/410006.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.75 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.57 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.9 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.9 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.9 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.9 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 15.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/410007.mac b/run/LEM/templates/410007.mac new file mode 100644 index 0000000..305ca8a --- /dev/null +++ b/run/LEM/templates/410007.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.75 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.57 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.9 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.9 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.9 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.9 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/410008.mac b/run/LEM/templates/410008.mac new file mode 100644 index 0000000..ee7983f --- /dev/null +++ b/run/LEM/templates/410008.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -549.5 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.9 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.9 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.9 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.9 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/410009.mac b/run/LEM/templates/410009.mac new file mode 100644 index 0000000..d2ae2cd --- /dev/null +++ b/run/LEM/templates/410009.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.9 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.9 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.9 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.9 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/410010.mac b/run/LEM/templates/410010.mac new file mode 100644 index 0000000..a453b4b --- /dev/null +++ b/run/LEM/templates/410010.mac @@ -0,0 +1,937 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.75 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.57 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.9 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.9 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.9 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.9 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -5 -5 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 15.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/41027501.mac b/run/LEM/templates/41027501.mac new file mode 100644 index 0000000..758b840 --- /dev/null +++ b/run/LEM/templates/41027501.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.9 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.9 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.9 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.9 + +### 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_convMap.map log_SBField 0.275 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/41027502.mac b/run/LEM/templates/41027502.mac new file mode 100644 index 0000000..3ae49de --- /dev/null +++ b/run/LEM/templates/41027502.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0 + +### 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_convMap.map log_SBField 0.275 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/41027503.mac b/run/LEM/templates/41027503.mac new file mode 100644 index 0000000..5d75e97 --- /dev/null +++ b/run/LEM/templates/41027503.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 3.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 3.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 3.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 3.5 + +### 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_convMap.map log_SBField 0.275 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/41027504.mac b/run/LEM/templates/41027504.mac new file mode 100644 index 0000000..bd5c294 --- /dev/null +++ b/run/LEM/templates/41027504.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 4.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 4.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 4.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 4.5 + +### 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_convMap.map log_SBField 0.275 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/41027505.mac b/run/LEM/templates/41027505.mac new file mode 100644 index 0000000..c498537 --- /dev/null +++ b/run/LEM/templates/41027505.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 7.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 7.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 7.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 7.5 + +### 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_convMap.map log_SBField 0.275 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/41030001.mac b/run/LEM/templates/41030001.mac new file mode 100644 index 0000000..7202423 --- /dev/null +++ b/run/LEM/templates/41030001.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.9 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.9 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.9 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.9 + +### 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_convMap.map log_SBField 0.3 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/41030002.mac b/run/LEM/templates/41030002.mac new file mode 100644 index 0000000..307128f --- /dev/null +++ b/run/LEM/templates/41030002.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0 + +### 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_convMap.map log_SBField 0.3 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/41032501.mac b/run/LEM/templates/41032501.mac new file mode 100644 index 0000000..69a794b --- /dev/null +++ b/run/LEM/templates/41032501.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.9 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.9 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.9 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.9 + +### 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_convMap.map log_SBField 0.325 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/41032502.mac b/run/LEM/templates/41032502.mac new file mode 100644 index 0000000..7f709b2 --- /dev/null +++ b/run/LEM/templates/41032502.mac @@ -0,0 +1,938 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.25275 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -1.04 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 1.125 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 10.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.47 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0 + +### 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_convMap.map log_SBField 0.325 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/760000.mac b/run/LEM/templates/760000.mac new file mode 100644 index 0000000..e779727 --- /dev/null +++ b/run/LEM/templates/760000.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.15 + +### 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 0.000 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/760001.mac b/run/LEM/templates/760001.mac new file mode 100644 index 0000000..533f740 --- /dev/null +++ b/run/LEM/templates/760001.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.15 + +### 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 0.01 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/760002.mac b/run/LEM/templates/760002.mac new file mode 100644 index 0000000..910811e --- /dev/null +++ b/run/LEM/templates/760002.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.15 + +### 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 0.02 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/760003.mac b/run/LEM/templates/760003.mac new file mode 100644 index 0000000..de7121f --- /dev/null +++ b/run/LEM/templates/760003.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.15 + +### 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 0.03 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/760004.mac b/run/LEM/templates/760004.mac new file mode 100644 index 0000000..b678312 --- /dev/null +++ b/run/LEM/templates/760004.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.15 + +### 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 0.04 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/760005.mac b/run/LEM/templates/760005.mac new file mode 100644 index 0000000..9b81d3e --- /dev/null +++ b/run/LEM/templates/760005.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.15 + +### 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 0.05 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/760006.mac b/run/LEM/templates/760006.mac new file mode 100644 index 0000000..214b1d4 --- /dev/null +++ b/run/LEM/templates/760006.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.15 + +### 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 0.06 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/760007.mac b/run/LEM/templates/760007.mac new file mode 100644 index 0000000..6194336 --- /dev/null +++ b/run/LEM/templates/760007.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.15 + +### 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 0.07 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/760008.mac b/run/LEM/templates/760008.mac new file mode 100644 index 0000000..6cccd25 --- /dev/null +++ b/run/LEM/templates/760008.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.15 + +### 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 0.08 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601500.mac b/run/LEM/templates/7601500.mac new file mode 100644 index 0000000..050248f --- /dev/null +++ b/run/LEM/templates/7601500.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601501.mac b/run/LEM/templates/7601501.mac new file mode 100644 index 0000000..fbd3ae5 --- /dev/null +++ b/run/LEM/templates/7601501.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 1.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 1.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 1.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 1.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/76015011.mac b/run/LEM/templates/76015011.mac new file mode 100644 index 0000000..a81127e --- /dev/null +++ b/run/LEM/templates/76015011.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T -1.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R -1.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B -1.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L -1.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/76015012.mac b/run/LEM/templates/76015012.mac new file mode 100644 index 0000000..8edb424 --- /dev/null +++ b/run/LEM/templates/76015012.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T -2.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R -2.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B -2.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L -2.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/76015013.mac b/run/LEM/templates/76015013.mac new file mode 100644 index 0000000..d068980 --- /dev/null +++ b/run/LEM/templates/76015013.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T -3.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R -3.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B -3.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L -3.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/76015014.mac b/run/LEM/templates/76015014.mac new file mode 100644 index 0000000..d2a10f2 --- /dev/null +++ b/run/LEM/templates/76015014.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T -4.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R -4.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B -4.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L -4.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/76015015.mac b/run/LEM/templates/76015015.mac new file mode 100644 index 0000000..a8df493 --- /dev/null +++ b/run/LEM/templates/76015015.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T -5.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R -5.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B -5.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L -5.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/76015016.mac b/run/LEM/templates/76015016.mac new file mode 100644 index 0000000..6f1c06d --- /dev/null +++ b/run/LEM/templates/76015016.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T -6.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R -6.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B -6.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L -6.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/76015017.mac b/run/LEM/templates/76015017.mac new file mode 100644 index 0000000..6492e2b --- /dev/null +++ b/run/LEM/templates/76015017.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T -7.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R -7.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B -7.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L -7.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/76015018.mac b/run/LEM/templates/76015018.mac new file mode 100644 index 0000000..afbfb9c --- /dev/null +++ b/run/LEM/templates/76015018.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T -8.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R -8.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B -8.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L -8.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/76015019.mac b/run/LEM/templates/76015019.mac new file mode 100644 index 0000000..9c6a24f --- /dev/null +++ b/run/LEM/templates/76015019.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T -9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R -9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B -9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L -9.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601502.mac b/run/LEM/templates/7601502.mac new file mode 100644 index 0000000..190e950 --- /dev/null +++ b/run/LEM/templates/7601502.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 3.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 3.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 3.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 3.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/76015020.mac b/run/LEM/templates/76015020.mac new file mode 100644 index 0000000..14c59f2 --- /dev/null +++ b/run/LEM/templates/76015020.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T -10.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R -10.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B -10.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L -10.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601503.mac b/run/LEM/templates/7601503.mac new file mode 100644 index 0000000..84f2be0 --- /dev/null +++ b/run/LEM/templates/7601503.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 5.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 5.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 5.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 5.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601504.mac b/run/LEM/templates/7601504.mac new file mode 100644 index 0000000..2583a21 --- /dev/null +++ b/run/LEM/templates/7601504.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 7.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 7.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 7.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 7.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601505.mac b/run/LEM/templates/7601505.mac new file mode 100644 index 0000000..61f19ba --- /dev/null +++ b/run/LEM/templates/7601505.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601506.mac b/run/LEM/templates/7601506.mac new file mode 100644 index 0000000..4f568aa --- /dev/null +++ b/run/LEM/templates/7601506.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.75 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.75 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.75 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.75 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601507.mac b/run/LEM/templates/7601507.mac new file mode 100644 index 0000000..0471862 --- /dev/null +++ b/run/LEM/templates/7601507.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.15 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.15 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.15 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.15 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601508.mac b/run/LEM/templates/7601508.mac new file mode 100644 index 0000000..c7be206 --- /dev/null +++ b/run/LEM/templates/7601508.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.35 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.35 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.35 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.35 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601509.mac b/run/LEM/templates/7601509.mac new file mode 100644 index 0000000..5368120 --- /dev/null +++ b/run/LEM/templates/7601509.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.55 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.55 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.55 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.55 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/7601510.mac b/run/LEM/templates/7601510.mac new file mode 100644 index 0000000..ff072df --- /dev/null +++ b/run/LEM/templates/7601510.mac @@ -0,0 +1,939 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 500 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 450 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 240 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0.9 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 1.95 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00619 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0 + +### 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_convMap.map log_SBField 0.15 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 15.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.056MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800000.mac b/run/LEM/templates/800000.mac new file mode 100644 index 0000000..0908994 --- /dev/null +++ b/run/LEM/templates/800000.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +# /musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +# /musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +# /musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0 +# /musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0 +# /musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0 +# /musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800001.mac b/run/LEM/templates/800001.mac new file mode 100644 index 0000000..741990d --- /dev/null +++ b/run/LEM/templates/800001.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.5 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +# /musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +# /musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +# /musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0 +# /musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0 +# /musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0 +# /musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800002.mac b/run/LEM/templates/800002.mac new file mode 100644 index 0000000..6c39ed7 --- /dev/null +++ b/run/LEM/templates/800002.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ +# +/musr/command construct box Grid1 9.1 25 25 G4_Galactic 488.9 0.0 -1678.0 log_World norot dead 212 +/musr/command globalfield Grid1_field 9.1 25 25 uniform 488.9 0.0 -1678.0 log_Grid1 0 0 0 -0.2022 0 0 + +/musr/command construct box Grid2 5 24 24 G4_Galactic 475.8 0.0 -1678.0 log_World norot dead 214 +/musr/command globalfield Grid2_field 5 24 24 uniform 475.8 0.0 -1678.0 log_Grid2 0 0 0 -0.832 0 0 + +/musr/command globalfield printFieldValueAtPoint 488.9 0.0 -1678.0 +/musr/command globalfield printFieldValueAtPoint 475.8 0.0 -1678.0 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +# /musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +# /musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +# /musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0 +# /musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0 +# /musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0 +# /musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 14 0 mm +/gun/boxboundarycentre 499 0 -1678 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800100.mac b/run/LEM/templates/800100.mac new file mode 100644 index 0000000..1a85194 --- /dev/null +++ b/run/LEM/templates/800100.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 3 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.0 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800101.mac b/run/LEM/templates/800101.mac new file mode 100644 index 0000000..ddc5414 --- /dev/null +++ b/run/LEM/templates/800101.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 3 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.5 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800102.mac b/run/LEM/templates/800102.mac new file mode 100644 index 0000000..f812efc --- /dev/null +++ b/run/LEM/templates/800102.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 3 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.5 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800103.mac b/run/LEM/templates/800103.mac new file mode 100644 index 0000000..1c9720e --- /dev/null +++ b/run/LEM/templates/800103.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 3 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 11.0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 11.0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 11.0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 11.0 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800104.mac b/run/LEM/templates/800104.mac new file mode 100644 index 0000000..1a2f589 --- /dev/null +++ b/run/LEM/templates/800104.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 3 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.75 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.75 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.75 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.75 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800105.mac b/run/LEM/templates/800105.mac new file mode 100644 index 0000000..cc6d391 --- /dev/null +++ b/run/LEM/templates/800105.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 3 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.25 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.25 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.25 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.25 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800110.mac b/run/LEM/templates/800110.mac new file mode 100644 index 0000000..d99af35 --- /dev/null +++ b/run/LEM/templates/800110.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.5 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800111.mac b/run/LEM/templates/800111.mac new file mode 100644 index 0000000..64cfa44 --- /dev/null +++ b/run/LEM/templates/800111.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.75 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.75 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.75 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.75 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800112.mac b/run/LEM/templates/800112.mac new file mode 100644 index 0000000..daf84dd --- /dev/null +++ b/run/LEM/templates/800112.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.0 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800113.mac b/run/LEM/templates/800113.mac new file mode 100644 index 0000000..9b8c1c3 --- /dev/null +++ b/run/LEM/templates/800113.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.25 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.25 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.25 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.25 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800114.mac b/run/LEM/templates/800114.mac new file mode 100644 index 0000000..4c6ae8e --- /dev/null +++ b/run/LEM/templates/800114.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.5 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800200.mac b/run/LEM/templates/800200.mac new file mode 100644 index 0000000..adaa908 --- /dev/null +++ b/run/LEM/templates/800200.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 5.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.25 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.25 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.25 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.25 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800201.mac b/run/LEM/templates/800201.mac new file mode 100644 index 0000000..8e4dc0f --- /dev/null +++ b/run/LEM/templates/800201.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 5.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.50 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.50 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.50 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.50 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800202.mac b/run/LEM/templates/800202.mac new file mode 100644 index 0000000..e3ce556 --- /dev/null +++ b/run/LEM/templates/800202.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 5.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.75 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.75 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.75 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.75 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800203.mac b/run/LEM/templates/800203.mac new file mode 100644 index 0000000..aaaea18 --- /dev/null +++ b/run/LEM/templates/800203.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 5.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.0 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800204.mac b/run/LEM/templates/800204.mac new file mode 100644 index 0000000..bd5b55e --- /dev/null +++ b/run/LEM/templates/800204.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 5.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.25 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.25 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.25 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.25 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800205.mac b/run/LEM/templates/800205.mac new file mode 100644 index 0000000..5cef515 --- /dev/null +++ b/run/LEM/templates/800205.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 5.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.5 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 28 28 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 15 15 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800300.mac b/run/LEM/templates/800300.mac new file mode 100644 index 0000000..c5ebf21 --- /dev/null +++ b/run/LEM/templates/800300.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.5 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 6.0 6.0 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 7.5 7.5 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800301.mac b/run/LEM/templates/800301.mac new file mode 100644 index 0000000..b2a3da5 --- /dev/null +++ b/run/LEM/templates/800301.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 9.75 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 9.75 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 9.75 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 9.75 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 6.0 6.0 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 7.5 7.5 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800302.mac b/run/LEM/templates/800302.mac new file mode 100644 index 0000000..81230d2 --- /dev/null +++ b/run/LEM/templates/800302.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 6.0 6.0 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 7.5 7.5 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800303.mac b/run/LEM/templates/800303.mac new file mode 100644 index 0000000..8651401 --- /dev/null +++ b/run/LEM/templates/800303.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.25 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.25 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.25 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.25 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 6.0 6.0 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 7.5 7.5 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800304.mac b/run/LEM/templates/800304.mac new file mode 100644 index 0000000..fd5cb81 --- /dev/null +++ b/run/LEM/templates/800304.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.5 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 6.0 6.0 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 7.5 7.5 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800305.mac b/run/LEM/templates/800305.mac new file mode 100644 index 0000000..0647945 --- /dev/null +++ b/run/LEM/templates/800305.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.75 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.75 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.75 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.75 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma 6.0 6.0 0 mm +/gun/boxboundarycentre 0 0 -550 mm +/gun/boxboundary 7.5 7.5 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800310.mac b/run/LEM/templates/800310.mac new file mode 100644 index 0000000..f8f8a5c --- /dev/null +++ b/run/LEM/templates/800310.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.0 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -5 -5 0 mm +#/gun/boxboundarycentre 0 0 -550 mm +#/gun/boxboundary 7.5 7.5 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800311.mac b/run/LEM/templates/800311.mac new file mode 100644 index 0000000..197b064 --- /dev/null +++ b/run/LEM/templates/800311.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.25 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.25 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.25 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.25 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -5 -5 0 mm +#/gun/boxboundarycentre 0 0 -550 mm +#/gun/boxboundary 7.5 7.5 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800312.mac b/run/LEM/templates/800312.mac new file mode 100644 index 0000000..1486e60 --- /dev/null +++ b/run/LEM/templates/800312.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.5 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.5 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.5 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.5 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -5 -5 0 mm +#/gun/boxboundarycentre 0 0 -550 mm +#/gun/boxboundary 7.5 7.5 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/800313.mac b/run/LEM/templates/800313.mac new file mode 100644 index 0000000..881a856 --- /dev/null +++ b/run/LEM/templates/800313.mac @@ -0,0 +1,940 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotMirr 0 1 0 -45 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 650 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 600 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 550 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 499 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 441 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 400 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 350 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 300 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 269 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 50 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 39 0 -1678 log_World rotBend dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1678 log_World rotBend dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic -50 0 -1678 log_World rotBend dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic -100 0 -1678 log_World rotBend dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic -150 0 -1678 log_World rotBend dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic -200 0 -1678 log_World rotBend dead 873 +# /musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -550 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -520 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +# /musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# # Trigger tube +# /musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 +# +# # TF - Trigger tube flanges +# /musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +# /musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 +# +# # trigger foil is 52-55mm upstream of TrigV center +# # Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# # USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +# /musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +# /musr/command visattributes log_TrigV oxsteel +# /musr/command visattributes log_TrigS oxsteel +# /musr/command visattributes log_TF1 oxsteel +# /musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator at TD position +################################################################################################################ +# +/musr/command construct box Grid1 25 25 9.1 G4_Galactic 0 0 -540.8 log_World norot dead 212 +/musr/command globalfield Grid1_field 25 25 9.1 uniform 0 0 -540.8 log_Grid1 0 0 0 0 0 0.2022 + +/musr/command construct box Grid2 24 24 5 G4_Galactic 0 0 -526.7 log_World norot dead 214 +/musr/command globalfield Grid2_field 24 24 5 uniform 0 0 -526.7 log_Grid2 0 0 0 0 0 0.832 + +/musr/command globalfield printFieldValueAtPoint 0 0 -540.8 +/musr/command globalfield printFieldValueAtPoint 0 0 -526.7 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# MRENV +#/musr/command construct box MirrE 65 65 10 G4_Galactic 14.14213562 0.0 -1678.0 log_World rotMirr dead 200 +#/musr/command globalfield Mirr_field 65 65 10 uniform 14.14213562 0.0 -1678.0 log_MirrE 0 0 0 0 0 0 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +# /musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +# /musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 7.2 kV for 12 keV muons +# /musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 8.0 + +# LENS 2. Best L3 settings: 8.4 kV for 12 keV muons +# /musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 0.0 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +# /musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 0 +# /musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField 0 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +# /musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# # 48mm upstream center +# /musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# # 2.25mm downstream center +# /musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# # 54mm downstream center +# /musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 +# +# ### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +# /musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +# /musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +# /musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +# /musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 +# +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 2.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 10.75 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 10.75 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 10.75 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 10.75 + +### 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_convMap.map log_SBField 0.0 + +### Electric field at the sample +# /musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +# /musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0.0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 5 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.1 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#*/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 0. 0. -550.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -5 -5 0 mm +#/gun/boxboundarycentre 0 0 -550 mm +#/gun/boxboundary 7.5 7.5 1 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 50.0 eV + +# Set beam momentum direction +/gun/direction 0.0 0.0 1.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 50 eV Pmu= 0.103MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.07508 MeV +/gun/momentumsmearing 0.036 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#*/gun/momentumboundary 20 40 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 10 +/run/beamOn 10000 + diff --git a/run/LEM/templates/RunSummary.ods b/run/LEM/templates/RunSummary.ods new file mode 100644 index 0000000000000000000000000000000000000000..a40f81e52f614790491338d46adfbd66c340fadf GIT binary patch literal 79764 zcmY&fV{j~8w2f^iH@10W+qP|6H@0HIBp@V~srLm!lrM(@4o1F>0 zy`i(EGrhfoshx?vv8%1AoeRCQgOjPDiL-^Nsf)t@JLh~hkGY&Y5YT@E3vf;q3s+ks zJ3~twX9k!5+oX4}GmlV^6NiVvfdPC4UQ$9t3Gk^27(Y-TfOmA-D_FoKqDzVhs(55w z`9Nl&i9S2H%FC~>ZLN*g)6&99Pjga%pn&g@LQzVJhzJPEBRhBYxZh_7uu$-Xpz?wW z7J!kNi;#}!_S3^=x>Lx@`_)vmTbFm3hd%Md@4Wm(x>i>EKAkUBq?VUgXvdR6V=Gaj z?R(<;T0-k2I%ULpNIr1cATud^J}N;9kA;UWuewC{hnv(g2G+q#;Ev4c8+*btkfexD zG^Dmq+6(0{aICgZZO5uGbll zB-5yeA`-}jo0|r!%4h{PI+0#LeY(Hh9|40x0Hr)#toVIgwQMxoX0q9?Bl3SLsH!&k z{d`|u+TLKvH ztOKlrP&Z&&5r4lp9VED0>0n%D^O>Bh^q+;J>N}sTU>`{YURKnYxBOUP+V)+pyS)K`6=H0>dh&`e0a1!qN_n^Fs`4yY3ed5Dq9;m9NqN2- zA!xB&fH)+;2@#s7j~)qzMit1{^ZRlognNe$LUe;CMSDFRfL;Xq7a11^nG7r#%S&CC zGzn_~F%0aRzjxF9VYgaq_;5T0%C+8Nudky6Ct;Xppy5J({^AVw8{BtcVIiO2fCB-a z2a3$o(-R)&x4$4nT8V6?-DWHDB@`5bf8Q&pvVf_8hoFSM*BRMtwm5+gn#!-o0>gn& zgP`5&g|p8YPsbHqccRG&BH_^ZG_*zpv@ihy=x~~=ft!|W30L?T{vRGf0#++D;ESye zc9)3P*lOL5{+k7Pe)t}Abo5!?U{UDCCbcRpFf1%ECos?2m!h+m9Y2CHa_BEeu6`|U zoEA_LjZ)b!olC4S4;nVCi&7$aEI}_JSYS9TL3)Bew}SEdQdo?EF@Fhx8~zbrNU)kk zZ_N$v{*~|HkA1C*FpZ>tEEx2E5tSJ&BuQM3Ii9Z0cyy$Y6kEo@QyQGWIfweiOjH#n z3;|q{YQV7CD_B~^MLOKSQ$q6lOe=CVH#}86hQa9Jcfo@>iNPQg+eQ}s-*63&r`LXo z_PXMVXF+xZF&ie1Kr2E_reO8dA6+Np1kBB!>8GfQb=cay6`{8mSoV2|IxSis2LawOFWu?`#>{=J(0bA2&+Bw#4y z9Je%++1&28yM66V$JT?eiES=tD3kSsEtJpM<~7mS>_UOsv8sXt?5C}W2? z&{2kYnHl5TeabwV{I7(romQ^%4QhF&4^`o0cOeU)@#pghi z;P6m9-Cz9uI8ndGPKRfaMOL_7g*>Wk%`eYacHF4B0*NJonH^4gj2Qlz zZCl)dpLHWCBGhcLNL~7Ga@>ioy6Kto8=(#G>(Gyy9=cXp|NXbEHzQ`9#!0s?AISp*bt8`Qnb>H? z6(d+w#P_V5Z%Ub7!7kCMegrh)^3L&G4Qnqd_~qNBk|>0>Lo;|-1Ye(MPyoNIqa1Df zw04b1eLrf48ncKI3(ju65!x3L0T-$T5P1@kl9JNXHC0p^0YL-s_g^kk9=UR>(Qc`B zJQ$|aYV_9=+_r0Zxm-iN$A~I!YZFqhBa;WX$4ve-Y# z^|M>4#xtR&p_$3%Ua2>g&YgKVh~pPh2M$^|laZ5~o|y?d2jl=rY3ah>4Ov^wwi}`F zzd{l4*1LVY+pjPb>5-nwMh$WcbWu3;;pFVk=%;X{#@xPxI%JbZTxg5Wp%0{^nBj`vhSP&!~{gXSA*qB%~{A(=*OP&a+p?7-k;-4d%%+m4i`9icQBG~-#cP9 zl>rM$Bl1PD;{j5IVf z7h@E;U?3T6wo*mLKi^-y9eqKNpq?{)AGC}wC7E{R5uV>u&Mf<3{(ouIt2*6pOfj!z@tvBJvnFAIN2oWz7*zYJ=efI?rXTbFwJQi@d;GhIc z%%-!TjhuFO)vI;Z+MG|iykENC&nti|8`kpF9oE`iF97NB`(x(^ zqB>w!a6#Yq?Fg2k6UZVUnMSP=h|1%vI5o%XoGLzhb5rNuA#R$hmJB7Pi8$1qi9P~X zt4d8Faw3%>>7;e^0Y`){fTL$e9s_<4b2!O@L3g)dH@Hy{a#Ko1=JPN~emEL?p-P)w zp{`gu_4{@Jv6ox{7zD`Guu-rwybYWzWT&;2BN5o9!|e*>?sBDO=k@L&A2;}DGM!~@ zZH);;`TZAXclhyA1XDz3RGexdLKH z6^CrbZ|J`mToCcL8_gl-v$_BMxWzJMLP5sb3iTQ}Sy}LW|L-^))^fnjg~g=LVl)JS zySZFz5KQi^2P8otasL%UyF<>B$Vixf2%Er~nS4H6`53jfYxUs00>pV>j|hjD8BuX@ zamenJj^+|D5xsVjhon_kB3gKYhI25HeTwd}f!%MQ-gLkyfn#kod;L^)bOSSe*vxRuhx2w2;@n`*jq!Tq6lO}8P z2P_PKe7~&c@eBfKG0h{VD_0wY;3CP1F58Vqv<_1)hsg#riL-(U=fI$=EwY3I!4=|@ z#N|scODH%{S1H3aP}eEvMB2L1nD59FOIswg2gL}@$k5BQCcV@KdETuqp~q=ldfhVg5O zHY@51^9 zBJ-NU^O%?zUlbIr#)NZ^1wSM)ES7vNEyA?uSP%j0SYHOiB-*J}eSC!0U)Wb+j3Tth zlPLrPVS1~Q4|`BL>IvT&7@uNI7E4DFpAlV$R0w`hMFfqDS2Nm_*C(fnym3@3Xf~dp zCdJyUtf&#xm3ItYSX?=~m)buqpqyZzM5lKqnU59c-UZKWprU#7c`|qX3q5!?i$ZOeOOR# z*DsL6n32CxyamzIOxY9krzq=E0wc0nlR1NSnT7LH-6SIo+)3eiidBu<8bv}g;~TM! z^QV;v%lB{{%Y|CQWFDQb_T|=E=Cs)Tb!t(u1s$DMSn7yQViNwgD!0v|U?Nnwx)%Hu zfm14A#fE3r8nPJuVF?whLXTx|;hN?$LH`Xm3_}!2n$&JGYa;n%>~)w0oD&tnmcb=L zyNFGqi;A*_I@>WK_O4~&n@8`4SX zNNxipDg(xVoPnlHOua4wWFp}SPIbv)iiIO3?%gRg$l(bdN58rF_?P6P%;bG?SZn=B zF1u}?(^T;n7q-y&atcouR7hSh`yS8yCF4EFOc^Y(i4{b=ldGhzyO0i&*$l^6l%mHF zEnLLn7G1!>9d3|F^*cO9dg&S^B@HjAf&=7Lqms^)a z@}o`tAv_vr^PYSOh*|Igxwg7CDLSyOO5^n;Fnz5mHPvo4ZWPh-KvEv6%Ggn@6apsll}Nf1I(L4N3?JT__sV0}rgk$J^8LHP^DokZX#w4lanxB!S;@Jo zks(GxKf&iiOC_|*IyD^1bf}NAPSOfnU7OjAzw`GWVCqzU7iUoORoA-JzWY5z`H22F z_E@*U{^s~Te!UMl(&0HdrO#b$WNk?9(lxWQadUIV=+U$3STn0Kr~9#Pb8bgHM>%t_ zbpf9N$0Nb*&948Ug3UqX`aU!OA*w1%R5>Gb>Jv?b_u(mT!eb<-nkiACD-Y~WZ1$omsUBHoYjGC;( zCu;oe%<|gt)(v`;Xd4sXX90}nuevd?^F2g6vh7q0Ikt|M4jTS4nLmVz2wzORdxaq= zdcZP=6+M-1n`hzHsF;u7y80c|J=KkkwHhdNf@okwsVl8MN~3s6IcG%8n^6a(Jifh} z-um7~JA>y8<%SXlSs;D>R0ATDhJ%vu*}q|bgH)AW{jFj~RMLHRN_P%aE{`9ip6i(= z;6S_mz62KxnFivhrBXq6s&NE$>>l7-iKCAvtP=<(O1|?TeIaLuN-%F3Szm)WU_f;G zRiQ#RBp;2*95VkRrCd_lTa`#5b#7OEv3+oC{UC%V$kwur1hZ>SLoM9B#dlT@29x%v zk!ZufVRB{hRQb?Lr%cX)FV{&NDkYq#kB{#uEYY-6c}1Ek1vf4IX@5&{|HI)NN@i(R z?_SFOHfQ1t>b#U=b+TBr>p92CIo8yU6Vm#+f!8-7sP~&p&IJTE>mbWuKqe;Sbpto& z3!gqBm0oK4BP(w*q7ZfKf;W){>=;9WJqCkzYBGm_mq-z$(E2@WEYZ@j#v#bXe<&eP zX@6A20M~=+#Ke4821!fOlW!=?I6zy#<^$vxwvuqR7p$viED%~^l+c7;q12Ihoy;?%zj{>Mc{c(Vq8DDj5r^5nEx^FLp zPRfl_yyCACX(I{hbs50iycrg`$7 zNf-)|iJHa9P3{Y<6yvd}IOxficb0z>MvkI2r#NBt5i!3g2C|cl3k8Qb!HoIU-v%&3 zEK$Y!o2-PGs1vWCq3b0ciFtBM@6yDnX-sd>%0&^I&eH4ds$3;RXBj~4IUr05hKr~> zoeBvRI&6w!&{_&eetR4znxB}Z5wl){>5=BQ$3{sikh;j?yn0pmrR$zvz(in7p=hjdqu{qmQ$$cqtb;G7}lgrZ=CNG5-Y;W zatSl`2uOu>Kn+$5|Si3{A(8v9nqO)pZrEGq2W?Y zXcXrxEu(A2pTN~Gfk({czo;DYKs#nd2MyZ^){sWHmZETnr9ot=iR?(FOo1u2Fn1KV zgpAi>+JET7Qsfz^f5yRzg~qa`Vf;6EG61bbj=L%|McF3Y5@Nu?gR6LVk3$QO$)aov z#@^Y|bFz|J(nTw@G35Pvwt119QWC^SQ$U+21WSndZy7A}eh!#hVgXCUs6ngCFhzl56d~rimIQ1W zOV2PhtsI_Hwrx-O8Jn7-)Tr~Htmn|g9=7K|!Xn!pj%T5MY{4z_Wt%4HzX;oB!ehihW8K*Is~pfx@v;!=V=rVP(8?6t)g!_3D#*%6 zjB!saR0~*f;5pW}!dooRJKe?%+jg;Xh3%9@m)@k^e9);_G|x5B6IgJBnlR?HU1iCl z^=r=einT-FtgwEMs?w2ohD1v|2fBo@{NpS=k44c}aCY$d46ptayCrFi6v!{6`g8e5 zHX5A9E>h7%!%tPZPfv^{Zn?3Jr(7_?%}!Id0Xh>!mUE0{1xFt>AHAzd{rr5FN@F!k zqFs%3v4uBHe{gh_HQU)n0e zQl(J@4^=yA4SRk~m|R4OLR`WpRz6veRdFLie5jIYQo z0%-P}nba~cE0-9uY>|!_zb2p3UOu_sI&l%#NoJIk;b-5ejo3E@r#$V}$|=4%>aF4| zmS{O~(LpSaFZZaz(N3%x@$dj4(d5LFKnNj;%0HeREph;xW#sKn3r&_-2qPADR6Ykb zM}czN1ZB(#xdfCR82WGK5-X`eFb$GFLK--*hULK#`&n7O>1KV& ztOfJ%C;-j(>3PF>+rxN^eaGhW`=h_JQ_kld%Ix8sp?lPB6AKED({y}?z^763VwrKh zSX6Xdpx1=0qoN$FqUp3BJny?hp3icwO!?~a(vLv{NC&iW!|kS9Nd-)zxl)74b+eVA z`@LNH=X;i@VaRC)6!9}RRo`y2d}(VSjGx(hdH3$1qs8*!T>rcNy`m;G4(}p~)S_Vb za!t6yO*JJ&Ej2YRhm(bcW`ZFE(fsL#O{yB&*=YfMj#E>0<$BJ$R2EB;!us;SSCPoh5pV#>|=L39ClM_V#%k|c~ z>j>1YK0*elxyumdul$=ovt6o!sgQWUSG;cTF0&^e7hwd`INZ%9!*E!7|8mWkJvZ$X z?Bgek8XIZA!E?^f{deq{)3eUbOoxW@9`I9Xi1>2g1bJM9T}cgavdB@Rdn)Qttbl<= zkyQdZS8nY8W@l&Rd_OzSxMDLB2AoXzpXPP`ri1`_J&nu)HkI6M^~q#gs@BgpB z64kZJ{o!TyWxNdeGj8KtoIkh4V$m3h!8yI&r0s0p`~@D1bqcx#b9#GGDf`XxRC*$a zv0jB*)nq7q-(yK>5fCzB=PPkqiZL?UFHm0-A#`PBe>z#PiP@+nOn$91dS7}Tk_vtj?MZLY& zvKd}TA<{95hVzJ3TTf)GjY9E?YF)!a0j7^Qe0W|5W968F4`fN#C6L>hgF6ocmh&ay0;qH4eW&8(YCIT-3LSa_BOM_S4-fyn+XU-YRV`h3^gd#+ zAVG&-fNIhwkVlUNr3jX!qoxc0oaoL0G%3P|rl1RN3|j)ZSExj0=f06?2LgA5|27Bv z2ZU@Fg!S-EOH)%pY0r(s$svWqwNoE{N%90BV?}bZqjDmo5pG1?CnoB@T$T-bi&oxS zV2G-Sp(IU&u#Y5jC>4Ze9BZN$$A$(M2CpZHyTPBv$JLSOaG{zi8W04dHezKd4}_bDw$|5vR3B|NYw=!z2%`m$lWI zK44xc;zxN{6A(-2O8R~91p7vUk0ks4Wk8ZY*Bevk3(N%~6F;hj;28ks>n|f3NP&QK z8s;hZ7})tQ@G#-CF+(I!2c%Gr{jt-)YL8-jv1nhs$a0=?nlgkMJ5eeVf|I_~GXyR& zSWu#Uz>t}=2|9!{Fst&&!Q+S}(A5CDl9@SB?wsDWuL4;n8-{obsD8;+3Lmtp?hGrW zoifT+Nb^HAJObT)e*BWSKDfWXQcHp=YsIi|ipA@fUXKBl@vM?o8NCEor8d*xd>RZn6DpD1muTpD26lU$B3=TH!W5ix7~}doc)?wW z2xf*x^#XAI5ghkG;h;{vaRDYgU7E;Hyklerkt!q|Pfm2}SwvA$EpZ-be3~qVu6UaE zp8H_!pTg{w59H7nL;G@gq=I*qPG0mBChT{3 zrRS;m_WQm@)UW#E78e5>8f0s1*tMN-4(q@o2-#iE4lW&JBW~f%GNyiH2F`35tX>t% z)M&%vxy6QRQsQ;WbEGy#rA^7?DCKQda;hloJvFTF5Fe4EPO&RjPmEtms#;31+m_J@ zhO_-4S_1{b)t0g?UezS5e^>%_Bs^>uIXhzSRwU?8g=pY^yN>=qwdE0oqPR<6Ql~BR z4NYHUSI^~(Q772-b`fier-kg)5*YGCnNT8TKJL6mC*F%2W25sk4`Nmh2yHg`h()l` zIh5mAA1Y)+1xu$f>Y?6V(35oOD1nL%P{jVncez$6Fc;*rvf&lRlLc7@PAYJqxS#vf z6CrO1zvy~A50ZP{5N>A@&Se(K>2W?a1%^u?K^Vhji5w6^%MW`r#Z!!qJxaz*QHIub z@2VdVme2{67j-AHsHLWfg!~?Fu$H-%))Ms~k>2%e_?%_mX6lOy0_It1JYXdQq?$DJ z8LBQ1?Mb*>+>>GZhq~KNRix7k27j-HG1C6OoM`p?uB0uLAaHq4`}jgzgz1n6$)kkR zgG|U;3fZ!r0r;I5qLg4Ne3Riw&zfB5%PtDq8igmXq?4{RBj~Ar(GHJTFJ}9u9Zl&| zcdq2*q(RT)@HrC`Q^dL@Qd3hQg)Kp_3f4mMB`6tbh@*&DpG>=S5>ssQc_YNI{6$Q z{|(us>@ZV8jZsml)9Zq8LVjW-MO>mMqhqF~rm)$~i(L1N9kOr@o>Jku*9(cd$NjTy zaM*0??6l{5B`mdE$W5W|GGDIj;eEHTx?2BvIIpee{iqVow)mR z!sp|J!~Xpl!wz&jd%e|V-*NS&u2;4L$h58(?eMsi5J9;;Z^zXHzOM#HM1Le2PXrMX#I3 zX#ID?(EW}3&J@36fzM11NhqS9$@pLTua6n8J5g_^d*>ty_x2|>tW{v+;VjNSSd^=c zMnkjS*JDm3moKwLqf&gI*P=O{^ETc_Vzb|$R*FmIOU=#nczkfeFE^_) zVQU@-XOWGNz=t@7(C~L@DBYx#ln99o0ZJSNIY7T5Eiy3~m7d2nuUpIW>RdRhE(hr# z>qXM8@?Td~RjqL}4qmBGOiHqa>iYBZbxo~N*S98j)3R_a7HcI@!yqWcv+l} zYoSrsUC$exU+m1SsMAn-fyR?l(xDB=L`5U0sEi0_+qK#K^}i0{K;IvM;rx7d14eed zE}R_eESlCY-CBehZ4bI^M>(~D7cf7qNa0yz8_{N_`f{_4T*I0c%01~eSPgR*=8YYVGX3Z zwObtq|58l=bj+LAJEnz_g>iL$bC=}h{- z*ht1<({sejj(irup?(%Wfy;Kl?Df|NYGRW4bhflz-_Bwf0l8`~Mj$(I9GB%V98h&` z(!*q@=Pt874i6R>{683n%{;>aAfU^|Q^_QWN(ejr-$RiEpq9%@a$p;>U0y_4Oe34@ z2cwx_eR{85+x7MJPMxS#39xbv6av4Y8Wo`n#wtcsGeus<4v3Hc>oFW;T3qBbu z_nRlviW*U)&Z6`k(27-(2n!bT(ZY9Lx3k6?KQzuw-{my*QTA~X$E?%ObfuGYHE@v^ zi2IDwSSd&p+DS$I7G0UttCgLd;NR3ERCOAd3HtS6W3&5mFZ2;!<1%m?NEz3wxHoqO zjaqDZm=63mO?pg0T0WkO=ol*)#Yn+ITd)$JsS!J3(f?OGR`{~|o(c_-gqO18R8r0+ zKbNACiZ`CD=+JeDG znXv2H^lwZ+$)hyZc1c5UrF>fB^jwSu1G#;maj48rufaDTTiz^qz$t)|17^q6l&C=G zpTT%_)%yrj)9QJKSsFIW1|@TE*jRW0>@fN1H!KNexqNZN@NRet3loQuu>%fmSUTQE z8}5~V*ik={wIp>XIWF^fh#DR#26WPj3xyF!m~?*~#z?&mH%|NgEs|&gUKe1BL^lVH zEsI~5*m&%+gzM1Ta5 z)m)*YNn@GVF8z1ek0f#R&J?;??OSq<68IXX#&;aU4j$@)P9t>=yiitJJ)&rhsJ z3lMC>De|ee+)RGQlF0L*)C>YCgJS1%YjMlsAoRcnCli$q;3^#-o0yrhrqg=R$q#xP z@oWH(Wlsp)$02AC|ax*&3u+WPfUYLrqGN&=`7fBD6hhGC3cd6ZXr@gsXyw zQn{v%H?z_yx9(cT-KXV=F=)rl=PK<57M5R!#~=}qh`9dWP3N<~wYj{`$5MiVfSRWM z{`1ZGWE!7)xzOGIjS}=*M*cgU1wMndAzels0q?$DC%eOKs>31w^z&_ct3!BZCW|jS zI}@PUrYMWS}YP{qH0e}BJzB2~ND z2D|@$pGmHjgv``V%*XfgwI2qL+tupLJXdhQp8xIe%lYKncslFw@v*1tZg}Tps$pd0 zr_p3=^y8+-;dpY7*IU4-TBmchR%(}c#wl%=z&@s?; zsVV*OL7D{HQSr&T6{1t$r={Na`BK!QpHfJ%D6!tW0i4Fm@l@>KAX=&OVl?)KdJTP2 zQ4%C#cbCOn#?wVhm9Dm;60_6#@2I8sp-g*>!xQ(j4fof0BE)U)n>@#ZlIiRY>xGiR zLlY#JJdfAKG5|r~Z+5lb>NwbFsR@rWnaka>Gnz2HxF|~Cw^?hs0DvhrTHT%67t4^% zcG=JK()7W!Y#Z@{L9w{}+eNaO-z}TDE$QQC}2d}XJB&abQnD|=1m((sHn(%V^n)Viln%)(h{%F zUoRhV*euTLjV!9F8vt`kkFmIwnOOsutJJN8S~zi@tGc>+pzS_Kt~j3(09YbG70%07 z3JUzX#T03}{qz+4sLRKajOgQ3vvE-ZOQAw@N|W(+yW(mz9tn>?%}wWeQc_(CSt#9O z&`>jT=6Jr|`FTj8s}g9I&tC8GWVt1#V`%``DIuF}rKMzLWhAM%-0jBJn~bl!UXC;y zGF(rA4s&?DF=T`d1qIaxLIK=ZR&D~YZlLco)^AFBzVC@*>6^}jSOAf6ESvkiG883$ za*~Mxc%cSV>BUiCLHQq5S69-~)AAg+(0?2zZ4Af2#{01J>|8kk$LS;|1IS1dcI8sE zcD{0JP>*SRVuE6m8E8gl7LZenA+sv&69Vq$+b#DSzwftu8g;qPdug+;_YJq}tmjFV z2@Lwl$+5HbQp8&0q5cqsgXg;gJZR{lRQfBO9^Xk}#HDK0i`4+o+@6Q&*DwMM8#bhB zyb5)8+a2Gpmz|%p9B(zBJJIjEgThj|E+r*qgUeNN+l}v56Xd>cJY~XOh2{E^PLz zNd6=887eUfUzL?%CzHVb0q$GqxoHw|icc3Cskn5%n4C!S8G|!pM@B9)*e&PFB~cM> zE?sZdRr^289M6>{B&^{jpbc2|P%}ZIZvoagrF?G!eNsIn8oILF(ZrWohf1=OJG~TW zZmaqhF}EBMluXBQzF*-4BJk$1_~2)BGI9v<8c|twW9_QatSc0T>U`OL%)n;;zHBUy%DN0f~?1v zhzeG046Na-S9!rArcLbASouPzkMLX$$!u((?6T%hQ-U<2haDLig@FqZ_s?&CEjRrY z5~C+Bj3EX|fQ5JJBTl^v>6boh&noWg$s+zvu)>CQRWugKQWsSUA}6hq6qM~zlv|trnAB)g@O+#aorEshw``+=Q^xeskw3Z~g_Du$N9ALS_(T+X%tR>2 zBM)vlHNz)|`**r=@5M1ddc4w%>4#J7e`sTPf)QJ6$dj;NIP-iZf@*t1AR+FJ7%5qh zb9sYOM%Da9yv%DcUAmMbxCiXwtc-b&8C{|c6<#snwPiQx8@s85|Sv`>9p0@*;{t-++RiKh@oJ& zy)K%Wj1LFc%pSUZK77~ej4z|H`C2}r7`ks;b=>80vQl&X96p}COJysBEXMYST4J$~ z?duMYjfGD$p9jl00Drg6$gBRTF%JufG&aUy~ga0z?{dedtBwm-!G=Rp?W;cKqaVl|jd z`|5DRTdg-;?0WI#^Yh&_j-%7BH8{@Vyy@et4WllcVvO zlc|g49)6v6YMM9#o>tqZb8oY0ozF1}K$_1oo9g!X`HJoGR{#4qYkY#+`+PBdAnYJ} znkfjfr@_InYdB_XKqV*)&eM9k6JjcJXSw6$VTR9pVmALOgU#pTX$6!|e@5Frf5 zhMIc0T30)G<^jIzB&YS&L(vB@r5v;|ck+*jC*q?jYvc)U{_LUmjc$*d?RTBA@O5{G ztljl{weH^Xn(;_Rv;9t+=Ywfk8Mp5{boljZqvZewotxeIp@hWgV*SzDbT$J3#_4N$ z73b|%uQiOdrr9Zr;D4Pci+B1 zK2QjOvBMF98n_U!D6&GgD=pWH<>~3_n`^J_MOMG4a`$c09}y4 z>rD@kr#wDi0gTRCr_<3tCgbs2uXWW9Y(90gKH3G8&Wz8CGG*TPCvNxa&1v{wc4JfE z6RBxgHZf5_j*JPINaPflS-i0Ca07Z3db~9obh%tr)uDzzms9M@EX=V496*bpH!>Pm zM?pldOHuWS2R^f{!NCCeCZK(3Vp^9m->eE~EP4Gs*%*AIvR zO53)XBRFsFwTM)x20U>pMX|*$6Q4JdK^MeeNXY`TVwEHL+h{=uEjR%`qAq(-&p%tc z&cSdC0v_h!Ud!#e(`c*xfd8lSurSUJpBc<|=lj*z+{)@F02C3>LGrU8Uok%Zj)>#( zJs9!A_YMVSKKXb?$L;p0)7|+}n(MD%5ZqC2br#2;!{gy_6p6m|{;b<&flMiPqSqzR zA10p-Gw?lKQNzdQZnuHYtCz{^eRsW8v0N=XGd5v_}J?o)|f5iQ8KXXYZL?yg0 zMrWJk$8*(s^H!Jfhz~%0(SoVx{hkw_!R6&LnI~mjSI+hOzTNIp4nt(;#6>-x1XiB6 z-R-TswCP1&DG>E)Fgv5768HOJB_boEe--f@za%H}c<{9%UDj00-l#Tx!n`R;N6pi$^r5k{0^Fe!bR^<`36;AsZyvqLkcm zQWEE-OExw()DH8C!%k)6KZ}{`Emj_5vVC5f9GgJHHsa^>PXF{*t9v!G0*Awx>GG+B z)NMgwIb2?^;#x+2Dgf!5@KQ{4Z;-HV5q>!;nYjNgTT&}pNL=#=Qh}3mY3pTf5kqS z6uu}^oWPwXjdFHrhDpuo+zuCWJE;(umcVjdyd zZc~1k5w+Wgs^pF*`q3>jaNry&`jrTOi&yGX`cTXi5T0>e#YsE@&;GLX6R8`=#nfAw zpA^RuQ)2g@z2Ob}x50iu=^La&8KR<^K8C!3Dn|o?BWiqKH$&uf&YXMSjVo#Xv#847 zrCX#U5Z;7_lWEk5*@&U68{w`wAok(lvr|Zl40O-O*M3=8mu(dhiWyxLY)cWM81y;X ztQ?Y{@&z~2B;#7*X(or4fVmEhR+>1-R!QVPEx4%Ns5p;2l|E^mqfyqKk5ZSt7%`~P zBLG#mUxn&gRUBc$U_s{w@z2av4 z@je72@3w@FNL>7D~rhv+*|}LFG__HqOx$W!1EO86T0wWE%+M-CQv*p z(fu4lk{47=ccz4rK06f?x9g#yh10+DmiDTQE9hO*G>$xomcx-;r}}+{!tg}2nFka8 z;UIlUvFGm5ZtS&nVo$lPOJZF>b;g!77J_XxR0Vd&$t0KEGqk5}JQlZbAWBZKO%Uux zC$YxPav;mO33*8Tk%o(T`xY4BKV^r>lr##BS!Twh7n3sqy+?N31?Zj7X_-!lXZ+mu zj*5!v@ww@Oj^j;9NO_*>4*`FB+k!;6oGYFO>+K%Di}B>9`ugE* z=b3Rb>FHb^?A)|f<6VJcOV?aX-8picj>s>zo zPn%34M%T;s6)FY!$PgZ{*W+Mc(7;GEm0Q~~t&Rs1|Bg}9F`MoA-A5EGEO=D0ZxXpr z7{XITLGMHH(Gj37bG6!74tu*+=Z|(v#z*n)gGn3~ah_x{uH43)$pUuj(W~7ZF`dX@ zv-|TtOVqQ{;l0t^c`!mTmBslpgo%n9OOQ(IdC%bI`Sf;jadb%gc3PM|!_)9Ofard+ z>3Kd&)G;tu=KYct3XgcX0bu^erKDoNJ{v+#dcIBzD>rov)-VZtSABYc6k}>w*!+3ptVnKmDz@u_FPbTmBG-|n!sH{97J{>=-7p!j)1#A5->ts*)`@6a$g+br< z9?&Sd>EnKpl?BlHK}P}gxU+VXl}f3cmDq6i)keU0C^j~HCi_m0PX`Mb89PmdW*7nm zBA(Ss(?xorc&gu<=}2JUBn12<#>6i7&1REbHaiw=+n=_Ze~N&@aOd`E#UBal(5-`l z_tjvlM7GE0W$PgbQh3J;5u4bLQydAG?N=V4xUU--3JB&xK~-K@2$RWZbi3Q%2t^1n zI0KkY#GfyzCMSNq^@4h{*=;tPO|9M?NRN>KD}IjJFCYiIx&k08Xec~Q)xXtRmor&J zep-m2J2?skWi1sjh=TIYPScfYO!-_k5*0NaI8P*8%9`qbK*Z~Ar;IMUy-WBxxuo)7CU=gHJiWO?NQK)nD% zf@dy#&jA`oqW|n&uAki4C?N@hy^c05AaVo50)FpDN@$bT3~WVKh!wlKvp`(vU(HkM?hR_|M9|8sb<~#Bxl%jthWJtkJ%ph_Nxwr*k|$ zFPG~L`w!ln$@iyHp0CFc7W0fIOOm}fj{wV2@B(ndPhmv7pQn}ewKYk(lYeE(@_3v^ zQBl?@Ne#|3Ie#Z7*|NF*<3gE`EVkQODWO(>hGTG4J$Tk)ewC6_uv;yi!wBKow;gQ} z_)3IFkq}e^FKEz77M92c;RD`tV_ zJC7jhvg&d0Os(}H)VTx+q&<|0Gu9!Vf|x65X(%w6&6c1!HMCeZi=CWz*>;M*M@EF( z#L>tuw=)Ca5kt!FPG2AvVn9K$ zX=iQep+ff{4 z)ICH?5JLerA~?soe2N`rf+u1;U&|CQelN=T@Ki)4D5d2eW`_O(poW`a*J7>n$(WcuziuD}-OT1i9JS*^&Ax5v`(ZrIK z!ov|PwJiIlga1MUkrRN=o{~PrqO1|p>2>op9 zqPzrgL=M^T?N=hNxbbYXwi+=brJ-GAjP(+3ipHVr6Q>z&-0u;$9bV5H{qBElbvj!e z*AfC^4B+s1ciJ@Qaq*7r=Cw$o@b+$XCUGg$O|JIQlXv3vh>4f|1+UQ^Lb0|9gTjeZ z*9Yur$fcdP|GrJo2EjpPDy3P6_Wx3Z;)yJIhI$Ys z4aL%Q%<{!{3w>8xs&8-m4?u ze0P_$&xp#^(QnT&86liW((X${1+Td|$RAt9pXy_Idc6NjZF!3*#;^3-w`WeNtgQ4% zd8)4driUm6-$XSq-6grz5yf#;=`aCtVomG_L2N>RhU`Z6*{n@B;fHe6ZTphQ8%Y)} zab-ocrspK;Jh|g6hqX^4{>-;ZMRZ#kz{m6bEVz4?s-EjMR*=U z&GELMiJtx;M$x`yE|678i{#qIg0431L}v27_mfm2LlRZSr<=FtXlawOE5t+K$7=zzN-spv(rg< z)~4flvuVk6(-|h7uri(HPdwR<2#(#=MuS$bgNG@VV1;Bz148dW-yw!AeY z@fqUa0nIi-zC44LKK^`F=wzO}m2S9h4jyNr6w=Cd=ZhCX>?q6kiqH7(hS$wnn+jX1 zJ0eLnUk+=0c|jg!0!v6VKx&^loEjt~(v5I)zRuI-sa2wOg)!6Nj0c$3pFE^duPw+P zoxgSE5sM~Iv~OA0qNV86<66<@c|fxF3#q-e-4&bc_tn1MFLs2?9=X0wF^{bIYL)Y0 zr|sc2fJ+>mrH>-M-=sXIzTWT73+L?*-XPbj$hXq%g>76#JVf0pH>0po*1b}0L%fEz zrF^94MP3mB@{(MW573Xhy|&a2qD-IO66#I5%r1BsTvJqF2bJ!*?{Ph+x3RtU#8gD$ z-lo{CzOpKw7mH$4?*<)`$J!jaA28a_@jaF2`_QFgpGiua`oT`{b#CH>sIR*nt0KPF&>PINfVlWyDFt{N0B%7 z;hF?7*M@$N$4PaiUwQ8v{;2#m;KGI>_xqW$B+0Y?@mrYFc5f9}^z=(bfo%w73oXjEjm@UPehtBPp$w~oceFC48bM!SH z9d&rBjcB88s=Weu=y1HR^@9F*(#gf?@DX%hdQohfZfM{`-rKG@WlRfH=%szDZ@T2t`ipn0cyd}f$3SyR?aI0v3xOq&g(r=U)SAgQ1e z?OU0N=TUO745K@r{T*NZsO_PxY!RYPTo2uTa;@9psdm(eBsr;fm!n4Tz3#0Zk0%Or z4EMR8`?x-v>2iz=B+t3|P4ja_`gJyj9Zd@5y-U2ho{vU8cb!qd zUZaY`0Q2oh?Ys@5D)h?xgovwtuyE(9ijK>N`U zFwh`TE9W2|HArpD&&Cq?y78gTz|iuAyFV`x)DYfr<6hxKdn-eqn4b5b1u-{#Rhd+` z)!To?`oB-EaCtLKTK44Ky>Dlk6GPv1o3bay+Vqdz>~^NC+~wV89;Mq`>kTQXaT|2) zNA@-iaiD?CJK;Su?KeFN-4t_jBHJ4}*~a<%y?+|)>oHtXhSVJGC@;4BsEu;XFz?bG z&^%n&xLpM(*@!*c8oTbAUn~kJ$C6oFeyX z?vlAKa>aMl z!Ja!g+~R_Glz97(^42(9(5T_{q=#J#E_4O64Je%P8$D1|GImjV>(LCshN<}!1$ z>$PT8nLQ0{Ye#XnT%K-_EPt4Kv&1;=En0f#D}5XiTx?=$XJ01`4ans;x%?3l`|a~(3TAqV7s3_M>MgQ#J8v1i?k%8#ZRS|;-pifS z?kA=S&+7R@7v4m@qrDuar5u|T9aJyo?=MRlTy6d!Jpq74kBadWV?Uly<#xClFm)xM1NeI7ITbG4N6iyB{zE7faR#WSC_P@LL*Lv|_oB*ajYWZrn* z_~wzNcK^V|*8Hkl7R>5*!+BH2y+Yt-y4j(obfl96a^S zJUD|uydL~ishF?We*Kw%>`IeQY6hL`?Je8f_XBc11LSV123bf10A>Aw&HXAg1Ad6c zJ$wVY%Ew9uKcBxhyvb+=JrKsr3E>xTB&R;^TVAk0T1c>cDspaKcT>wsp6zthtrrhM&UEWHrCJR`K0-V( zvNm;0M$rDAvweK-kpK8*+E^uSeY`b$59(F3wOTx+06-K}4kV<>vj2pdRs{I-!+K#p zhb4&9Eo(&5wcfL0;*}K1B%7EenDw;}^$u`FcSh&*rBf0N`9XZ*U;ia?)%*Lcl@dB3)wAV0FE83Ir>zk zM&Y!$7*EBdfdCURKyE!ZC@`h@zX8L`|W5NNk&-Oc!1yD^X9`e z8a_;9+8HyH9i+ilXH(ZsqfP@TIg^q4>)t|zKLgJ` zMed+(se1VNOT!h6kFMsNE_Qan@EO~~B|(F*Zc$i0i})FS+07|H`D((Qo#+)|Ht_RB zge}2;t5;(_gmB_KAh}hr=w)b}Sns7jOe1NVfC*yqss{AF&>!xWd9cC7HTAOtcXxSb z{b<9J^IjePu!l7zGOH8h1v)V8Sjeg`NS<9@o=xnf;RInMY~qmC5>6(>Rvjr;LFg!; zjdUFDYCmkhO=ubb_4g&xJ5@<2O+X7X;arz@Wf@I;--SRSeqfNszv+l zhBcERXYaN!b#DU`{>vi86$Nv1Hd9XI;IR$r=&|g$V21HYJy)E0Axh(W*xF`Htk}kT z2Bs=6pU0J1EpX8ZLzM-#>T&9+wM>rS$0g%5!eCqOk4)pyK}M2>38!(}ScCY*XyJsa zqrsC_P(`m6qJIe?Ph8{Q+QG#-e?@K|`FTmRn{WV#$nIP1`HBU!w0d}Y0GOZ-)2N0lS(`}>EuUU*;0-U8yt4oMKFsq4JW1QXjJd`>e)?eh|_wn#Cq8V>mrDEz1-#vQ!qSRn@2Z`ViK9V$H-m0_I;!m{q80rMm-J_ zY}sUCL*pzDQd0)dfv?4l;cJGkWSZ;coKMu(HejT72}SC2`916@rw4ZT5#>_RJ+5Y3 zh#%PS@Y;YEi%$#H*N^q**4KFmpd6vHjlGiQ_}bb$$n7yW-&hS@(OA2(*{gWs8y@9D zN{2`DJ`%}@pyw~0kRo1?c+;P${*mpvaUm~!p=HP;KZSHH%vE@_^Ug6sxa#G%5VW6k z4`bHvcK02os3qyimuJ!XLhGLdjlI7%5}JX??&fdJB@LIf5pstEKa~!ATs(1h9&#M$ zXG=FkL`8wX6OUL^+n~V=7vU%LfjxzH_WWrFoO5l(WAc@PZ{V zxdeNp%NOhx#*$1rCe~}kr)~5Z+MW>-l7XNZKNp2GOj8O@hcKJJ+D5~*D`ih?2sfB; z9eP~RNl%q>^P{q7+7jb8q%7c8%j|*UVQ!vv$rcBgc;H8VrSh`R6I)#WzNKJQ`$d+!+T zvyR=J<(}Sn;o2ZB#%9@<{T16!eduG(!S@1-?O$A7#pqU0AN1kLQ0aJ|Ntb*1QlBCv z;8aU#A7Q4+POweZ2}fhc>iU85Y8J{D-YsA0zHTJ|2 ztU&yP5VxM~W6jODdacbG;B20oPuYGaB?xU?;O{gJ*0K!`$(p>D^e7~&dp0#qK2gH! z623D7a%qo^y=lbPlGj2gCM{h;v@dlyUWah< zM9F)&`g&IFv`B#}aIl3*jErnD3ayuEVh03rz?Wn@2Q4=45X}U6gZ2I%KbbS%j1bVY zHkXyM>`?cF@q=l?%>2y{`>WoN z?h{U7p@9ZO)r;0lZ^^($L~GC7j4`{eP_I=t zcz9MI)B0!MR&dMJgQtz=vQ{?^3!tqyN`w%!J%J`JWb2C0VCO4qSFLosb#7<4qOup% zZ*ONB(OTk!IC20@^Hdc&jo3R)VY-j1XU6-T-46BM1UIk>Q!_60q)UYrb!Jfd7ziiisrJ@~9 zwR><=6WOs5t-dIs$aY@rGL|jOMmz?LJB|L;VaRr+K$9&!Z!DP zj>mCACN^0>uj6pS+FXOA*Rd?YYnb^bE0ExyL;2)W8U`I1fv{{ynRiW}2QcpP*7p=W zD#r;{_7;6dot|Bhm}wvN*&2P5OmjW6L0v?d&9m%eUZTm^%~)YkKfDX*E-$?02lOfni}i5FpHkk;=u`V-9AHKyeo?}882++;xQ za8D1%RXuh}c#(G_qDJ#4`E=ot7y0sAt1uRJRY~b z?mE-h711Flw)6A#LIy2^wThXM*L3Zdh>%D*3Mf9u)w^b?7d9ObKiJUlM6DhU2&G$e zrGs=47A-$(urej2?TUl1Ie(2y6Ag*1*!DfR?Ksp~`mO72V3T)e>kVz>#@k$D(=A?a z*`9F!HJ&eXHh5n9gC6Bx!r^tcO}0q7?)_*82D?;}+UT%1*>|?14oleF392yM^0k>g zc$UVp5A*bO@#jx9-8_Nt^|#HM&UYs3G@L?rQ~E*6x$R48yA%gPPtHyl@Yso1pgG%* z_J-r*mgt_40I0+#ntG7+L=Bl1&A3O-^2yx^D4x-vMrRtN@6zQA>QAWM6yLmnNG5!w zgx27`9PZv|d8&CVsE~8@_j9k5LehAwsG&c@ZHHz%+1^|axZLCp>@DRhRDaWVhLqlR z)Wl`e^GY8w#?!*e zUVI9p{2bP#^rU?!Tmi23!dknKyX-FiT#ehoh-lgktWuz%CIo)t5O(GSQ6Nkoo^)cz zFty_BXN0Q7df{(C_4;1J*v%KdpC8W}4&lf8OQ~vG30{k152~T%bC`}4z7n@^ zeGl4XL6;MLcSSrWRP3_sgB6LaxJo42IcemO`sbQ@+{Ov?oAq!uo20DsEsduG^Ic5x z7n^g`zKPkX#~GyZtw6XwaFw{{;Of-s(PAr4;sAE#8%dfLNtH?1Hm$hy-!J2Gl*!ZcP&_BR~zH z%}<>}`K8RE619e?^&!4t-VI6S%PLjmO1^ClmxE`zU*XiuD{auCjjtKR@gZE--or1; z^(}uM2;Vqp=#vD3Aj8bQE85NBiC{mb`@O0=NiDuBi)N{tO%*N^Zu}BB6kPgl4fBM;h8JHs7uVDjCLf=LRTkk_g|jc}+#B8Vb?e|3B_7u;m zL}B{%iZdR@q?jbs*c-S5A1DAK3j*&~Oln=tpSuR!YMXP2s$4A*AE`Fr*pPpEVfwpT z&j3V?+IC6ZFMU%_MdtxLS}qfEU53kV0k%nrFlCV(-WVEP)&zo?%px@VAeYl~zI$KK z8uh+z%x_o0kWzaJxo9}+|6w0R#hcysU4n7>7WbzguHO|VLb{c}ywdfu{ zu1Q8V=Ixn&IxFe$89ACnoYwd>utciQr;2PIjweU^bIKePf6NX?Yq@9_5^X)m$!q6DwT5SL{r?Y2%aW8ei^R&-=`de-@RXJDY@@j3GW6gL3;*=z`cOX8T#-`Y$!MBul z$iAb=H+V0(n@4Gf%qPf~9-G&6QvGsb#p^1XsbTGL;zwYDL+X9Wv@3&`HHXa*iTaY( z8@*LMP0h)kcc&1mm#?dl90KTdn|pCBIeRwK1nTV~2;(=?W1%umMum4H4&swQgoChV zY;_6$#91+4+cs{o-P&vVhzoYg6?p35M0FZ(VecE8}pQ3 z(0-iyo~dprX{N$jdtVUhBX%8Hbi!OO5H1-)QAy+8M?Cj*wR>7== zBp0VblgE@+IDiU3MKjqqW<36DtMp-8E!$nWM&qNqVn5aI$w9(zPHV)fb0XFRNc;#ULM7Wo!Ix>pg{+RY|pp1E%4s)v8_vMT(B^bl3y+IWp-mL8=I_+{GC!e zBuUn6d=w-1%;%_DK0xzPSYGxVnuzv4ZOZ;;f;FuIx?hN(f8%-C)`d=%ZDC-(MpNbrMM$1_I9PMN!b)y7KP?@9wv=W;G{H#iNvGpX8(_eS z_&AD!d(|02Nb%V`9JtfKG`^Dqqx8E%Ta(}5`N#n`b{THtH)L0x=C}kVvEjdHt;^@Z^O)VmF82o4?;QB|=ZWbfLXxD8 zWy=nlO|cD6?-lmNIwb*)R(*=126MXcS_()*GMOfU83mChffEIhH~SYMZAShIg3|04 z$iDOPZ!wtkUFIpB`c%@M>HMX|?a#h8mrqu008Kf@H^(2Fv)*<6mJqCEa^?2j1qZ%K zHdvpP$R!Gv+Kg#R2lKj6vv6f}>6^s~G0;{YYwdmP%|5kf$;7hcx?42}(Zn!n6tv*L z!ko_1+)bN8g><-CX7G&$euA^rt)hW3yxHdBT2goE{Wlq|{?d3)$O8ux&5kUUGte*u znM4FI)WP+*x6X`9uW`fA)hZCjee0er>~7HM62gfb70zwSV;<01M79(&!0$ng-Mu{7 zW&%z^S`Ln1+x?t1{P#i|7;y28CvX%C7)OK^|<#4vdgb zMRd9ca-hVfqJBAC#0DPr#vPD0fl?31DE93LEzRr}{_lGO07t|_7H)l38vK{jd6p28 z*<^#yHhAzBE@i$v9@-WH&2VOXZ&K^z>@r)eaIt|DGjDg8EXxHr)Eg%{_wL)jJC~={ zO+6P1RZt-4SNUlLW(8h`+0iS^0z6i&=-&(wvt+ z5dwb&bEQ2w9E}u&^bhp14Og_Pj9(Ev($*(tF)O58KV&1ESYvl}jLsh1+qL#iy6I~l z42Alyp_%)DQfDqKD>*bDr)+A}or4u1UHDUX(1VIrZ{8>Bf-xtTAcPmcM9lD$Mi3bkb{Ydzb@H*o7r-RUIss{R%JlZf2abqnXEx zgQb?k-i^I4kx4q@HJiWBf_V<5U3M~#<|9Veue8rc2+pjD#l>m5<7;?Qn~qc8LE0>J zWg)Iz;_E&^4!_^*SNf4ME%{Y}68v{J;?EvFp@&?Z5urgIbZm@zhtZ!<=yqLv2gUmP zk5Dm_E2Ab<6^nS&Q?n1;WYoF}!xz|+J!#{c$Tv>QW!rBCoHFz3v~=AJwdZ1a%q>|R zCed7`$5D|L8^}VAbFH6^c-tngsjf90{dV(b{i5qc(W=#A%!c^O*4u;jmqPtXHy{0I zn(^kYZfIfiqpwlgP#HYy*ia!JKVzAAeEBeZ3D9X$ttDeflloNqvb4Gr%-{A~4u)(X z0kxem6o3tR`b+h_Un>_S8vBth1mY(ECEpyT^s)9u2=)% zIn5Sk!3{^5;QYmhMZRyBGPv?`Fbu>G?!TFU?o-;cmil`RA7cm|q)f1h?XPIXm%VRT z-O6sC9f($cO73<=tQXUa?2U5eagR?mu$j2i$ZHP=qMG2GzjEVcxNB}MJGxwbs|3`} zN|$DDfd6o9#0f{WC{-n~Saz!!?N05Pb&)5T9g!!^)Yx7SE#p-?(inV%hN~$}!__pd z7nml*B+?CnbDy$zmZ&GZ-pBi|{km=SRjK4Gky@?GJBFVPLg_02;2!>-d7S%x_O{iA za^++Sclm>xMmt-?E&@Eic(4skCzYm=r*d=ftfj1vTh{FHH;&+#&Q^flsf1N?zo zN~5S*y)yJS>LMjU2&l!j_)yAh~NR)%dp8??-HoZ>@l~kMAgZ;>aWgO+q$b3 z%--(vMRLxJdsGbd*Q0Fv;(P1Sg`xi3HFuUrp&G0J?p;_WN|Qupqfx=kzF94x>+vD< z^ae_nyM`3&=)(3(+iWaA3eu;#v&yLv5Y#AVx+N@hc8tc1TuxMH&~u?|#3D$}YV&c2 zcJI-o9L~T5!gMijO+lD54K;!B2-*ezbj&uT_AOIJmRpjr?&z{R5VqZ5zl2)uEnE$qZ-V1t{!+~-|2y72D$2Q#7kfs# zg!n6A#3^sHU8f)nFEg+SN!FmK*tWulh2a@=f1ySBGO{y%eeoGtm=fAvfJzx^KkRm1)>Ulxt|=+QsIH~xR& z4s_G4_Ww-mQkL5PJ?hb92i}Vr-A7(k^(SxM&hgDJ_48-NJ4rGU4xLBU!)^%<{uchk*M>rqNeB?~*$);$B1 z4Sf`qf2${F%x#7u+E>hN%pG@w??qT#J2%h$@Lv`LHZ&cDa$+p#V*Lc5w)T`&3Ohrg z@-GS__bo=Jbe}jXv3eHhPrgpuc_Q`u+E1>#xS~~97APNfwdNs15t!Vq*`Y?ZuV3wK z;5*j5n(X5;U(?Q0k2o8^i_jLoi9uGnuvI(NzC49sr8+FRNBQ{GO)G|J;vxXS>a0X7 z6>|^eCGkQmy8smtM)8o+N=;8m<~+#HNBI92ceCzkiNey;YrCbSjT#vL zR&(P9k!Y@GiTc_Zw=To>vwU|rt5WVoku9Ss{@8V8d?323$E@Ilf(of-mS1A30Z0>I zZwa<>sQ#zhyiWU?3pTBA?R@i-qXq+90zTW_weByxmFhpb3!@J#TdR+1vsm(r`t8^0k`FqHm*3j zNguy3={_CcR1cj)v$k#fO0fLwh{FmAZWugKg!v169Rvq}Yl7Qq?|l)6o*j1V`}j#W zut!gegTETSlB++?+E!|~#|)Q*p7bVs-z1zktcf{UBN`o22>X@re!{EmxRrhLk(Vdq zx+tKkDi`#1T6Hp!*Q?R)GtUq96_NG_4X1Ol38{N8y%3Y@HO-UiaFizQegoXb zLCd<@xM|0;+PH5zb#+}88`#IWxTdEFA9_UmEdx7lk?i-CF^uPbocrKB4*t2v!nB#u z-`7!$f7VfxR#Vb~b#(BSpqqlQ>yH&hMA^LE?^HYD+cvg}w+Dvv9zSj8@o_ z?K^6)cY0C{N&ru+2bZXqpw`)^>wk17P$z&A4snWco0{tVo z(#PY$$rp{Nfer)7w!uB0KZT5j#F{L6rj19F&Vf+#u`%uT0H2QCt!rzBt$^l!K3n8# ziK9;eO{YeEP=HAB>lHPS`KtJ^e)_XF``If=sBd|xVon|6<2O9(7uP~%`oMkrd&clU z?5MrhqcvYD9>*l!#ZE;0Lr!8Bg9xOgd2VSs*h0~NF>lK%gUQ4e`%LeJEf%8pf`6$!REhrdV=NPrsRL;hqb6FZbwo+d}cWhGS`HJs=>IG2yANVY{I7mgeu zo)6eHqWO`Y5?`z_xvH+SHppgz&WIy9gOL)8x8k6k3O^1Qxfwk_)=;~jTe?AhWsvGp zFnGf8{RP^WnnRcK_*dRh>Iv+rk)-R;QNO;stag35Tj60za|X<;gb zo((SsNeaA5@>xsAurIC2^qaRMogwpV=%WtFbMxE}f1x0loDMMl8w4Wq2Lh=kLLm8e z6-CI3FbU)GZW}h#HK0u#Q9Cu-=OQMbYBi2D{|ry#Y=1v#ji>rG5PwauGWh-mT^4FR zwK5s5@^bu<-Et?X*j}=$0M(m)kNU;l6_2(Xf~6@^*!U8D&E%$}wG~xTW1)P$78;Fr z1{ZuwZ~YlG5%4gIyejt>gCFw2Uj+p#yqfb_(=E?unDgoNuQ$CKfaL!`jjO~-!5?c^;GIRZIsKqTkNx!RL{+GKm3(~z(ntR(f>*+#ZQCR#=ZZ8G>63A zA#OZc9Rc0&v@Y2<5t2Z|{{?E#Rz@mME*hv*h#UXYZT`D9=uz+T6HB5q`*z##;}Qc+HvH9 zFk2r*T6u|gl70nRJxtx$Z|Ifpso5Vrh=aV{kPt{KNz9*^Ugj+Jh7Q>jEV=nLdExy0 znrvh%Q-kzhs}COr4<`j8gA5&>-jQegP+eSqVQwr!mpZChTq!%~R#~RZ+Sl^T`?O)& z?|A4lE-4Em-_O#(R8Vmfu0h_qJxN%WHNdUPt zeUcDfa?*Em>LS8Re}GJR(jlRZ0=zlpI=#AcazJ% z$x&V6RF?b0j-l$4=45StB^F~hS#sY=(p=K4VxF;_O>$DNv_TP$A`ZG5ludoE%p^9D z_-q_-6}(fc>w<|1P~X3D=xSEw`~1op>Ib z&dG$Oqb$P;A-n7x(0#S)-?NeOYDsXaxVzfTW|D#cP|0M(qs6Nl)p=|&jye^_?((jZ z>8Z8G{_>~#U6*q7`YtV+pWG=dHjw!iOQxBRb(p+VCSLW4^Hg;-;;iODNoo1q?5LTD zaDGKo>oNj-ODMm>OI9d9?tHwR-*^5QZ@K~M|9-qRRmCHP#}|q&8I&zNb476$afC zA_R&`h-F%HFc|JFVZ?qmt2BjLi~aLKpvD!F&IhIe{Jj7PBF)n5clNL~T&ts7XGPp0 z0w5|nP=1J@DF&C%Be}+L^GpWwt&aQrxvEY2Lg1<>R@C8)G&;#!QdMG<%5n}ckq57J8`@#qBb*!UtWJSI{9?WyJ{@%hZ@c=wl|&4@+zN@ zhL*X3mF|$zfb_6Pcrb^kvc@-_qgWfiSh2XGaf0EppDT$+lMVY7)7LTkWEXf=LMR`< zHqYUH6F+9A1zaU3C;qHw>kBp@p5`l+UjDtr3uQ7fil-{odg6H{la2Wl`<})xN7I{$ zi(s~qia7YX6~8R9Thpuj+&uTgKXMT4rmvg)`&ymxms$FQ#k7=FM_Y$)1SPyAQT2C5 zc|k&2%`LyEW5HD1?^$b%`t$|d->iQ{fpKq#z<+W}ohK)%Y(EG!%<5IhTc4{xubKz% zv9;)T$25bt1X*EY)E0X4xcWB`^?6^Hw>MH|F7ivYUe-J}&;9U^8w9xH*?%{Bh-!>> z$0D@&#G-fP!GXv|0$RKp&C0OBYRAx^B4&UHGkO|gZ=#V`O(fvFDxNFmfoB{LT*N1` zUuV*^e?r7?l)Ac5q_k&G>rXi9HQF`ty=v3M(Wl(e!1DpT0ZCIxgY)+f&h2C z_4m>9KcupPb&T+qfLnJE&b*59qD?m{536pxD6b+WP{r#a__q&4TNdQz-)d0zmB;+V zI>ywsCNfZ3>zfdBBLORaML&oJYJLG=ROXb z4H7ZTrq-5b@U=f+Ca+Nb`KbE0TMC9?hlui;l(->Gf(W~59!PzCkoR_vZmHm}OmeS4 z#;YC_tv~f{s(WN|sM8C4(_C6fsJ_u@zx)F6c&z`RK_F?U>;%7+5-t31M?4>=|A^xh zrXqJJ8sENuwvvBUJVYp5u_gy>72}FBr%1xdoyl?8U+qsGx>zpW_154iCV; zV$QzC#L3UPxj%OjqOd~ol7nj(w=x^QEOBTE3Y+`gLk&HIoZ6J1tcQ9mgRqqATED+D zR+qjPakRK<{10lbXSFrUqmgYiLg8ztS|y?*5Ff*9^;9P|(VULIRIVP6QVEFym?};d zONI+frze|12B6=Lz3rr3>2GfP5i&cjEhtbhbNh6&XB(>*YBFGCWu z*T%cuke$(%k_P#*ZaUVb6KkuGs1F%>);Ds#{r~NO6Q!iYX~@_#z<@X$(#%Zra9icf zUNmQYs~a7QdiPKpFzX?Xc2{83n)4t^atfW%fME3qS+$fc;|DVBHl~2X%j2vzW0U(m zzE1W7q05EgeU=RZ`T!YVN1Sj!sA>5pEM>3aWHk2{?C7w>*YI>@GhDKF#j4h%dHLj% z=CRJnrh&!2?6xFsv7uY4CspoOA8_DIoaHgnaDSj1L68C1;_PJu;t18RUBx&L*R=L# zk~g%(IaN=O07a>`cbPe$sjW9zt01Yom!-5~E1{`_0ANQhMBVMu3Gj~dL zoSWx<`0o=0T%6XMx`rm3T*dX;?$zbY9>(^@Za$N-=^to{^oD@a2WiJ~VvQFxrq*^# zF$Si58glA*9YW!8?yd$P5|q6S(xRU0r5UjJ)#lC|_Ik#*pK`u!z+K@(he#Sf3$Xm# zM98evQzM0e*X&y^oRP`CQb4v~O~|r*qNa#K`h`J1J_5oe$u;scTB-Lyd@pmdK2(Ef zPwGqT1F6qzGS6#M|CtJNkK>u^y}t<;AJQ0@=1Ch9*IFXtx8xgHR_@W3c=d)iuJ?r% zpxmlf;&C!*;9XpHGN(ywVJJTKhYrL~xx6jS$?m~GwHPZrXYi=Y)_D1Wqu3>%;K)qH z8=rG#mxAS3JJjeyI3H|Do$ju0?d}a^6)x^Z%tIe4jN;PfK8{Gpbt=SC!vYqE21Uj9 z`}+#`K-R|Ig&FQU=Zf`nx&B|XZ9(cAXa9trIX{BS==-FK`1bV4At(QAL(iHb*iR>8 z>}MulWHN(6!=nAL(5|NfYH3$ZvZx6VITa{&RmScrrZ&K8FYBoA7}KSyl1FP8Xgx1H zRo=22(Lst~i8KZd+~wqirq1@Eoe$;akL0@cc60AGIk8Vj2K!ANUyxx~BEsp;MKy*@CsRz6thofkw&Cahyl;06(hophL`!vRrC8TO?(^P3cwvCu`d+ zF4l}EywSp?jG?@%Aw0Cl*PjdphCHOp(MXTy+`i6Ck>W0O4QPA!VE*QMr`DT*$=4A1 z-;}z$j%K!6AHRJYM^?AnuX=vAqC)i3olDivb^3qNeg)&7T>d`Aco3(Uw!cj=0lm}+ zXTx6s1>vVZAcO~M!M)a)Oom)>KVnh z(GiVf`@*d6Waw89rDo*XT-Pw&;8ewsRDSg=on8z}XIna^W9v>TTM^EE$9>-S_2^QZ z;Po=w9Z_hKFI7``4cJ0yGpdLU`AgckrlQQ-^;|`BE+P77lv3>vyjuNVCn(OTPf7kd z-u{}+G}~^z&zAp>p#0Ympz7QNf>mZgjEdQfH77%fIv{-yPfGI%I^ulc^WGQArw_rS zWI5QW4%e2TtP6D?DOIsQQ%R##qjoBSDw{@w&AuCB4p~?Vs!SWHDtQzF-u&dFD?8$scfBkRa>Tt{b%-vUV-E$|S;r%C_YQSDlfXq$^ zjNn}+JiSoR_}fW_3Fm=C7KUTP`?XehBj;dC( z;L5`)epwpWu00zO;kj;1`3K>lGJFM?I&YP7-ZJK|*)OLSNcq1ft?D!g=av5}faf4_ zFq*>lR6uqokv8lxT_92_G&tkQI|Z^K)yH`O6xljM7me(siZQMa!5G)Ix=60Ly^r|c zPrw6IktLM)hxV!6lk0Z(#rGv9t6yp~^~Dw<#|{5y_~|d2>7V13|4kc4vfcpyjpI)H z!*SRC;kfIaPun()319Hl6C!|}a!H|LuinwG21{#@`aVn?*vS7CYaJQJ@RypgR3}#H zmA1SXg(^_&(IAI{8^6OKhsvoo?^{|m$(6P>ehEq})EEzLdX}p_NGn|dz#!EQou0eLOu)f}v{oda4V?WG6G+{+VfA<8H z&E~x+Dt8hnX&sMU8kYo=FzsUhANJlc%93qc7fsu!v~AnAZQDkrDs9^~Ds9`gE3?wJ z^JT4l&OZCzw$Ezqz4q>}d*a88m=V1X^byhf_l-Vc&UFd4h`JB=pX!@BUKw;-9h<5u zVZr^*PuC}tV%~4JuP4(A*u!kwH@jkJXrCF=O>TUaD%NNzm){4=o3*AZh&=~QYBH<0 z_A}tSRgm6eyWXBk6b}1yK3sjz?H-qXE-ziUE~~#)_;!0~9i$}KIzRBa4IlY-ba{7I z`)p4de$8j|>8^LsRFiFXw3*$;q!ibmS92Z}YE}AB7T;#9yS`>nC(pBaoX0$o=;_Ir zJu~Xru)%&T)XP0yLq9TG9A?AiyEEH9Wc%>BdwiCpzoroDwasqBUv_(-YsO#B&yLIa zRz6?!5-nnIOSoV@m4&E~@sx4~^xD69xJ)H5d#h)W^U8t4zc7W*8GCJ6`&!!VO|K3| z@R6+&Ju-O2zpnJiZMMgly^dY-q}bxIxyTh0w)$F6+>Re#Sbl#+IOTbh;@j}vZH8|@ zc~-s+Gl_HM^Ci!Iu|ECWsz0}S<+0;6-WuPo8uzN#K&hB~hp)oq>rA!1flsRG?ns$A zUEZz=Uwk#GUGM0UIlYJ9?)Jg)ee-Ufzme(ceC^tD=IwqCdlY)P@Db)6J`*?`vF#yToN%5DQ6CFt=TH93Rkz+f2Om`hPbMW@iR zs7=w02tJmA2Kd`h+Hp6Xj|}%DHK9j;=k{(Ubc+`|p2`)qHClaHlFZoPEi@MJIXw*bXifS z-<5?QNfZXz7*_M7^P!VX|TNCiUh4uQL4(U9Aimd4F- zkql@Bh&e)Xt{{0JQ(yl|q&~G+1;~vhl=IVt#y$Dh9WPAsH5<5WpC`{IgQ$+IK`Lt1 zEy$Ij0&*Z^4?4meg0O@@LS-OZOFUB>l%k)Z-wjyF9d8LkI7BbTC_RN_i(!4r&fN1U znAgvF-TUUkrxoIyQM7n(Juh8`WyOaSirHoMsku)ODYGGXLFgK`CZELbR9&)0{ltU{ zxN+@bWg)j0X4w~W#47;pQ|a6O9H|J-j|Q>fz;!Jh*6di$sxQMHE~X5YS3EL?pEUWf z%oVgXZEij-TN2--U6wDB048A8R1C1EL`V}gt%xZU8x|&gCY}WQ+XB@dq3qs;?)m-< zHgYRTPBS0?zz<-6zZq<(ufcY5_OLc_`ZL^{ni_U{tO!1rH3$tNvp_{8tD~&0$lxLo zxcsiQD`yW`apY+_k|^Sot}mxt#3C9cRh^zB0zh%wFd^I6*ki3-Jo^*hi3JsPH=bq* z?|2jkxbs9@_qx4rnc8mbn)S4AnTr@!iMgvC70HPgk%{JjcLinI*5ai*BWNA>JxDo#ty=e+q+DpWE1$geTnwE=pR8Hx^(KIZ;BPL2d1X#kD-hN9*EeP z3X?B_!fq{#l5LeU)FeY${`MnubwNJ}T$ctk4&cZ6NlRu)Db0LX&9JqrGmj}U^Dq~+ z>2MmLn~+J;1bmXpT=Hb?n#|K9r8{84!E!{qk#?BZg(l{D9_6=&%ubmI+i|BUETu+2 z8CRnVMi@Gv*A2l-xxPn#N=C*m&qg z^!O<{*Pf|5iN&n3Rp;^(4e&|f_(;LtOcekNXo&z^idDYTg}V8-8em|{<(dQ_1$1-i z1R(y)+LiE14md?!)G!$?DKL&iVR@dQG{kjh<_4nRYj}B$90D5HEafD}qM?@Wx12Lh z;&{OFN0u~I^LEE}n+hq8><5b2$ceG3qvwq@3X?z0avB}jK05pKtHe8AOWuAk9SblD zQaBuC)|Fs=QfWIrzav-ZNq$zF&N0O-77_HPio&PROAOmgAz2fE(?g+aD_yoET}QdFvkk9wI6bu2!epT?I>3VOGFLP-Oc)= zj0JB35(fvpMNvCheHc~-qFH`o498VESp~6TY#^i-meJo*7K?7iKNnnpeuH2ClUdbP zwAt2vSAau~-y1Uf{KbL|6vQecY0eR@jJ43SaMN%mVG3-dC)8uA(T)8%ZD>#(`}K) zvOzLh(aV{Jr*@-2RP}4EgtcAf{a}5mA6pZjlqf9wHopxq!|qDesGKgW&{(Rn#(Wxp(ExJL zW+2cZSz3J(nW8?wWYjR;zsn$Vw@_-(Q zTD@-pa?RamT4-zYq#x~pi?jv%3iDkmOS=Sqy=QW=P?fOB>he=R;QMFrJvoEYrSAnK9cm`yFTXGixJaL zFfb;eh&@Q0*Hh;LlxTBv`qQP!k%Jt)H;#2t$oVKcuZ<9h4PPGSta7rK&*#e%;<+i_JAyb0Novti5|UuOj;oxt#&H!%ZAd3FtcK8j6ff7{=r6gvMssx`~*i@ zp~e$uv|1WFoV*HSDO2(?>M9zE!ejOEu;vA&z2y5l8X;oqYtsdP@AWJ^i<@!kekkPX zDhvF0wy+1#v`t^sJMLV7U$b84w^*brsXPT? z^e(gr*h;Xzw2Dwtu4NtI^<~1(uU9l1F;=j1F|QmkjseZm0v0@A1uH`pomOZO+)e6+ z?eBRDG_VN*v+cgm?0xoF#N1aFn`RsTO{z^(y>uF3kE5%5M8bMdvU;cfSK~pX(vbkPW@&Tkq3nne`{opQznw@O1414ghdS_;*no<_|Z304QCyGcjd>WWTKRVXY!$ywN|7G>Iw zZpb({z#fUHEA3TgHliRI6E|->rs8a;Z7o{oTw7_P!b``wwhSoBp=@)rrR2~{4x(X$ zv7WBaCwEW3<(BIp>|JDc5QiCRh=zc~jS{rD-}l1gnEC~2s;1z4nj7o!h|d$T$yt_L z2W8Nt*csApxMxHM7gV)c{3-kp16Z8Ol!P);E;bMN7Psq;J)WXcg(ZJcl&en;M&e_h++TOs{ z#G39O$oSvsVgDOFdq+DnM-wL}Lj%XZ(foHc+S}Q?*xQ)cy8OS?b8tXog0H8k~U)z6g0Q9e`|GVK#t?dk) zP5!R)c>hMr!p6YN#EDMO!r8{a-sx{F@b9YpW3<1w_rKHnGs6F+_3y0q=dp4!adx(_ zHTw$=pKEG4M+->{4jjv6srfa%?XCFf`7@{jV(XP%Js8-A?uw*&jhDDC9=(5qbdc@eD zTm3!^Ed=3K35)|xYb6X}xUx;NE7>r-0)&2`96c~rrB#gtaR96KWPNk7sBSUI!|!Uo zk$I21JXumA-b-q18zL(iMP^=dd~s4WW(P9;qQbKAwTe=3q#|Eg-(*5DjdI+qXwmH0 z*k&JVxm3|+FJyALMyCq3Qdbr+#NZ?&;r{nRgOx;SB`;BGho{UM$zw%i0Jar= zcHb@;8`9y0^iYOo4u8{yf8-z0h4TjHCymoZe_(NNT6t)ATxMvFr*jt^>7j0mDaD9M zAhh_IvT35}sr1w$CR3J1nBE@8^)+aWhc`h&sEf9o7ns6OXsk{1;!VBoxIxlEz5K*} zgWwRciS?VIIr1ySC@f8?E6-MQWM2mAm;;ke#SK{@mcRnSn=?$L_7Fyp0X%9x6Po}I zH1I`iBi8qB@gANOk-!TWAtcquw#9SCO=|?|GC9ptFu;@^8SpSm-X7}}?ttyC2jlzJ zh1bsODM~&6mf7Qm=pprjoEmxJ;Ign1e-Xz!pK~}Xs7sh6jaOf#@ONY$yjLg%FIPXFlT~A z!_Id*iEFOnjZF4rhD)#%r*}G^JCqW$ZegMEt5c!DY`4nm!uj=9m)uhvop;~K8N6wk zYtPe&5}#6n`o%;sZ||+1drDkO^lhS^)y)Bw;5u;jG%=Ea5YztQ@ zt*7&L4D^Q!vGQcUAGbH=7{}iapgL-c0tSc)} zaBc6Bq@OP=xGTqZM0K6-$*&hYc0%BgUoSe7F`~7ip};nGRE8Zt*)hwSmSzjGZBp5) z)7N;J0;B4Oln}n#h&3%f*ZU%`>aK8K-ko&L_P|@SltxySZn5NZag||x{G1x&Jt>UsJfl*}P(U0JvMCLTM)F51(mt zs21X*9{qc(!SwTLlXyYoYZ0B*q{G|v4m^OI(ba3A$K)aco;qqA`(n-y%SU+ZZeYr> z!EkUB`i9~1y!g7iN_)4%iGC||x?&d}1t$QhrB&dAQz`9H$j zx#p?eIxE6wS9hO1gFdh%&s*|t3%V){`OJgRJlyM;c*8^x5@>w%`TISWBD_-F*@#R% zv5+Qyl)GEU@@2GGeuP_l;Qd8tY+{L;_xAM*PkbgIga7@F^_O$!b8f;+sMMAg^h!3ES=|YNbc(@>bHXOHrJ?^lpP5$RqVn%qd)UusazwAo7LVM6<0T0 zn%Ar9aX7UHs_{U6Sd}LA8Vsh`fG}w*93hD|Fdn}|UnX}zDzsF1r!TWoY!b5xJHx@M zK9N`4&|XA_wm%7*_pyA-sx?SGJ;o8;oac(PUInSR56hg`kmG0O+EOriyqdp*7<-?e+sW zjth1k>WLHKCa|Yxaul^bQr7l;xg=(JH=X#YNBYuClsO5iBxD34D=;BDT1SA9Rv9%_ z8o!g(c!}pt~+hYqJ_n+O6Ou-6DI#H-r=UIub{rYZb5QIGT;3=_Jg%SojwWRL=R!bnLK=>U~?`P6Z^G|^>CBp?x z%&9W0Of|DEYm?`?oiPCDUFIdGkP?*xVjOoZ{Xqf`dJ~Bkc>0%qX%)XSjSTpf+rjvjgJ0~-j6DxyS0%ae=i6b@_AUjB!3t1gxRv26hj$|9 zs~W}*cNkO1rh#f_iY)4Wv`#p^^-@LRLF^qH^|QPCuxIOdap%Zbs5SP+(B`Z$lmrnb z(%qlJJo~6abcrBt7sK8pi@w+%aRfM|GMiiF!?%%Mca?Lf;S484<7|$7vnyU~9Pn-o z4+c&pnB=7zQ-=nv?jjC{MDp}xr4!rB$uYWq-kKLQgq4WENWKvv0!py|-AI_9%RM~7 zcNLD$QJ`SO9Ny&|DvB|`cNH7<@jY(!QJaOrnz^)$6& z|Djb<2?hW9i95WS!^gMs_{#XDl)*V=k)&vLbP zEmACsYKxnu!x+0yul3iPj4rVKpp_c<=S4rt3Qnc=;gcIm`Rm;lr4Vp)33 z9zz4BLu|uIP-lGh7Ls1~1?68Hd%b7s5oqQT%`j2802O&G1Qs7i zwN&+S!{o@!y@oNa=MtEWWS+l3>f=m)PozbQmLT!)60dR3-1$7eoR$@~fzMC3*V?%m zZQJ%0Zo+O~i!zNz)iPyF$hI=@wEWoBmIy_9-D-Y3+{J*#Y`kE#Qa1MgJm_PN+k+4% ztemfFl99J{3Rw*ncLqCjk2a!3e9Dc*yv+M(AyfQV3j ztJ@?ina)xqMWTT=`C(r!9F&N2fU;Y2qg^8pNAwj8P!-dXVAy04$0lnYlWK9i0!)HI zsZRk8d@aw*cRH(9>M_LjZP$X;HAZkX`F5$)ZBz)2>mB?%+`Yd_x9ATpkPojJKs<07 zQ|t(X!~if{L=0LjPoxPG5|`a%AUUh-&D;;N1Dt}(5PZuk_E5nBe0K6#y-ya$9O-c) z63eIb(v-N;S*v_q(fpyBFi(uI^bXP!6JpDk^inZ7WharPlyWS)>m7}*cvjxq=GmKy zXFb!De@r=m(yQ|0eoZ+zQT<(fMgG_L`d=A?tfY0vJ$#tp%SQ^vi$)=AJ2Onukak}F zl2-r}qYw&F+@6pwZ@^*N3sQ=CDXncfNQuyQi_*bzBT1*&5MnL6c+>BRq^Pd2bfZdOi{3dGxQu`_Tol(mT!Am zgJV3{<*-=Nl`FN-G#(K#XS?z`jZXL$i+;{4U+EVxuK8;{uYT@spID$dpocBc5E5l=5KIEAGBLkwy99| zo@gb)Gp$hadRPeKCL>4`r`oS%nyo_HcWH*mGgvSuVv z2UQk|6NtF_T%YEm>pu(}YA%<3L%18z>)XSv1GrJPK5{^!(}-4ry{afxCdV5BRo94C zK)opNurP~Tm=JeO+;<5w834QOJyv^ugbW7FbFwX$zrXlr(zr-1REI^R?3}NV4j<>C zZ-YB;6r9oxUnBp4SiehmTl&7HO+3KVTN(st`nTi5`#@nU@hE4~lPsUaGfdZLc)z0Ux#CZ1&#d%<|A~ILQHm^xHw<~xRxIeMi7JS`2J(w}o3 z4z(%XlM)J?V1bWbvmc}^ts$>X>jCw$enNZ6s8_9 zgrcP_(+~xthxF;=8?^h&k4yi) z?k#?|rKMfu2hgU^icEwL6?#~*2UQr5#PGxWJsa_TuJLMIy~8PrE>ZMo+AjA~#;*Jn zZTEJ`=ne*xtoZ}|owXZ#kA^r={2+Y49PFFZ3IA)&huRUU7LSw?PnS%)=TKjr6T(k}27{zhdvcsZA6&^n9OHQ@>#~o>lUl z3|~!*Mqj%}P3}NYR`Qa0g}U@GtfCO+nT*4yp?ZKE?c#-D6WoU$UOjhxm};hoz@dWx z5>ucG=ntpct`l|;$qPWHPI4Ho=PB8jspa=RPv|I?SY`F@t8_DuYh=E34LDaubntA8^i#}6{w7jSC6-|1jO2K4Zv~cv; zIb|W9#Z+No6zbp!u8@~F`(FC$qFt1SJ0_$@K{^VBi)yzu+K{p0Knf_nWDWqJOo}_A zLdjgF8KVV&ObwB@W14{|J`jnd$-GkEkT%%b+%3;o+FPE#t_AUR1IBL`S(=zuUk?RO!wMrY0?ZJPW1VW_?+ zHfqu(a*|O2S&5D$LI$B{FzP7+)>KIUXZ~N%$%c1S)UmTLRE@#GPA8&=i)C?T(sE3c zC_kwa2kQ>)izH>@f3Sfrp|HZYQOkaSM`q_lNE&h22rTliQsi^PB6rY@ptT%y)5crH z^Jncc6U_e124q5l(&=$iz}M@1cbR@(m#BPqp}TeS+EqQl{ed?}mahIQwx3W%6b71d zw9gpJz)C0|!b~+Z0mQFU6mpm(LLVIxx}=po(HY4sQ3WP)04pyJNy9wmhrrKs5%MhO zc2()}xf)(g(e&(lPC{iz-0 z@bI~O@mjlm0}+G4218v<(km9-tOq=Co{5?(s>&$rABPnpX-I3}Pi9y5FPl@NwxF|a zD6mI{s{I67yz}eEU+WPZ!z9z z!O8Bsra-`(2v8IL+#x_Z(Qsg3R+Q&mq^Lp^9?A7L1c&Ru^&*kT3t*fXF^s+C) zyz@%3<#-jGg9n}t%0YaS?)rE!xO&#R@mLP&O_>I!vQLri?R18jEW&_{cKDX$I$^_i z1N7p;kXjgCogG%p}CDKcbF$Z-hV1!10hQXsgc}oGhkRp z;Da80wrb3sHpOknnE}$Zjf1qPXepR2Z$Qw}=*%cseN5M}4-7REC*T{9A8OF*t;dQE zJ^jJ1nV54B@N2$%IO0T!GCr2W@CMoF>-5y*FH?pRJ*~ zZHU?Qp^W+j>Ec5o{)7JX8hZ9>uR7y5g}7^Y3X_>30ze#`Xo9(-__%Yq5?GSnTBPOd z$b(_c4gK=26sFGi7Km+(@t znE+qzk6UF-_QvDGO?KyYha*;lrSo9$Fdnvz)D&$yH>Dh_lvc%jX=Zi&W zCAUuz<6Gv`zj6ebM82YFzK@!)a)xTQ*^UaSaU zSq%dI2^Zp4_FK{(eS7zcwow}rE`bYst04Z$yR{9_8QpO4ia@P8nRE2iR& z!B-jxpZo71%D=DxX1f1k0gI|KG3)pUosVkjx+<3Na82_n$W)`cy2I1Q}o z{J+k+Fa7wwHOVfWS9SGv3{PZWfZ5^Fx}av3DNA43q*DK)&&>?YymrL;@brvS-R-~V z7exUjVjc(OSWG+>KTZiR2N=;d$#THTCY}aSl{Ud%RyIjD&d>A0H=*UMuWrNnzM|a* z+HNgF=SjP&&qK>Q@o3#k%aziSCB>>fQYJ+=pnW5vqCh}McmihiKpHMJ_;kz4ZMkU- z(P-0do&rrEl~}oKWn5*{V?4k@rlFxMi%?bSP%K|3KI8Yh7B!qX*KCBx$AN zo>3Y0UQ~>F{F5>;Ky7~j#Myd^Prqc*yTyddxWcGdPng0~-)jP{aXVZqx+l%}2x0*Om4;$BnxPcM>jrC95UVTw``PgLzl5vOBZ@&fv zfM9lbz3=AaMeD|?gTOF{|84-cIbev~}DRb_z@7Si@pC=%m zn0vVQ3!o=_t%>{ZLHfUtAZEJ%AwmBqNf5*TLV`54zDUqFpKU#Z7CIekmwT1qJwrF} z*M+-0CjmW-u;f+o{NzHT_U^8bLUM(=Gx7xI9Y97vq_D$}>&$*3gC#z^TkE?(46=q6 zEbwYR++D(ANQ$}k>qEIur{ujHwomo>^W*{dq#5^|JwbK`8jv@fAI`mM>7Hy`^@bu} z{6{4h`!*?5tzjT2PIGmG%0#Nh-eC+Zg344&bEg2ElG;P7?#Q6UWYAiQ3r?Z zV7p7=S`#N?SF{J?<4s_N_qNZXQP5=gMiLJ#`N7DYF24J_ z_CfEKF&}+lebd@uwN<0UL6%?4m%y-3K=AC?Z^ZKrvR;rN-S`Ne>Do-U`}rr^m%h*F zm-f+^rZ?R6LQu5wv-n^1M?2E_fI(Z4)Kb5xAB*%%RsFRI*~7JUgJkh%F|~xJMsHRa zcoBTiAvdDeQ{Ezc&7sgfMX_p_P7;Kd9K)*4EeGJJl9nHcg(kPusgk+WBWU0k{Q=j_F99Bp>0cO~ z%N=d1sGTP@oFdDo!{U8EkVq$j7c>7%BC#Te7{+1(%rE*+cr-D~&KA#@Nk|S`d?)n+vLHN&~$-5wtv6#fvmNh+}G6yFf^LegDx$pz-5$-V@_V$BAf_r5*&m245}cv1+b5Z zy|@U)9&;G$;?->Tm{xRN@=A$BcrS!qiB$g>D zuc)@vk{?ev^#JMWN-SZ&JHS4k%il!4xAGGrIL_W)H#{LPp&_@@RG)YgGD|fqAUaho z?9qS5^gT}{;sin=CR*h}tw0unj>*}P@y?G)2_ijl7Nz&@=eWd1Sfasd4E-Hsu#t`c zs!r4${l4KL;Eem($msEMZDt_mzVr0H%^+)JbfDIt1**QBuAb~Ktci)|N#=?p$(hau z&VwTp0yy9*QD0Yw{|D4w$A-%T`w5D&AB{N;Loav za+fEGyn$J%J=TDw;m>Zd$y(JoIO4cw>(U~POgD2b>X(+P-b<9QsUkaB;d>FR% zRmUy10p&z2>XMx#C*~3ii7ne9tg{EE+ouT0{NV!icdo~gc6X9;2zX|WMY^$)NzIbH zm#U6ZMvByy@zIU__|eUgEZP0^m*D0#hK^3G_G*vir2eoCn}ltLVD=gS^=ovv`8j@h%kzkpiIck(TNs^cnn_15>=Z<2EIH($=h+wL8YbCnIN={oC;ksVxh;-MIe9WViX52UFLjl!9kjNDb67RUm@ZKXY) zkf>7aAg%|FCYB;-`)*0{dL%gGkWnUqt$>nS5q8M_QA5_SZxKH7%4&;&j0N=H`+GOX zA=JR$1vKC;^b5rEsuKbYT7TfVp-1$*BUDe!J1XYXxuaYy0JHdbWAP_sl!&|@?{3JvX&Bc9FU!=^$jt7Pvdhtoc(%1`j{3i zh0%A*xa-B1>E(KU@azF|x<<_5B<9z`WnVrY)OM8rNVwrH*!*e{eXS%Q4>`uN6 zhJ>ezSXOjm0Ux;%&mA^gbQ;UIhW13eJMKK|m{zAEbx$e&qK@Q~n`Y=^OK_HK(wQTP z>$*0Zc(o)W2?>Ie-tNFxE?MI+jTLk5$OS+X4L(+Z0?!PA<9nx|!ud{d_hRl8}*GtP`mlNeC9jGuq~0jn2#4V22NOY&U~{Zm8HB@7l@y8 z4A5K_l)KW6#V)ERF@=m&6&T;ZpcD&bB;M7)Z+pvgn-!?xf3KG0h<@y)h&HEdDW-bl zULa5G$=D_LLl_-dO^4pK{Lb24Y_9E`fdl+5p4eOA5RlJrxRKv82=czR;+JxW*bw1C z?z279sk;99^6s6$1O1uJ<5aA$fF5VJ&B@k<6PVxzp$ENthtsz#$o@U#su5voo4|`E zFygP%H(-LV)qovA8&B1MFmG6)=dYqy8G1ps5WN>rc65t5tmT)d2L)b-D!$=tcAK9= z9na8zz>x9|u$|RcQUILh@4(Q%&;f>jp#%Su6!^a~DZubQc=-SSqyW}GlP-!T_SObQ zCSQvmot^0ZbE(U@ww^h*2>R#4#m!+lb1SniX2M5nyq~Joq)xS&Fzmp+wU80gce4a= z3-Q_@`GiT-LxqJ};0=es6@Ei~Uk{3b<|6c)uIpN0vJI~%s?QZij zyzqOICW2;t8_n(8XK!8GZ>DB$X35xYA-Iz~zxaWS9dnTv_CXjo#DOE-fER)QX!i)1 zW2d|Qv>1Ljs8F*k=};qvK({o)Hwyyc6GtoNE6VO-bGL=IBThdzxp|_{?y4sFjRiQ( zt|MA}lPVN(UcAySfr*Z{d(U0miTM3io}8QvG5&+iz65nh4BSzyuGNT0j0t&l!U!4O z1P&ffidirnsk`$@3wHYqEOi@t29IWKx*vcnUPNm6-4VAaUne6o8#l(O2}l!muMqDMRz!6`eTgi3VxVc*?5iLojKnOCwTxI2 z)%d3h`*2YIhXj;IcnN9svnm=$?LI92Hg1AL+@dHigyAR_|A%KrWJD$FjR1nw7QoG2 zzR15^DzN>l*Z}wQa#q_IqSAF8eL0 zm|Z$d&Gf6h5STW^CF+`%ZJ@ocgQ~AB_z6NxWf_;5#tL;EsBO+H=#p7nhe&Ywm0N|# zFh?0jtOZzIjaOIb_u~IPX)EArqJA5wP6zNJWQwD{IMEQ28WMm5b5g-ij8jy zrDofHQgTziO_zBbm&z<$63Tfjs?Dv)YpWP4jf!GJ;$L4L@O$vS7n$?eBjh|LfX@2# zYy{c!8R(+qqe>=9Fjv6TOk9>u%*vKYGv-b(szlrC8TzP_Cp3&HOJlT|@>(Q}6-w$d zQB+8aBw4HwBuS(wliDPel`__^7cqL1Bpug}DGOtyqgjiXbX6qX`a}N4;Gcq?%Q|oo z$v|YFOQqkJ*h$WQBf9pK?=T)fqic44eAZ88`fp{p3Z%T z6&D`Zr6ZQR8j&8srK3?tMOaO&TPv5l8q=lau1=K~ddIlUo(|VDlt;??RJ-jS)xM4` z_~ps|*ZzWb$>gYITd&LE6J!l~g%!^YkptVoVS^h~t~UYw949v5-JjXR+~CbScHR`v z)9BSKl?&nW`vkmb=|1P7U9W@7L?nTmluLJnV&Lb}d$z!L&`v4#vzb)BFt$r4_r2^P z*#^JnYbW&kJ$~kspqy;{GT<$HwpLQG6~1fTz=09e4c+BtEtS~M>Gor-C4v!3a2>V3+so2lOEGRrxt z_U7YA5wF2-!%H6cku-<40W@ZkwLKoR})p`sf{r-rM0+T`QrPMwWi zO!#Tp`sJsszI=Svh#qZ{L!8T(>(57iW)bBPZ5e43-GciSx9ssx)#g|rF>}S3S%E-C^_f2|i$*QrH>*}8di0LBVFell{ zRJDKk_3IHU!R#f(N*B=OFPD$&Au}>h7~WX=3-c=)5Y<3>XbRM+CTf2LimwI{`1W}@ z4Ky}#a($Hne6yt9ukux)*@#jRLOSJ9Oz>*~aHr0AdqJFuPUkMM!CJOhA#H<)J(-Ve za8j+yX$W}p5Gz~|VStd9aghLCr>$tO<~15P68|-~K{gZDAowf(wZA6zgWwHL( zSbH_X&XF`i(t!{(a|GYoG@3WqPYA&A+D5(io1!YO#%#SYC2L0LM|4VyjPc>N7x$Fi zLmiI}s-8C08^nk5YENb*B~&c%wmGYy5HblJV8P{};&Q-Rx$+014Q^|yi;{vc%(fE` zr_iQGMbs*$3iGUNb0fO7{>E~1x5CikEk58;%&#*PYnfmw4bhcqnjvIsD-qvXbWp2! zD$LLS5{{WHH@DFcvAPw;`aY{`1=PYW6utx_qt1zx?;TSFxLa-bEE$?yx*Kbr&Dg<+ zm(TdPC~l%@GnQF6gm{6S{20hsmCaaC45Py|Twcg%qfwK_Dwn39V)_fEOj=CUgp=Du zR3$AhOfhY$a?IItEHa#tneJ)c%TGzfQTL~a2UzT_|DDur{*6?<)&z8u`3-+w0<+6UcZPOXiT!-@OMl}= z)%PY5jg}Mi)%PgE%yq=S zzoR3HdRhLL7V{QM)*oqsEtURuOAj@iudu>+;;{_#M*lDF>bqnu*7)3 z3Wxwep~JR`;Go1@4S(lMwABtrZa$2Q(e0O?`Ln?FDn8* ztntcJE{d<&1KP$j3^IZ72tDe+Dh%=n1;!FF!i`9X9*iX5$ed4OtDen;9!&B1L}wb; zEyE9ba^6FrND!*S@7im!x(tN&Ax!XHtv@CzYLX-ra^8n>2yV#(VbV(c*)u%?Gq1Or zYE+^4lWjrq7WsdO)q#k zZgG{p4xuxT!2(VP*tR@Ra>b^5xBy=UiG}PU8TjZ)>&JQvM83Orqo|j$(Cu;aDql5W zr};wzplT)>L&AfCX<^LHO6EM1@m?=*Qo+(I_&5G9=M1(-q-q+S+jXg53NpV$rbw2HSjiH^LxC3#8V`@XFN2ZX|=3TqjlcZcY+AVlpOId(sr3eHHk zQK|Q>47DHN+__M{)^<0e&3<)xkDkV9oJS_PFjMLPZ9>5a?o(=mbFuCpKf6I8nY-8U zHJ5Us{r^4qGn{MdSSyR5@UCy#YC$z5HqGE2J%or0{SfrcMGSM%D9URXq_viTk*Uzf z1St#^MKTipAPi>nA{atL_Et1R4ni9Q&wdLN6+sST_#hrydGhB)kN2FK=L$CssP-vtTp=-0J3ZRo;=llk1d%kvjyaavx)i(Bk9EeqR(Dc zATXB|a(L7D&`7OPu%5e&$`F`KQB+h7TVmTI0H|Khix$ldaFFGEfGg{D>R24|i^oOW ze+BbDyofYzTb<~i^p39LpRCWfQt%H8`-+^zH>f86l+L02LIjInv6dmst3&;t63s&Y zAyFJ#;;tKJj=TRPK#B@d6Psf zxBtcRkOs5V%kxO*bt;)}_(D0<9zrAY8+lwQrGIGcD3)M0sqAK$@*iR= zwe>|Pt2v+b8Dg2=E$4j2(#&*p7){dl^X+R956 zOKnm^EJL$FxEP*hJjy}mqvv=y8<-`E+pQ%UHYutFprI|+-+Yo1tmkJEFqq=XLh^Hh zo5s+L@%q+*IzIff&$Xes55Ov&Us)4ABUk6GU{7$?3}7A69;4|2E7?lmhWs9?kedXq zennrIZ{msYhrw= ziZFI<4O$6>GpgcrU z7;#k7JYGEQv??k8pIx3AG*i3FXf9A7=-KC_(3$IcPL)KaKJ%P;xOJ7$UCF60x1CxN z^z5>XpI&0{axVtClp@YsO!utDSRT#3(WR~`zyIlMRS%btex?}zvzUi-Lh zS+w`}AFJm!Titd2lnzO_8Fg@6jyPpFZF0o2!xD~y2kuAI9aR73-}C5~(j9%)8@=zZ zrB7pc6VG*_|9*q~ROUO8Y!{lPYWko4^lF&CYJy6i#`|c-0_M~2wHfyvZv5LD)u8*8 zLEYeQm3-^X%M2eR%Kla;A6TgNW>s33PP@(Ls`h0w9lOOotuuJ9l@!Z)PgM6=tZGg3 z9_?Kn)MBP zQNUJ#=vr_;RP=q++1*kV;Vu00%3Y-^!-YXg%s#IZ11g!id%agV>xr8ZDLXk*Z?iM_ z+qB1LU0-r`1BdFr1=}lHzSSxkbO-!Vc&9W)vHr8cbXSe^kS9y*eYQI)h#dOSZZXe_ z@lajcjo5J8*Ynh8FET#A?ERVLEQe42GR2w2KTW*;|MCHrB+=wzPM!G)J6kN6Ef{Wuxr7_!-i>aa)bwpy8Q(Vw*?P=x#=0OjwrWL*UG&$m)_O#5h$4dGq|8h;9+Hd$Z z>-vkom=U+EQJ{N1VctmL({ zkK5PZ^^W~551NPgW9#zlGjLVMYFy(@(c}7DON3%hdbz^slP7Cf~{!{7(K+x&5ou$w}_o?W@~%eGYoYeAw0b zh26xr8=As4$b>VSwD2~I%t_Q({C$`1wF5`>(jT&MuPNnbP$}U$_4d$e>$5E-BIak4 zF8q}fSs1}@a?Zc#p;6pHcmFR_ z-%Uy1(iHb*m*Y8C{EN)pzS`HX`q6Z=v;WHG?5S2$vowD2iczM< z)9RKY=H?WcMIDQ0YgaQIH|qbl>@`dKo_yCkGcqbZDllDb{(Vz&wZyUYL7yLPH?R2k z_4L>60VSec^Vs@YqyNV5c)I`a+>7D&Z~asTMYqs|0>?GLh4O;jpy*~~5@7%?iie)y z(3)e}r3Z{?5C)%D0HhHhHxsxRr?MawUDu_#HtBx;3=AL)Iu!r`LV(PWjMChsyu{3$ zV*L^rQ?DQ|9cBt_rz!HuX+WnTfg3<`k+z$nYeYVU3)Ruyj}gbLq3c3E1q5_L7Xny3 zMLw?!T_5uC7ofuo5a8V#)DuHsI$?o}P|3gmI;;W#bl+i~`G9;_25KZB^f54ij>|xR zR4nG89-e{QBvcp8$7T}JVH(7ma~+F0$cJk{%z-5VkWXMIWT+#&1!VER#|$AHhi%{s zcGT3FhQ(0CQ5(3u2s&&70p?&a1>@)q+=ih#=_VG#5JzzkYYP7d%+Nv{&4C)`$XmZr z)3Ynk6y&2iU;zt@E#ysYpnWw6!1xXOMsai#koQD^=D86d@h_4Ih()mI1|V_RP z$OPRW sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + +/musr/command visattributes Steel white + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ + +##### Wires used to define the electric field in the moderator : 23 wires per grid, 0.1mm diameter, 2mm spacing. + +# First Grid + +/musr/command construct tubs Wire1_1 0 0.05 24 0 360 Steel 470.75 0.0 -1700 log_World rotMod dead 220 +/musr/command construct tubs Wire1_2 0 0.05 24 0 360 Steel 470.75 0.0 -1698 log_World rotMod dead 221 +/musr/command construct tubs Wire1_3 0 0.05 24 0 360 Steel 470.75 0.0 -1696 log_World rotMod dead 222 +/musr/command construct tubs Wire1_4 0 0.05 24 0 360 Steel 470.75 0.0 -1694 log_World rotMod dead 223 +/musr/command construct tubs Wire1_5 0 0.05 24 0 360 Steel 470.75 0.0 -1694 log_World rotMod dead 224 +/musr/command construct tubs Wire1_6 0 0.05 24 0 360 Steel 470.75 0.0 -1692 log_World rotMod dead 225 +/musr/command construct tubs Wire1_7 0 0.05 24 0 360 Steel 470.75 0.0 -1690 log_World rotMod dead 226 +/musr/command construct tubs Wire1_8 0 0.05 24 0 360 Steel 470.75 0.0 -1688 log_World rotMod dead 227 +/musr/command construct tubs Wire1_9 0 0.05 24 0 360 Steel 470.75 0.0 -1686 log_World rotMod dead 228 +/musr/command construct tubs Wire1_10 0 0.05 24 0 360 Steel 470.75 0.0 -1684 log_World rotMod dead 229 +/musr/command construct tubs Wire1_11 0 0.05 24 0 360 Steel 470.75 0.0 -1682 log_World rotMod dead 230 +/musr/command construct tubs Wire1_12 0 0.05 24 0 360 Steel 470.75 0.0 -1680 log_World rotMod dead 231 +/musr/command construct tubs Wire1_13 0 0.05 24 0 360 Steel 470.75 0.0 -1678 log_World rotMod dead 232 +/musr/command construct tubs Wire1_14 0 0.05 24 0 360 Steel 470.75 0.0 -1676 log_World rotMod dead 233 +/musr/command construct tubs Wire1_15 0 0.05 24 0 360 Steel 470.75 0.0 -1674 log_World rotMod dead 234 +/musr/command construct tubs Wire1_16 0 0.05 24 0 360 Steel 470.75 0.0 -1672 log_World rotMod dead 235 +/musr/command construct tubs Wire1_17 0 0.05 24 0 360 Steel 470.75 0.0 -1670 log_World rotMod dead 236 +/musr/command construct tubs Wire1_18 0 0.05 24 0 360 Steel 470.75 0.0 -1668 log_World rotMod dead 237 +/musr/command construct tubs Wire1_19 0 0.05 24 0 360 Steel 470.75 0.0 -1664 log_World rotMod dead 238 +/musr/command construct tubs Wire1_20 0 0.05 24 0 360 Steel 470.75 0.0 -1662 log_World rotMod dead 239 +/musr/command construct tubs Wire1_21 0 0.05 24 0 360 Steel 470.75 0.0 -1660 log_World rotMod dead 240 +/musr/command construct tubs Wire1_22 0 0.05 24 0 360 Steel 470.75 0.0 -1658 log_World rotMod dead 241 +/musr/command construct tubs Wire1_23 0 0.05 24 0 360 Steel 470.75 0.0 -1656 log_World rotMod dead 242 + +#Second Grid + +/musr/command construct tubs Wire2_1 0 0.05 24 0 360 Steel 480.75 0.0 -1700 log_World rotMod dead 250 +/musr/command construct tubs Wire2_2 0 0.05 24 0 360 Steel 480.75 0.0 -1698 log_World rotMod dead 251 +/musr/command construct tubs Wire2_3 0 0.05 24 0 360 Steel 480.75 0.0 -1696 log_World rotMod dead 252 +/musr/command construct tubs Wire2_4 0 0.05 24 0 360 Steel 480.75 0.0 -1694 log_World rotMod dead 253 +/musr/command construct tubs Wire2_5 0 0.05 24 0 360 Steel 480.75 0.0 -1694 log_World rotMod dead 254 +/musr/command construct tubs Wire2_6 0 0.05 24 0 360 Steel 480.75 0.0 -1692 log_World rotMod dead 255 +/musr/command construct tubs Wire2_7 0 0.05 24 0 360 Steel 480.75 0.0 -1690 log_World rotMod dead 256 +/musr/command construct tubs Wire2_8 0 0.05 24 0 360 Steel 480.75 0.0 -1688 log_World rotMod dead 257 +/musr/command construct tubs Wire2_9 0 0.05 24 0 360 Steel 480.75 0.0 -1686 log_World rotMod dead 258 +/musr/command construct tubs Wire2_10 0 0.05 24 0 360 Steel 480.75 0.0 -1684 log_World rotMod dead 259 +/musr/command construct tubs Wire2_11 0 0.05 24 0 360 Steel 480.75 0.0 -1682 log_World rotMod dead 260 +/musr/command construct tubs Wire2_12 0 0.05 24 0 360 Steel 480.75 0.0 -1680 log_World rotMod dead 261 +/musr/command construct tubs Wire2_13 0 0.05 24 0 360 Steel 480.75 0.0 -1678 log_World rotMod dead 262 +/musr/command construct tubs Wire2_14 0 0.05 24 0 360 Steel 480.75 0.0 -1676 log_World rotMod dead 263 +/musr/command construct tubs Wire2_15 0 0.05 24 0 360 Steel 480.75 0.0 -1674 log_World rotMod dead 264 +/musr/command construct tubs Wire2_16 0 0.05 24 0 360 Steel 480.75 0.0 -1672 log_World rotMod dead 265 +/musr/command construct tubs Wire2_17 0 0.05 24 0 360 Steel 480.75 0.0 -1670 log_World rotMod dead 266 +/musr/command construct tubs Wire2_18 0 0.05 24 0 360 Steel 480.75 0.0 -1668 log_World rotMod dead 267 +/musr/command construct tubs Wire2_19 0 0.05 24 0 360 Steel 480.75 0.0 -1664 log_World rotMod dead 268 +/musr/command construct tubs Wire2_20 0 0.05 24 0 360 Steel 480.75 0.0 -1662 log_World rotMod dead 269 +/musr/command construct tubs Wire2_21 0 0.05 24 0 360 Steel 480.75 0.0 -1660 log_World rotMod dead 270 +/musr/command construct tubs Wire2_22 0 0.05 24 0 360 Steel 480.75 0.0 -1658 log_World rotMod dead 271 +/musr/command construct tubs Wire2_23 0 0.05 24 0 360 Steel 480.75 0.0 -1656 log_World rotMod dead 272 + +###Definition of the electric field : 3 field maps are superimposed, each one is defined for 1kV potential +#at the different electrodes : Moderator, Guard, Grid2. One has to multiply these field maps by the potential applied. + + +/musr/command construct box Grid2 0.001 0.001 0.001 G4_Galactic 470.80 0.0 -1678.0 log_World rotBend dead 212 +/musr/command globalfield Grid2_field 470.80 0 -1678.0 fromfile 3DE field_Grid_1kV.map log_Grid2 8.3 + +/musr/command construct box Guard 0.001 0.001 0.001 G4_Galactic 470.79 0.0 -1678.0 log_World rotBend dead 213 +/musr/command globalfield Guard_field 470.79 0 -1678.0 fromfile 3DE field_Guard_1kV.map log_Guard 9.6 + +/musr/command construct box Mod 0.001 0.001 0.001 G4_Galactic 470.81 0.0 -1678.0 log_World rotBend dead 214 +/musr/command globalfield Mod_field 470.81 0 -1678.0 fromfile 3DE field_Mod_1kV.map log_Mod 12 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# Mirror map computed with Opera, has to be set to the muons voltage + +/musr/command construct box MirrE 1 1 1 G4_Galactic 14.5 0.0 -1663.5 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 14.5 0.0 -1663.5 fromfile 3DE Mirror.map log_MirrE 15 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.02 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00631722 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0.0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0.0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0.0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0.0 + +### 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_400A_ext.map log_SBField 0.00 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 1 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.01 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +#/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +/musr/command process addProcess mu+ musrMuEnergyLossLandau -1 -1 1 +# parameters for Landau energy loss distribution, LandauSigma corresponds to the width of the distibution +/musr/command SetLandauMPV 0.01 +/musr/command SetLandauSigma 0.3 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 15.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.0 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#/gun/momentumboundary 0.20 0.82 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 50 +/run/beamOn 10000 + diff --git a/run/LEM/templates/Template_12kV_protons.mac b/run/LEM/templates/Template_12kV_protons.mac new file mode 100644 index 0000000..eaa269b --- /dev/null +++ b/run/LEM/templates/Template_12kV_protons.mac @@ -0,0 +1,1010 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +#Benjamin Beringue Sep/2016 +#Implemented a field map fot he moderator and the Mirror +#Implemented a Landau distribution at the C-foil +# + +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotBend2 0 2 0 +90 +/musr/command rotation rotMirr 0 1 0 -45 +/musr/command rotation rotMod 1 0 0 90 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 498.58 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 495 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 490 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 485 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 480 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 470 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 460 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 440 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 420 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + +/musr/command visattributes Steel white + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ + +##### Wires used to define the electric field in the moderator : 23 wires per grid, 0.1mm diameter, 2mm spacing. + +# First Grid + +/musr/command construct tubs Wire1_1 0 0.05 24 0 360 Steel 470.75 0.0 -1700 log_World rotMod dead 220 +/musr/command construct tubs Wire1_2 0 0.05 24 0 360 Steel 470.75 0.0 -1698 log_World rotMod dead 221 +/musr/command construct tubs Wire1_3 0 0.05 24 0 360 Steel 470.75 0.0 -1696 log_World rotMod dead 222 +/musr/command construct tubs Wire1_4 0 0.05 24 0 360 Steel 470.75 0.0 -1694 log_World rotMod dead 223 +/musr/command construct tubs Wire1_5 0 0.05 24 0 360 Steel 470.75 0.0 -1694 log_World rotMod dead 224 +/musr/command construct tubs Wire1_6 0 0.05 24 0 360 Steel 470.75 0.0 -1692 log_World rotMod dead 225 +/musr/command construct tubs Wire1_7 0 0.05 24 0 360 Steel 470.75 0.0 -1690 log_World rotMod dead 226 +/musr/command construct tubs Wire1_8 0 0.05 24 0 360 Steel 470.75 0.0 -1688 log_World rotMod dead 227 +/musr/command construct tubs Wire1_9 0 0.05 24 0 360 Steel 470.75 0.0 -1686 log_World rotMod dead 228 +/musr/command construct tubs Wire1_10 0 0.05 24 0 360 Steel 470.75 0.0 -1684 log_World rotMod dead 229 +/musr/command construct tubs Wire1_11 0 0.05 24 0 360 Steel 470.75 0.0 -1682 log_World rotMod dead 230 +/musr/command construct tubs Wire1_12 0 0.05 24 0 360 Steel 470.75 0.0 -1680 log_World rotMod dead 231 +/musr/command construct tubs Wire1_13 0 0.05 24 0 360 Steel 470.75 0.0 -1678 log_World rotMod dead 232 +/musr/command construct tubs Wire1_14 0 0.05 24 0 360 Steel 470.75 0.0 -1676 log_World rotMod dead 233 +/musr/command construct tubs Wire1_15 0 0.05 24 0 360 Steel 470.75 0.0 -1674 log_World rotMod dead 234 +/musr/command construct tubs Wire1_16 0 0.05 24 0 360 Steel 470.75 0.0 -1672 log_World rotMod dead 235 +/musr/command construct tubs Wire1_17 0 0.05 24 0 360 Steel 470.75 0.0 -1670 log_World rotMod dead 236 +/musr/command construct tubs Wire1_18 0 0.05 24 0 360 Steel 470.75 0.0 -1668 log_World rotMod dead 237 +/musr/command construct tubs Wire1_19 0 0.05 24 0 360 Steel 470.75 0.0 -1664 log_World rotMod dead 238 +/musr/command construct tubs Wire1_20 0 0.05 24 0 360 Steel 470.75 0.0 -1662 log_World rotMod dead 239 +/musr/command construct tubs Wire1_21 0 0.05 24 0 360 Steel 470.75 0.0 -1660 log_World rotMod dead 240 +/musr/command construct tubs Wire1_22 0 0.05 24 0 360 Steel 470.75 0.0 -1658 log_World rotMod dead 241 +/musr/command construct tubs Wire1_23 0 0.05 24 0 360 Steel 470.75 0.0 -1656 log_World rotMod dead 242 + +#Second Grid + +/musr/command construct tubs Wire2_1 0 0.05 24 0 360 Steel 480.75 0.0 -1700 log_World rotMod dead 250 +/musr/command construct tubs Wire2_2 0 0.05 24 0 360 Steel 480.75 0.0 -1698 log_World rotMod dead 251 +/musr/command construct tubs Wire2_3 0 0.05 24 0 360 Steel 480.75 0.0 -1696 log_World rotMod dead 252 +/musr/command construct tubs Wire2_4 0 0.05 24 0 360 Steel 480.75 0.0 -1694 log_World rotMod dead 253 +/musr/command construct tubs Wire2_5 0 0.05 24 0 360 Steel 480.75 0.0 -1694 log_World rotMod dead 254 +/musr/command construct tubs Wire2_6 0 0.05 24 0 360 Steel 480.75 0.0 -1692 log_World rotMod dead 255 +/musr/command construct tubs Wire2_7 0 0.05 24 0 360 Steel 480.75 0.0 -1690 log_World rotMod dead 256 +/musr/command construct tubs Wire2_8 0 0.05 24 0 360 Steel 480.75 0.0 -1688 log_World rotMod dead 257 +/musr/command construct tubs Wire2_9 0 0.05 24 0 360 Steel 480.75 0.0 -1686 log_World rotMod dead 258 +/musr/command construct tubs Wire2_10 0 0.05 24 0 360 Steel 480.75 0.0 -1684 log_World rotMod dead 259 +/musr/command construct tubs Wire2_11 0 0.05 24 0 360 Steel 480.75 0.0 -1682 log_World rotMod dead 260 +/musr/command construct tubs Wire2_12 0 0.05 24 0 360 Steel 480.75 0.0 -1680 log_World rotMod dead 261 +/musr/command construct tubs Wire2_13 0 0.05 24 0 360 Steel 480.75 0.0 -1678 log_World rotMod dead 262 +/musr/command construct tubs Wire2_14 0 0.05 24 0 360 Steel 480.75 0.0 -1676 log_World rotMod dead 263 +/musr/command construct tubs Wire2_15 0 0.05 24 0 360 Steel 480.75 0.0 -1674 log_World rotMod dead 264 +/musr/command construct tubs Wire2_16 0 0.05 24 0 360 Steel 480.75 0.0 -1672 log_World rotMod dead 265 +/musr/command construct tubs Wire2_17 0 0.05 24 0 360 Steel 480.75 0.0 -1670 log_World rotMod dead 266 +/musr/command construct tubs Wire2_18 0 0.05 24 0 360 Steel 480.75 0.0 -1668 log_World rotMod dead 267 +/musr/command construct tubs Wire2_19 0 0.05 24 0 360 Steel 480.75 0.0 -1664 log_World rotMod dead 268 +/musr/command construct tubs Wire2_20 0 0.05 24 0 360 Steel 480.75 0.0 -1662 log_World rotMod dead 269 +/musr/command construct tubs Wire2_21 0 0.05 24 0 360 Steel 480.75 0.0 -1660 log_World rotMod dead 270 +/musr/command construct tubs Wire2_22 0 0.05 24 0 360 Steel 480.75 0.0 -1658 log_World rotMod dead 271 +/musr/command construct tubs Wire2_23 0 0.05 24 0 360 Steel 480.75 0.0 -1656 log_World rotMod dead 272 + +###Definition of the electric field : 3 field maps are superimposed, each one is defined for 1kV potential +#at the different electrodes : Moderator, Guard, Grid2. One has to multiply these field maps by the potential applied. + + +/musr/command construct box Grid2 0.001 0.001 0.001 G4_Galactic 470.80 0.0 -1678.0 log_World rotBend dead 212 +/musr/command globalfield Grid2_field 470.80 0 -1678.0 fromfile 3DE field_Grid_1kV.map log_Grid2 8.3 + +/musr/command construct box Guard 0.001 0.001 0.001 G4_Galactic 470.79 0.0 -1678.0 log_World rotBend dead 213 +/musr/command globalfield Guard_field 470.79 0 -1678.0 fromfile 3DE field_Guard_1kV.map log_Guard 9.6 + +/musr/command construct box Mod 0.001 0.001 0.001 G4_Galactic 470.81 0.0 -1678.0 log_World rotBend dead 214 +/musr/command globalfield Mod_field 470.81 0 -1678.0 fromfile 3DE field_Mod_1kV.map log_Mod 12 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# Mirror map computed with Opera, has to be set to the muons voltage + +/musr/command construct box MirrE 1 1 1 G4_Galactic 14.5 0.0 -1663.5 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 14.5 0.0 -1663.5 fromfile 3DE Mirror.map log_MirrE 15 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 7.2 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 8.4 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.02 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.00631722 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 9.0 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0.0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0.0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0.0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0.0 + +### 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_400A_ext.map log_SBField 0.00 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 1 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.01 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +#/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +/musr/command process addProcess mu+ musrMuEnergyLossLandau -1 -1 1 +# parameters for Landau energy loss distribution, LandauSigma corresponds to the width of the distibution +/musr/command SetLandauMPV 0.01 +/musr/command SetLandauSigma 0.3 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +#/gun/particle mu+ +/gun/particle proton + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 5.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.0 MeV +/gun/momentumsmearing 0.0097 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#/gun/momentumboundary 0.20 0.82 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 50 +/run/beamOn 10000 + diff --git a/run/LEM/templates/Template_15kV_muons.mac b/run/LEM/templates/Template_15kV_muons.mac new file mode 100644 index 0000000..05a1274 --- /dev/null +++ b/run/LEM/templates/Template_15kV_muons.mac @@ -0,0 +1,1009 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +#Benjamin Beringue Sep/2016 +#Implemented a field map fot he moderator and the Mirror +#Implemented a Landau distribution at the C-foil +# + +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotBend2 0 2 0 +90 +/musr/command rotation rotMirr 0 1 0 -45 +/musr/command rotation rotMod 1 0 0 90 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 498.58 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 495 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 490 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 485 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 480 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 470 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 460 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 440 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 420 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + +/musr/command visattributes Steel white + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ + +##### Wires used to define the electric field in the moderator : 23 wires per grid, 0.1mm diameter, 2mm spacing. + +# First Grid + +/musr/command construct tubs Wire1_1 0 0.05 24 0 360 Steel 470.75 0.0 -1700 log_World rotMod dead 220 +/musr/command construct tubs Wire1_2 0 0.05 24 0 360 Steel 470.75 0.0 -1698 log_World rotMod dead 221 +/musr/command construct tubs Wire1_3 0 0.05 24 0 360 Steel 470.75 0.0 -1696 log_World rotMod dead 222 +/musr/command construct tubs Wire1_4 0 0.05 24 0 360 Steel 470.75 0.0 -1694 log_World rotMod dead 223 +/musr/command construct tubs Wire1_5 0 0.05 24 0 360 Steel 470.75 0.0 -1694 log_World rotMod dead 224 +/musr/command construct tubs Wire1_6 0 0.05 24 0 360 Steel 470.75 0.0 -1692 log_World rotMod dead 225 +/musr/command construct tubs Wire1_7 0 0.05 24 0 360 Steel 470.75 0.0 -1690 log_World rotMod dead 226 +/musr/command construct tubs Wire1_8 0 0.05 24 0 360 Steel 470.75 0.0 -1688 log_World rotMod dead 227 +/musr/command construct tubs Wire1_9 0 0.05 24 0 360 Steel 470.75 0.0 -1686 log_World rotMod dead 228 +/musr/command construct tubs Wire1_10 0 0.05 24 0 360 Steel 470.75 0.0 -1684 log_World rotMod dead 229 +/musr/command construct tubs Wire1_11 0 0.05 24 0 360 Steel 470.75 0.0 -1682 log_World rotMod dead 230 +/musr/command construct tubs Wire1_12 0 0.05 24 0 360 Steel 470.75 0.0 -1680 log_World rotMod dead 231 +/musr/command construct tubs Wire1_13 0 0.05 24 0 360 Steel 470.75 0.0 -1678 log_World rotMod dead 232 +/musr/command construct tubs Wire1_14 0 0.05 24 0 360 Steel 470.75 0.0 -1676 log_World rotMod dead 233 +/musr/command construct tubs Wire1_15 0 0.05 24 0 360 Steel 470.75 0.0 -1674 log_World rotMod dead 234 +/musr/command construct tubs Wire1_16 0 0.05 24 0 360 Steel 470.75 0.0 -1672 log_World rotMod dead 235 +/musr/command construct tubs Wire1_17 0 0.05 24 0 360 Steel 470.75 0.0 -1670 log_World rotMod dead 236 +/musr/command construct tubs Wire1_18 0 0.05 24 0 360 Steel 470.75 0.0 -1668 log_World rotMod dead 237 +/musr/command construct tubs Wire1_19 0 0.05 24 0 360 Steel 470.75 0.0 -1664 log_World rotMod dead 238 +/musr/command construct tubs Wire1_20 0 0.05 24 0 360 Steel 470.75 0.0 -1662 log_World rotMod dead 239 +/musr/command construct tubs Wire1_21 0 0.05 24 0 360 Steel 470.75 0.0 -1660 log_World rotMod dead 240 +/musr/command construct tubs Wire1_22 0 0.05 24 0 360 Steel 470.75 0.0 -1658 log_World rotMod dead 241 +/musr/command construct tubs Wire1_23 0 0.05 24 0 360 Steel 470.75 0.0 -1656 log_World rotMod dead 242 + +#Second Grid + +/musr/command construct tubs Wire2_1 0 0.05 24 0 360 Steel 480.75 0.0 -1700 log_World rotMod dead 250 +/musr/command construct tubs Wire2_2 0 0.05 24 0 360 Steel 480.75 0.0 -1698 log_World rotMod dead 251 +/musr/command construct tubs Wire2_3 0 0.05 24 0 360 Steel 480.75 0.0 -1696 log_World rotMod dead 252 +/musr/command construct tubs Wire2_4 0 0.05 24 0 360 Steel 480.75 0.0 -1694 log_World rotMod dead 253 +/musr/command construct tubs Wire2_5 0 0.05 24 0 360 Steel 480.75 0.0 -1694 log_World rotMod dead 254 +/musr/command construct tubs Wire2_6 0 0.05 24 0 360 Steel 480.75 0.0 -1692 log_World rotMod dead 255 +/musr/command construct tubs Wire2_7 0 0.05 24 0 360 Steel 480.75 0.0 -1690 log_World rotMod dead 256 +/musr/command construct tubs Wire2_8 0 0.05 24 0 360 Steel 480.75 0.0 -1688 log_World rotMod dead 257 +/musr/command construct tubs Wire2_9 0 0.05 24 0 360 Steel 480.75 0.0 -1686 log_World rotMod dead 258 +/musr/command construct tubs Wire2_10 0 0.05 24 0 360 Steel 480.75 0.0 -1684 log_World rotMod dead 259 +/musr/command construct tubs Wire2_11 0 0.05 24 0 360 Steel 480.75 0.0 -1682 log_World rotMod dead 260 +/musr/command construct tubs Wire2_12 0 0.05 24 0 360 Steel 480.75 0.0 -1680 log_World rotMod dead 261 +/musr/command construct tubs Wire2_13 0 0.05 24 0 360 Steel 480.75 0.0 -1678 log_World rotMod dead 262 +/musr/command construct tubs Wire2_14 0 0.05 24 0 360 Steel 480.75 0.0 -1676 log_World rotMod dead 263 +/musr/command construct tubs Wire2_15 0 0.05 24 0 360 Steel 480.75 0.0 -1674 log_World rotMod dead 264 +/musr/command construct tubs Wire2_16 0 0.05 24 0 360 Steel 480.75 0.0 -1672 log_World rotMod dead 265 +/musr/command construct tubs Wire2_17 0 0.05 24 0 360 Steel 480.75 0.0 -1670 log_World rotMod dead 266 +/musr/command construct tubs Wire2_18 0 0.05 24 0 360 Steel 480.75 0.0 -1668 log_World rotMod dead 267 +/musr/command construct tubs Wire2_19 0 0.05 24 0 360 Steel 480.75 0.0 -1664 log_World rotMod dead 268 +/musr/command construct tubs Wire2_20 0 0.05 24 0 360 Steel 480.75 0.0 -1662 log_World rotMod dead 269 +/musr/command construct tubs Wire2_21 0 0.05 24 0 360 Steel 480.75 0.0 -1660 log_World rotMod dead 270 +/musr/command construct tubs Wire2_22 0 0.05 24 0 360 Steel 480.75 0.0 -1658 log_World rotMod dead 271 +/musr/command construct tubs Wire2_23 0 0.05 24 0 360 Steel 480.75 0.0 -1656 log_World rotMod dead 272 + +###Definition of the electric field : 3 field maps are superimposed, each one is defined for 1kV potential +#at the different electrodes : Moderator, Guard, Grid2. One has to multiply these field maps by the potential applied. + + +/musr/command construct box Grid2 0.001 0.001 0.001 G4_Galactic 470.80 0.0 -1678.0 log_World rotBend dead 212 +/musr/command globalfield Grid2_field 470.80 0 -1678.0 fromfile 3DE field_Grid_1kV.map log_Grid2 10.4 + +/musr/command construct box Guard 0.001 0.001 0.001 G4_Galactic 470.79 0.0 -1678.0 log_World rotBend dead 213 +/musr/command globalfield Guard_field 470.79 0 -1678.0 fromfile 3DE field_Guard_1kV.map log_Guard 12 + +/musr/command construct box Mod 0.001 0.001 0.001 G4_Galactic 470.81 0.0 -1678.0 log_World rotBend dead 214 +/musr/command globalfield Mod_field 470.81 0 -1678.0 fromfile 3DE field_Mod_1kV.map log_Mod 15 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# Mirror map computed with Opera, has to be set to the muons voltage + +/musr/command construct box MirrE 1 1 1 G4_Galactic 14.5 0.0 -1663.5 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 14.5 0.0 -1663.5 fromfile 3DE Mirror.map log_MirrE 15 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 9.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.57 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0.0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0.0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0.0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0.0 + +### 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_400A_ext.map log_SBField 0.00 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 1 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.01 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +#/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +/musr/command process addProcess mu+ musrMuEnergyLossLandau -1 -1 1 +# parameters for Landau energy loss distribution, LandauSigma corresponds to the width of the distibution +/musr/command SetLandauMPV 0.01 +/musr/command SetLandauSigma 0.3 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +/gun/particle mu+ + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 15.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.0 MeV +/gun/momentumsmearing 0.016 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#/gun/momentumboundary 0.20 0.82 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 50 +/run/beamOn 10000 + diff --git a/run/LEM/templates/Template_15kV_protons.mac b/run/LEM/templates/Template_15kV_protons.mac new file mode 100644 index 0000000..cd8d791 --- /dev/null +++ b/run/LEM/templates/Template_15kV_protons.mac @@ -0,0 +1,1010 @@ +# Template suitable for beam profile detectioon with the spin rotator in place +# Zaher Salman 7/10/2010 +# +# Thomas Prokscha 22/Nov/2012 +# Moved sample stack on cryostat 3mm downstream to fit to positions in apparatus +# Changed positions of positron counters according to corrected drawing LEM 37.01.024 (19/Sep/2012) +# +# Position downstream detectors: z=+62.5mm original value: z=+66.5mm +# Position upstream detectors: z=-64.0mm original value: z=-60.0mm +# +# 2013 setup: 1mm Ti sample tube +# +# This is a template mac file for tuning the lem beamline with a spin rotator +# You can use this to generate a beam envelope profile along z +# +# Ran Xiao 25/Sep/2014 +# Start muons at moderator at x=499, assume cosA angular distribution, assume energy distribution +# +#Benjamin Beringue Sep/2016 +#Implemented a field map fot he moderator and the Mirror +#Implemented a Landau distribution at the C-foil +# + +################################################################################################################ +# -- ROTATION MATRICES -- +################################################################################################################ +# Define rotations for the field maps of Trigger and Ring Anode: +/musr/command rotation rotTrig 0 1 0 -45 +/musr/command rotation rotRAnR 0 0 1 -90 +/musr/command rotation rotRAnL 0 0 1 90 +/musr/command rotation rotRAnD 0 0 1 180 + +# More Rotations +/musr/command rotation rotD1 0 0 1 11.250 +/musr/command rotation rotD2 0 0 1 33.750 +/musr/command rotation rotD3 0 0 1 56.250 +/musr/command rotation rotD4 0 0 1 78.750 +/musr/command rotation rotD5 0 0 1 101.250 +/musr/command rotation rotD6 0 0 1 123.750 +/musr/command rotation rotD7 0 0 1 146.250 +/musr/command rotation rotD8 0 0 1 168.750 +/musr/command rotation rotD9 0 0 1 191.250 +/musr/command rotation rotD10 0 0 1 213.750 +/musr/command rotation rotD11 0 0 1 236.250 +/musr/command rotation rotD12 0 0 1 258.750 +/musr/command rotation rotD13 0 0 1 281.250 +/musr/command rotation rotD14 0 0 1 303.750 +/musr/command rotation rotD15 0 0 1 326.250 +/musr/command rotation rotD16 0 0 1 348.750 + +/musr/command rotation rotD17 0 0 1 11.250 +/musr/command rotation rotD18 0 0 1 33.750 +/musr/command rotation rotD19 0 0 1 56.250 +/musr/command rotation rotD20 0 0 1 78.750 +/musr/command rotation rotD21 0 0 1 101.250 +/musr/command rotation rotD22 0 0 1 123.750 +/musr/command rotation rotD23 0 0 1 146.250 +/musr/command rotation rotD24 0 0 1 168.750 +/musr/command rotation rotD25 0 0 1 191.250 +/musr/command rotation rotD26 0 0 1 213.750 +/musr/command rotation rotD27 0 0 1 236.250 +/musr/command rotation rotD28 0 0 1 258.750 +/musr/command rotation rotD29 0 0 1 281.250 +/musr/command rotation rotD30 0 0 1 303.750 +/musr/command rotation rotD31 0 0 1 326.250 +/musr/command rotation rotD32 0 0 1 348.750 + +# Beam line bend at mirror +/musr/command rotation rotBend 0 1 0 -90 +/musr/command rotation rotBend2 0 2 0 +90 +/musr/command rotation rotMirr 0 1 0 -45 +/musr/command rotation rotMod 1 0 0 90 + + +################################################################################################################ +# -- LEM GEOMETRY -- +################################################################################################################ + +# WORLD = Laboratory reference frame, the origin is in the centre of the LEM sample tube +/musr/command construct box World 900 350 2600 G4_Galactic 0 0 0 no_logical_volume norot dead -1 +/musr/command visattributes log_World invisible + +# These are slices to map the beam envelope along the beam line. The radius should be less than 50mm +/musr/command construct tubs save0 0 60 0.05 0 360 G4_Galactic 850 0 -1678 log_World rotBend dead 851 +/musr/command construct tubs save1 0 60 0.05 0 360 G4_Galactic 800 0 -1678 log_World rotBend dead 852 +/musr/command construct tubs save2 0 60 0.05 0 360 G4_Galactic 750 0 -1678 log_World rotBend dead 853 +/musr/command construct tubs save3 0 60 0.05 0 360 G4_Galactic 700 0 -1678 log_World rotBend dead 854 +/musr/command construct tubs save4 0 60 0.05 0 360 G4_Galactic 498.58 0 -1678 log_World rotBend dead 855 +/musr/command construct tubs save5 0 60 0.05 0 360 G4_Galactic 495 0 -1678 log_World rotBend dead 856 +/musr/command construct tubs save6 0 60 0.05 0 360 G4_Galactic 490 0 -1678 log_World rotBend dead 857 +/musr/command construct tubs save7 0 60 0.05 0 360 G4_Galactic 485 0 -1678 log_World rotBend dead 858 +/musr/command construct tubs save8 0 60 0.05 0 360 G4_Galactic 480 0 -1678 log_World rotBend dead 859 +/musr/command construct tubs save9 0 60 0.05 0 360 G4_Galactic 470 0 -1678 log_World rotBend dead 860 +/musr/command construct tubs save10 0 60 0.05 0 360 G4_Galactic 460 0 -1678 log_World rotBend dead 861 +/musr/command construct tubs save11 0 60 0.05 0 360 G4_Galactic 440 0 -1678 log_World rotBend dead 862 +/musr/command construct tubs save12 0 60 0.05 0 360 G4_Galactic 420 0 -1678 log_World rotBend dead 863 +/musr/command construct tubs save13 0 60 0.05 0 360 G4_Galactic 200 0 -1678 log_World rotBend dead 864 +/musr/command construct tubs save14 0 60 0.05 0 360 G4_Galactic 150 0 -1678 log_World rotBend dead 865 +/musr/command construct tubs save15 0 60 0.05 0 360 G4_Galactic 100 0 -1678 log_World rotBend dead 866 +/musr/command construct tubs save16 0 60 0.05 0 360 G4_Galactic 70 0 -1678 log_World rotBend dead 867 +/musr/command construct tubs save17 0 60 0.05 0 360 G4_Galactic 0 0 -1620 log_World norot dead 868 +/musr/command construct tubs save18 0 60 0.05 0 360 G4_Galactic 0 0 -1600 log_World norot dead 869 +/musr/command construct tubs save19 0 60 0.05 0 360 G4_Galactic 0 0 -1550 log_World norot dead 870 +/musr/command construct tubs save20 0 60 0.05 0 360 G4_Galactic 0 0 -1500 log_World norot dead 871 +/musr/command construct tubs save21 0 60 0.05 0 360 G4_Galactic 0 0 -1450 log_World norot dead 872 +/musr/command construct tubs save22 0 60 0.05 0 360 G4_Galactic 0 0 -1400 log_World norot dead 873 +/musr/command construct tubs save23 0 60 0.05 0 360 G4_Galactic 0 0 -1350 log_World norot dead 874 +/musr/command construct tubs save24 0 60 0.05 0 360 G4_Galactic 0 0 -1300 log_World norot dead 875 +/musr/command construct tubs save25 0 60 0.05 0 360 G4_Galactic 0 0 -1250 log_World norot dead 876 +/musr/command construct tubs save26 0 60 0.05 0 360 G4_Galactic 0 0 -1200 log_World norot dead 877 +/musr/command construct tubs save27 0 60 0.05 0 360 G4_Galactic 0 0 -1150 log_World norot dead 878 +/musr/command construct tubs save28 0 60 0.05 0 360 G4_Galactic 0 0 -1100 log_World norot dead 879 +/musr/command construct tubs save29 0 60 0.05 0 360 G4_Galactic 0 0 -1050 log_World norot dead 880 +/musr/command construct tubs save30 0 60 0.05 0 360 G4_Galactic 0 0 -1000 log_World norot dead 881 +/musr/command construct tubs save31 0 60 0.05 0 360 G4_Galactic 0 0 -950 log_World norot dead 882 +/musr/command construct tubs save32 0 60 0.05 0 360 G4_Galactic 0 0 -900 log_World norot dead 883 +/musr/command construct tubs save33 0 60 0.05 0 360 G4_Galactic 0 0 -850 log_World norot dead 884 +/musr/command construct tubs save34 0 60 0.05 0 360 G4_Galactic 0 0 -800 log_World norot dead 885 +/musr/command construct tubs save35 0 60 0.05 0 360 G4_Galactic 0 0 -750 log_World norot dead 886 +/musr/command construct tubs save36 0 60 0.05 0 360 G4_Galactic 0 0 -700 log_World norot dead 887 +/musr/command construct tubs save37 0 60 0.05 0 360 G4_Galactic 0 0 -650 log_World norot dead 888 +/musr/command construct tubs save38 0 60 0.05 0 360 G4_Galactic 0 0 -600 log_World norot dead 889 +/musr/command construct tubs save39 0 60 0.05 0 360 G4_Galactic 0 0 -525 log_World norot dead 890 +/musr/command construct tubs save40 0 60 0.05 0 360 G4_Galactic 0 0 -450 log_World norot dead 891 +/musr/command construct tubs save41 0 60 0.05 0 360 G4_Galactic 0 0 -420 log_World norot dead 892 +/musr/command construct tubs save42 0 60 0.05 0 360 G4_Galactic 0 0 -400 log_World norot dead 893 +/musr/command construct tubs save43 0 60 0.05 0 360 G4_Galactic 0 0 -350 log_World norot dead 894 +/musr/command construct tubs save44 0 60 0.05 0 360 G4_Galactic 0 0 -300 log_World norot dead 895 +/musr/command construct tubs save45 0 60 0.05 0 360 G4_Galactic 0 0 -250 log_World norot dead 896 +/musr/command construct tubs save46 0 60 0.05 0 360 G4_Galactic 0 0 -200 log_World norot dead 897 +/musr/command construct tubs save47 0 60 0.05 0 360 G4_Galactic 0 0 -150 log_World norot dead 898 +/musr/command construct tubs save48 0 60 0.05 0 360 G4_Galactic 0 0 -100 log_World norot dead 899 +/musr/command construct tubs save49 0 60 0.05 0 360 G4_Galactic 0 0 -50 log_World norot dead 900 +/musr/command construct tubs save50 0 60 0.05 0 360 G4_Galactic 0 0 0 log_World norot dead 901 +/musr/command construct tubs save51 0 60 0.05 0 360 G4_Galactic 0 0 16 log_World norot dead 902 +/musr/command construct tubs save52 0 60 0.05 0 360 G4_Galactic 0 0 100 log_World norot dead 903 +/musr/command construct tubs save53 0 60 0.05 0 360 G4_Galactic 0 0 150 log_World norot dead 904 +/musr/command visattributes G4_Galactic invisible + +################################################################################################################ +# -- APD Scintillators -- +################################################################################################################ + +# Detectors volume (0,0,0) coninsides with World (0,0,0) +/musr/command construct tubs DetV 80 105 133 0 360 G4_Galactic 0 0 0 log_World norot dead 100 +/musr/command visattributes log_DetV invisible + +# For final design set +# BackHW=60 +# BackCR=-64.0, 19/Sep/2012 +# ForwHW=65.5 +# ForwCR=62.5, 19/Sep/2012 + +# Back inner sections (Upstream) (v.i.) +# Final design (30 Jun 09, 19 Sep 12) BackHW=60.0mm (Half width or length), BackCR=-4-BackHW=-64.0mm (Center z coordinate) +/musr/command construct trd90y ScD1 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 -17.265493 -64.0 log_DetV rotD1 musr/ScintSD 1 +/musr/command construct trd90y ScD2 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 -49.167966 -64.0 log_DetV rotD2 musr/ScintSD 2 +/musr/command construct trd90y ScD3 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 -73.585061 -64.0 log_DetV rotD3 musr/ScintSD 3 +/musr/command construct trd90y ScD4 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 -86.799497 -64.0 log_DetV rotD4 musr/ScintSD 4 +/musr/command construct trd90y ScD5 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 -86.799497 -64.0 log_DetV rotD5 musr/ScintSD 5 +/musr/command construct trd90y ScD6 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 -73.585061 -64.0 log_DetV rotD6 musr/ScintSD 6 +/musr/command construct trd90y ScD7 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 -49.167966 -64.0 log_DetV rotD7 musr/ScintSD 7 +/musr/command construct trd90y ScD8 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 -17.265493 -64.0 log_DetV rotD8 musr/ScintSD 8 +/musr/command construct trd90y ScD9 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -86.799497 17.265493 -64.0 log_DetV rotD9 musr/ScintSD 9 +/musr/command construct trd90y ScD10 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -73.585061 49.167966 -64.0 log_DetV rotD10 musr/ScintSD 10 +/musr/command construct trd90y ScD11 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -49.167966 73.585061 -64.0 log_DetV rotD11 musr/ScintSD 11 +/musr/command construct trd90y ScD12 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.265493 86.799497 -64.0 log_DetV rotD12 musr/ScintSD 12 +/musr/command construct trd90y ScD13 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.265493 86.799497 -64.0 log_DetV rotD13 musr/ScintSD 13 +/musr/command construct trd90y ScD14 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 49.167966 73.585061 -64.0 log_DetV rotD14 musr/ScintSD 14 +/musr/command construct trd90y ScD15 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 73.585061 49.167966 -64.0 log_DetV rotD15 musr/ScintSD 15 +/musr/command construct trd90y ScD16 60 60 17.7 16.7 2.5 G4_PLASTIC_SC_VINYLTOLUENE 86.799497 17.265493 -64.0 log_DetV rotD16 musr/ScintSD 16 + +# Forward inner sections (Downstream) (h.i.) +# Final design (30 June 09, 19 Sep 12) ForwHW=65.5mm (Half width or length), ForwCR=-3+ForwHW=62.5mm (Center z coordinate) +/musr/command construct trd90y ScD17 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 -17.070403 62.5 log_DetV rotD17 musr/ScintSD 17 +/musr/command construct trd90y ScD18 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 -48.612395 62.5 log_DetV rotD18 musr/ScintSD 18 +/musr/command construct trd90y ScD19 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 -72.753591 62.5 log_DetV rotD19 musr/ScintSD 19 +/musr/command construct trd90y ScD20 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 -85.818712 62.5 log_DetV rotD20 musr/ScintSD 20 +/musr/command construct trd90y ScD21 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 -85.818712 62.5 log_DetV rotD21 musr/ScintSD 21 +/musr/command construct trd90y ScD22 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 -72.753591 62.5 log_DetV rotD22 musr/ScintSD 22 +/musr/command construct trd90y ScD23 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 -48.612395 62.5 log_DetV rotD23 musr/ScintSD 23 +/musr/command construct trd90y ScD24 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 -17.070403 62.5 log_DetV rotD24 musr/ScintSD 24 +/musr/command construct trd90y ScD25 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -85.818712 17.070403 62.5 log_DetV rotD25 musr/ScintSD 25 +/musr/command construct trd90y ScD26 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -72.753591 48.612395 62.5 log_DetV rotD26 musr/ScintSD 26 +/musr/command construct trd90y ScD27 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -48.612395 72.753591 62.5 log_DetV rotD27 musr/ScintSD 27 +/musr/command construct trd90y ScD28 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE -17.070403 85.818712 62.5 log_DetV rotD28 musr/ScintSD 28 +/musr/command construct trd90y ScD29 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 17.070403 85.818712 62.5 log_DetV rotD29 musr/ScintSD 29 +/musr/command construct trd90y ScD30 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 48.612395 72.753591 62.5 log_DetV rotD30 musr/ScintSD 30 +/musr/command construct trd90y ScD31 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 72.753591 48.612395 62.5 log_DetV rotD31 musr/ScintSD 31 +/musr/command construct trd90y ScD32 65.5 65.5 17.5 16.5 2.5 G4_PLASTIC_SC_VINYLTOLUENE 85.818712 17.070403 62.5 log_DetV rotD32 musr/ScintSD 32 + +# Back outer sections (v.a.) +/musr/command construct trd ScD33 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 -18.631126 -64.0 log_DetV rotD1 musr/ScintSD 33 +/musr/command construct trd ScD34 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 -53.056957 -64.0 log_DetV rotD2 musr/ScintSD 34 +/musr/command construct trd ScD35 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 -79.405348 -64.0 log_DetV rotD3 musr/ScintSD 35 +/musr/command construct trd ScD36 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 -93.664994 -64.0 log_DetV rotD4 musr/ScintSD 36 +/musr/command construct trd ScD37 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 -93.664994 -64.0 log_DetV rotD5 musr/ScintSD 37 +/musr/command construct trd ScD38 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 -79.405348 -64.0 log_DetV rotD6 musr/ScintSD 38 +/musr/command construct trd ScD39 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 -53.056957 -64.0 log_DetV rotD7 musr/ScintSD 39 +/musr/command construct trd ScD40 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 -18.631126 -64.0 log_DetV rotD8 musr/ScintSD 40 +/musr/command construct trd ScD41 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -93.664994 18.631126 -64.0 log_DetV rotD9 musr/ScintSD 41 +/musr/command construct trd ScD42 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -79.405348 53.056957 -64.0 log_DetV rotD10 musr/ScintSD 42 +/musr/command construct trd ScD43 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -53.056957 79.405348 -64.0 log_DetV rotD11 musr/ScintSD 43 +/musr/command construct trd ScD44 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.631126 93.664994 -64.0 log_DetV rotD12 musr/ScintSD 44 +/musr/command construct trd ScD45 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.631126 93.664994 -64.0 log_DetV rotD13 musr/ScintSD 45 +/musr/command construct trd ScD46 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 53.056957 79.405348 -64.0 log_DetV rotD14 musr/ScintSD 46 +/musr/command construct trd ScD47 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 79.405348 53.056957 -64.0 log_DetV rotD15 musr/ScintSD 47 +/musr/command construct trd ScD48 60 60 19.1 18.1 2.5 G4_PLASTIC_SC_VINYLTOLUENE 93.664994 18.631126 -64.0 log_DetV rotD16 musr/ScintSD 48 + +# Forward outer sections (h.a.) +/musr/command construct trd ScD49 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 -18.436035 62.5 log_DetV rotD1 musr/ScintSD 49 +/musr/command construct trd ScD50 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 -52.501387 62.5 log_DetV rotD2 musr/ScintSD 50 +/musr/command construct trd ScD51 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 -78.573878 62.5 log_DetV rotD3 musr/ScintSD 51 +/musr/command construct trd ScD52 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 -92.684209 62.5 log_DetV rotD4 musr/ScintSD 52 +/musr/command construct trd ScD53 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 -92.684209 62.5 log_DetV rotD5 musr/ScintSD 53 +/musr/command construct trd ScD54 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 -78.573878 62.5 log_DetV rotD6 musr/ScintSD 54 +/musr/command construct trd ScD55 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 -52.501387 62.5 log_DetV rotD7 musr/ScintSD 55 +/musr/command construct trd ScD56 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 -18.436035 62.5 log_DetV rotD8 musr/ScintSD 56 +/musr/command construct trd ScD57 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -92.684209 18.436035 62.5 log_DetV rotD9 musr/ScintSD 57 +/musr/command construct trd ScD58 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -78.573878 52.501387 62.5 log_DetV rotD10 musr/ScintSD 58 +/musr/command construct trd ScD59 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -52.501387 78.573878 62.5 log_DetV rotD11 musr/ScintSD 59 +/musr/command construct trd ScD60 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE -18.436035 92.684209 62.5 log_DetV rotD12 musr/ScintSD 60 +/musr/command construct trd ScD61 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 18.436035 92.684209 62.5 log_DetV rotD13 musr/ScintSD 61 +/musr/command construct trd ScD62 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 52.501387 78.573878 62.5 log_DetV rotD14 musr/ScintSD 62 +/musr/command construct trd ScD63 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 78.573878 52.501387 62.5 log_DetV rotD15 musr/ScintSD 63 +/musr/command construct trd ScD64 65.5 65.5 18.9 17.9 2.5 G4_PLASTIC_SC_VINYLTOLUENE 92.684209 18.436035 62.5 log_DetV rotD16 musr/ScintSD 64 + +# Structural support inside the detectors vessel +# Carbon fibre, inner radius 80, thickness 2 mm. +# Additional Al plate removed, 2 mm thick for h.i and h.a and 3 mm thick for v.i. and v.a +/musr/command construct tubs hInShell 80.0 82.0 65.5 0 360 G4_C 0 0 62 log_DetV norot dead 70 +/musr/command construct tubs vInShell 80.0 82.0 60.0 0 360 G4_C 0 0 -64.5 log_DetV norot dead 70 + +# Visual attributes (optional) +/musr/command visattributes G4_PLASTIC_SC_VINYLTOLUENE green +#/musr/command visattributes log_ScD49 green +#/musr/command visattributes log_ScD50 green +#/musr/command visattributes log_test red + +################################################################################################################ +# Sample vacuum/tube up to gate valve - Can host either the Cryostat or the MCP2 +################################################################################################################ + +# Vacuum space +# /musr/command construct tubs SamV 0 75.0 254.5 0 360 G4_Galactic 0 0 -92.5 log_World norot dead 100 +# Sample tube +#/musr/command construct tubs SamS 75.0 77.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 +# 2012: 2mm Ti tube, 2013: 1mm +/musr/command construct tubs SamS 75.0 76.0 162.0 0 360 G4_Ti 0 0 0 log_World norot dead 101 + +# F160 - 160 CF flange upstream of MCP2 tube +/musr/command construct tubs F160 78.0 101.25 11 0 360 Steel 0 0 -151.0 log_World norot dead 102 +# F100 (Blank end flange) +/musr/command construct tubs F100 0 75.0 10 0 360 Steel 0 0 172.0 log_World norot dead 103 + +# 200 CF flange upstream of MCP2 tube covering the whole length of the gate valve chamber. +/musr/command construct tubs GATS 103.25 126.5 92.5 0 360 Steel 0 0 -254.5 log_World norot dead 371 + +# F200 - 200 CF flange upstream of MCP2 tube to connect to gate valve chamber +/musr/command construct tubs F200 76.5 103.25 12 0 360 Steel 0 0 -174.0 log_World norot dead 372 + +# Visual attributes (optional) +#/musr/command visattributes log_SamV invisible +/musr/command visattributes log_SamS oxsteel +/musr/command visattributes log_F160 oxsteel +#/musr/command visattributes log_F100 oxsteel +/musr/command visattributes log_GATS oxsteel +/musr/command visattributes log_F200 oxsteel + + +################################################################################################################ +# MCP - Micro Channel Plate Detector MCP2 +# mcpv_z = -92.5 mm! +# +# We have a 324 mm long sample tube; +# the MCP2 front side is at 142 mm from the end of the sample tube. +# the front face of the sample plate of the cryostat is 145 mm from the end of the sample tube. +# +################################################################################################################ +# +# MCPM1 - MCP Macor ring 1 +# MCPD - electron multiplying glass disk (also known as target) +# Sensitive surface at z = 20 mm wrt. World +# MCPM2 - MCP Macor ring 2 +# /musr/command construct tubs MCPM1 24 32.5 0.75 0 360 Macor 0 0 19.25 log_World norot dead 251 +# Use it either as (DMCP-musr/ScintSD) - no info on mu+ polariz., or as (target-dead) with info on mu+ polariz. +# /musr/command construct tubs target 0 25.0 1.50 0 360 MCPglass 0 0 21.5 log_World norot dead 252 +# /musr/command construct tubs MCPM2 24 32.5 0.75 0 360 Macor 0 0 23.75 log_World norot dead 253 +# NOTE: To intercept ALL the incoming muons, comment the DMCP and MCPM1 lines above and uncomment this one: +#*aa/musr/command construct tubs DMCP 0 76.5 1.5 0 360 MCPglass 0 0 108 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs target 0 21.0 1.5 0 360 MCPglass 0 0 114 log_SamV norot musr/ScintSD 202 +#*/musr/command construct tubs saveTarget 0 75.0 0.2 0 360 G4_Galactic 0 0 110.79 log_SamV norot dead 222 +# +# MCSR - Stainless Steel Ring for MCP2 mounting (modelled as a box with a circular hole) +# MCVR - "Vacuum Ring" (circular hole) +# /musr/command construct box MCSR 36.5 36.5 1 Steel 0 0 25.5 log_World norot dead 254 +# /musr/command construct tubs MCVR 0 27.5 1 0 360 G4_Galactic 0 0 0 log_MCSR norot dead 255 + +# MCPA = MCP Anode (modelled as a box with two symmetrically subtracted "vacuum" disks) +# ANVA1 - Anode "Vacuum" 1 - Part of MCP Anode +# ANVA2 - Anode "Vacuum" 2 - Part of MCP Anode +# /musr/command construct box MCPA 36.5 36.5 4 Steel 0 0 37 log_World norot dead 256 +# /musr/command construct tubs ANVA1 0 27.5 1.5 0 360 G4_Galactic 0 0 -2.5 log_MCPA norot dead 257 +# /musr/command construct tubs ANVA2 0 27.5 1.5 0 360 G4_Galactic 0 0 2.5 log_MCPA norot dead 258 + +# MCSS - MCP Stainless Steel Support Ring +# /musr/command construct tubs MCSS 40 48 2.5 0 360 Steel 0 0 69.8 log_World norot dead 259 + + +# MCP2 visual attributes (optional) +#/musr/command visattributes log_DMCP MCP_style +#*/musr/command visattributes log_target MCP_style +#*/musr/command visattributes log_MCPM1 MACOR_style +#*------ /musr/command visattributes log_MCPM2 MACOR_style + + +################################################################################################################ +# CRY - Cryostat - Used as an ALTERNATIVE to MCP2 - Uncomment lines with #*. (Offset = 0.0 cm) +# +# sample plate front face is at z = 17mm: +# cold finger distance to CF100: 130mm +# 5mm base plate + 6mm sapphire + 4mm sample plate = 15mm +# sample plate front face from CF100: 145mm +# z-position of sample plate front face: 324/2-145mm = 17mm +# --> sample plate center is at 17+2=19mm +# +################################################################################################################ + +# Dimensions for large/small sample plates SamPL=35/21 and SaphPL=SamPL35-5 +/musr/command construct tubs target 0 35 2 0 360 G4_Al 0 0 19.0 log_World norot dead 251 +/musr/command construct tubs SAPH 0 30 3 0 360 G4_ALUMINUM_OXIDE 0 0 24.0 log_World norot dead 252 +/musr/command construct tubs SAH1 0 35 2.5 0 360 G4_Al 0 0 29.5 log_World norot dead 253 + +# Special save target volume +/musr/command construct tubs saveTarget 0 40 0.05 0 360 G4_Galactic 0 0 16.9 log_World norot dead 253 + +# Other components of the cryostat (dimensions and position of CRY4 are only approx. because unknown) +# COld Finger +/musr/command construct tubs COFI 0 27.5 5 0 360 G4_Cu 0 0 37.0 log_World norot dead 261 +# End plate of cryostat (7 mm thick, 30 mm diameter) +/musr/command construct tubs CRY1 0 15 3.5 0 360 G4_Cu 0 0 45.5 log_World norot dead 262 +# Heat exchanger (assuming a 10 mm opening - Original dimensions not known.) # OLD pos. 160.0 +/musr/command construct tubs CRY2 5 15 25 0 360 G4_Cu 0 0 74.0 log_World norot dead 263 +# Mounting ring for He-shield +/musr/command construct tubs CRY3 38 47 5.5 0 360 G4_Cu 0 0 54.0 log_World norot dead 264 +# 2 mm thick plate for mounting ring. This is just to close the downstream side. +/musr/command construct tubs CRY4 15 38 1 0 360 G4_Cu 0 0 54.0 log_World norot dead 265 +# Radiation shield +/musr/command construct tubs CRSH 47 48 45 0 360 G4_Cu 0 0 19.0 log_World norot dead 266 +# Front part of the radiation shield +/musr/command construct tubs CRSH2 30 48 0.5 0 360 G4_Cu 0 0 -26.5 log_World norot dead 267 + +# Electrical Field Guard Rings (distance between the guard rings: 16 mm) +# /musr/command construct tubs Guard1 29 38 1.5 0 360 G4_Cu 0 0 -13.5 log_World norot dead 271 +# /musr/command construct tubs Guard2 29 38 1.5 0 360 G4_Cu 0 0 2.5 log_World norot dead 272 + +# Cryostat visual attributes (optional) +/musr/command visattributes log_SAH1 oxsteel +#/musr/command visattributes log_SAH2 oxsteel +/musr/command visattributes log_target oxsteel +/musr/command visattributes log_SAPH MACOR_style +#/musr/command visattributes log_SAH3 oxsteel +/musr/command visattributes log_CRSH yellow +/musr/command visattributes log_CRSH2 yellow +#/musr/command visattributes log_test red + + +################################################################################################################ +# RA - Ring Anode, M - middle part (closer to Ground Anode), E - end part (farther from the Ground Anode) +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) +# Note: 3.0 mm HALF gap at 45.1469 mm half radius => delta_ang = asin(3.0/45.1469)*180/pi = 3.81 deg. +# Note: delta_ang = 3.1744 deg. for 2.5 mm HG. The angular extension goes e.g. from (45 + da) to (90 - 2*da). +# Note: Ring Anode - Ground Anode distance was 15 mm => CHANGED to 12 mm! (Positions: 11.5 -> 8.5, -33.5 -> -36.5) +################################################################################################################ + +# RA_Ez = -10.35+2.25 = -8.1 cm; RA_Mz= -10.35 - 2.25 = -12.6 cm; RA_Gz= -25.45+3.75 = -21.7 cm; mcpv_z = -9.25 cm +/musr/command construct cons RA_EU 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World norot dead 801 +/musr/command construct cons RA_MU 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World norot dead 802 +/musr/command construct cons RA_ER 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnR dead 803 +/musr/command construct cons RA_MR 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnR dead 804 +/musr/command construct cons RA_ED 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnD dead 805 +/musr/command construct cons RA_MD 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnD dead 806 +/musr/command construct cons RA_EL 45.1469 62.5 33.5 39.0 22.5 48.81 82.38 Steel 0 0 -84.0 log_World rotRAnL dead 807 +/musr/command construct cons RA_ML 56.7937 62.5 45.147 62.5 22.5 48.81 82.38 Steel 0 0 -129. log_World rotRAnL dead 808 + +# 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_T 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.00 log_World norot dead 822 +/musr/command construct tubs RA_R 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.02 log_World rotRAnR dead 824 +/musr/command construct tubs RA_B 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.04 log_World rotRAnD dead 826 +/musr/command construct tubs RA_L 0 0.01 0.005 0 360 G4_Galactic 0 0 -143.06 log_World rotRAnL dead 828 + +# 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 831 + +# Ring Anodes visual attributes (optional) +/musr/command visattributes log_RA_G invisible +#/musr/command visattributes log_RA_G Grid_style + + +################################################################################################################ +# Trigger - Trigger Detector # Triggerz = -1092 mm; total length of TD is 110 mm; carbon foil at -1144 mm. +################################################################################################################ + +# Trigger volume +/musr/command construct tubs TrigV 90 127 148 0 360 G4_Galactic 0 0 -495 log_World norot dead 600 +# Trigger tube +/musr/command construct tubs TrigS 100 103 148 0 360 Steel 0 0 0 log_TrigV norot dead 601 + +# TF - Trigger tube flanges +/musr/command construct tubs TF1 103 126.5 12 0 360 Steel 0 0 136 log_TrigV norot dead 611 +/musr/command construct tubs TF2 103 126.5 12 0 360 Steel 0 0 -136 log_TrigV norot dead 612 + +# trigger foil is 52-55mm upstream of TrigV center +# Carbon Foil (default HALF-thickness 0.000005147 mm, see below => CFoil thick = 10.3 nm). +# USE THE NAME CFoil or coulombCFoil, otherwise musrMuFormation won't work! +/musr/command construct box CFoil 60 60 0.0000025 G4_GRAPHITE 0 0 -550 log_World norot dead 621 + +# Notes: NIST tables use G4_GRAPHITE with 1.7 g/cm3 and 78 eV ioniz. energy. +# An area density of 2.20 ug/cm2 implies a CF thickn. = (2.20*1.e-6/1.70)*cm = 1.294e-5 mm - Total thickness +# An area density of 1.75 ug/cm2 implies a CF thickn. = (1.75*1.e-6/1.70)*cm = 1.029e-5 mm - Total thickness +# If necessary, use Graphite as defined in musrDetectorConstruction.cc and set any density. + + +# Trigger visual attributes (optional) +/musr/command visattributes log_TrigV oxsteel +/musr/command visattributes log_TrigS oxsteel +/musr/command visattributes log_TF1 oxsteel +/musr/command visattributes log_TF2 oxsteel +#*/musr/command visattributes saveCFoil MACOR_style +#*/musr/command visattributes log_saveAfterTD darkred + +# Trigger Lens, L3, center -382 length 70mm radius 65mm. +/musr/command construct tubs TL3S 65.0 70.0 35.0 0 360 G4_Galactic 0 0 -382 log_World norot dead 706 nofield +/musr/command visattributes log_TL3S red + +# One can set visible attrib. also on a MATERIAL basis, rather than on log_VOL. +# E.g. /musr/command visattributes Steel red + + +################################################################################################################ +# L2 - 2nd Einzel Lens # L3z = -56.7 cm. (it was "L3" in 2011 and before) +# Lens Gap = 12.0 mm => G/D = 12/130 ~ 0.1 (Lens Gap = gap between Ground and Anode, D - Diameter) +################################################################################################################ + +# L3 volume +/musr/command construct tubs L3V 65 127 220 0 360 G4_Galactic 0 0 -863 log_World norot dead 400 + +# Lens 3 Steel tube (inner dia: 200 mm, outer dia: 206 mm, length: 720 mm) +/musr/command construct tubs L3ST 100 103 220 0 360 Steel 0 0 0 log_L3V norot dead 401 + +# Lens 3 Flange 1, z = L3z + 208 mm +/musr/command construct tubs L3F1 103 126.5 12 0 360 Steel 0 0 -208 log_L3V norot dead 402 + +# Lens 3 Flange 2, z = L3z - 208 mm +/musr/command construct tubs L3F2 103 126.5 12 0 360 Steel 0 0 208 log_L3V norot dead 403 + +# GPn - Ground Potential Electrodes +# n = 1-4 (further from TD) and 5-8 (closer to TD) - components of the Ground Electrodes +# Ground Electrode (inner dia: 130 mm, outer dia: 134 mm, length: 133 mm) +/musr/command construct tubs L3GP1 65 67 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 421 +# Outer electrode surface (LN2 cooling vessel) +/musr/command construct tubs L3GP2 81 83 66.5 0 360 Steel 0 0 133.5 log_L3V norot dead 422 +# First ring cap +/musr/command construct tubs L3GP3 67 81 4 0 360 Steel 0 0 196.0 log_L3V norot dead 423 +# Second ring cap +/musr/command construct tubs L3GP4 67 81 4 0 360 Steel 0 0 71.0 log_L3V norot dead 424 + +/musr/command construct tubs L3GP5 65 67 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 431 +/musr/command construct tubs L3GP6 81 83 66.5 0 360 Steel 0 0 -133.5 log_L3V norot dead 432 +/musr/command construct tubs L3GP7 67 81 4 0 360 Steel 0 0 -196.0 log_L3V norot dead 433 +/musr/command construct tubs L3GP8 67 81 4 0 360 Steel 0 0 -71.0 log_L3V norot dead 434 + +# HP - High Potential Electrode (Central Anode - usually at +8.7 kV, for a 15 keV muon beam) +/musr/command construct tubs L3HP 65 83 55 0 360 Steel 0 0 0 log_L3V norot dead 451 + +# Lens 3 visual attributes (optional) +/musr/command visattributes log_L3V invisible +/musr/command visattributes log_L3ST oxsteel +/musr/command visattributes log_L3F1 oxsteel +/musr/command visattributes log_L3F2 oxsteel +/musr/command visattributes log_L3HP darkred + + + + +################################################################################################################ +# -- SPIN ROTATOR GEOMETRY -- +################################################################################################################ + +# Spin Rotator volume +/musr/command construct tubs SRENV 50 320 201.5 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 100 +/musr/command visattributes log_SRENV invisible + +# Electromagnet with iron yoke +# U - up, D - down, L - left, R - right (with respect to muon's view - momentum direction) + +/musr/command construct box NPole 200 10 150 G4_Fe 0 85 0 log_SRENV norot dead 201 +/musr/command construct box NYoke 150 22.5 50 G4_Fe 0 117.5 0 log_SRENV norot dead 202 +/musr/command construct box NConn 225 17.5 190.0 G4_Fe 0 157.5 0 log_SRENV norot dead 203 + +/musr/command construct box SPole 200 10 150 G4_Fe 0 -85 0 log_SRENV norot dead 205 +/musr/command construct box SYoke 150 22.5 50 G4_Fe 0 -117.5 0 log_SRENV norot dead 206 +/musr/command construct box SConn 225 17.5 190.0 G4_Fe 0 -157.5 0 log_SRENV norot dead 207 + +# Front mirror plate +/musr/command construct box FShU 225 50 5 G4_Fe 0 125 -195.0 log_SRENV norot dead 301 +/musr/command construct box FShD 225 50 5 G4_Fe 0 -125 -195.0 log_SRENV norot dead 302 +/musr/command construct box FShL 75 75 5 G4_Fe 150 0 -195.0 log_SRENV norot dead 303 +/musr/command construct box FShR 75 75 5 G4_Fe -150 0 -195.0 log_SRENV norot dead 304 + +# Back mirror plate +/musr/command construct box BShU 225 50 5 G4_Fe 0 125 195.0 log_SRENV norot dead 321 +/musr/command construct box BShD 225 50 5 G4_Fe 0 -125 195.0 log_SRENV norot dead 322 +/musr/command construct box BShL 75 75 5 G4_Fe 150 0 195.0 log_SRENV norot dead 323 +/musr/command construct box BShR 75 75 5 G4_Fe -150 0 195.0 log_SRENV norot dead 324 + +# Top coils +/musr/command construct box TCoil1 170 22.5 10 G4_Cu 0 117.5 -60 log_SRENV norot dead 401 +/musr/command construct box TCoil2 170 22.5 10 G4_Cu 0 117.5 60 log_SRENV norot dead 402 +/musr/command construct box TCoil3 10 22.5 50 G4_Cu 160 117.5 0 log_SRENV norot dead 403 +/musr/command construct box TCoil4 10 22.5 50 G4_Cu -160 117.5 0 log_SRENV norot dead 404 + +# Bottom coils +/musr/command construct box BCoil1 170 22.5 10 G4_Cu 0 -117.5 -60 log_SRENV norot dead 421 +/musr/command construct box BCoil2 170 22.5 10 G4_Cu 0 -117.5 60 log_SRENV norot dead 422 +/musr/command construct box BCoil3 10 22.5 50 G4_Cu 160 -117.5 0 log_SRENV norot dead 423 +/musr/command construct box BCoil4 10 22.5 50 G4_Cu -160 -117.5 0 log_SRENV norot dead 424 + +# Capacitor +/musr/command construct box Cap_p 0.5 50 150 Brass 55 0 0 log_SRENV norot dead 501 +/musr/command construct box Cap_n 0.5 50 150 Brass -55 0 0 log_SRENV norot dead 502 +#*/musr/command construct box Uniform 49 49 150 G4_Galactic 0 0 0 log_SRENV norot dead 503 +/musr/command construct tubs RodCapUp 0 5 150 90 180 Brass 55 55 0 log_SRENV norot dead 504 +/musr/command construct tubs RodCapUn 0 5 150 -90 180 Brass -55 55 0 log_SRENV norot dead 505 +/musr/command construct tubs RodCapDp 0 5 150 90 180 Brass 55 -55 0 log_SRENV norot dead 506 +/musr/command construct tubs RodCapDn 0 5 150 -90 180 Brass -55 -55 0 log_SRENV norot dead 507 + + +# Rods +/musr/command construct tubs RodPosU 0 5 150 0 360 Brass 27.5 55 0 log_SRENV norot dead 511 +/musr/command construct tubs Rod0U 0 5 150 0 360 Brass 0 55 0 log_SRENV norot dead 512 +/musr/command construct tubs RodNegU 0 5 150 0 360 Brass -27.5 55 0 log_SRENV norot dead 513 +/musr/command construct tubs RodPosD 0 5 150 0 360 Brass 27.5 -55 0 log_SRENV norot dead 514 +/musr/command construct tubs Rod0D 0 5 150 0 360 Brass 0 -55 0 log_SRENV norot dead 515 +/musr/command construct tubs RodNegD 0 5 150 0 360 Brass -27.5 -55 0 log_SRENV norot dead 516 + + +# Vacuum vessel +/musr/command construct box TVac1 72.5 2.5 191.5 Steel 0 72.5 0 log_SRENV norot dead 601 +/musr/command construct box TVac2 2.5 70.0 191.5 Steel 72.5 0 0 log_SRENV norot dead 602 +/musr/command construct box TVac3 72.5 2.5 191.5 Steel 0 -72.5 0 log_SRENV norot dead 603 +/musr/command construct box TVac4 2.5 70.0 191.5 Steel -72.5 0 0 log_SRENV norot dead 604 + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For Spin Rotator +/musr/command construct tubs SREField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.5 log_World norot dead 630 nofield +/musr/command construct tubs SRBField 0 0.01 0.005 0 360 G4_Galactic 0 0 -1284.51 log_World norot dead 631 nofield + +/musr/command visattributes G4_Cu red +/musr/command visattributes G4_Fe blue +/musr/command visattributes Brass yellow + +/musr/command visattributes Steel white + + +################################################################################################################ +# Lens 1 - 1st Einzel Lens +################################################################################################################ +# L1ENV - Lens 1 envelope - for easy positioning of lens parts (outer dia: 100 mm, length: 300 mm) +#/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 0 0 -1929.5 log_World norot dead 600 +/musr/command construct tubs L1ENV 40 100 150 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend 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 +# n = 2 - Ground Electrode 2 (closer to SR). +/musr/command construct tubs L1GP2 40 44 50 0 360 Steel 0 0 100 log_L1ENV norot dead 653 +# HP - High Potential Electrode (Central Anode - usually at +8.5 kV, for a 15 keV muon beam) +/musr/command construct tubs L1HP 40 44 40 0 360 Steel 0 0 0 log_L1ENV norot dead 652 + +# Lens 1 visual attributes (optional) +/musr/command visattributes log_L1HP darkred + + +################################################################################################################ +# Electrostatic field at accelerator after moderator +################################################################################################################ + +##### Wires used to define the electric field in the moderator : 23 wires per grid, 0.1mm diameter, 2mm spacing. + +# First Grid + +/musr/command construct tubs Wire1_1 0 0.05 24 0 360 Steel 470.75 0.0 -1700 log_World rotMod dead 220 +/musr/command construct tubs Wire1_2 0 0.05 24 0 360 Steel 470.75 0.0 -1698 log_World rotMod dead 221 +/musr/command construct tubs Wire1_3 0 0.05 24 0 360 Steel 470.75 0.0 -1696 log_World rotMod dead 222 +/musr/command construct tubs Wire1_4 0 0.05 24 0 360 Steel 470.75 0.0 -1694 log_World rotMod dead 223 +/musr/command construct tubs Wire1_5 0 0.05 24 0 360 Steel 470.75 0.0 -1694 log_World rotMod dead 224 +/musr/command construct tubs Wire1_6 0 0.05 24 0 360 Steel 470.75 0.0 -1692 log_World rotMod dead 225 +/musr/command construct tubs Wire1_7 0 0.05 24 0 360 Steel 470.75 0.0 -1690 log_World rotMod dead 226 +/musr/command construct tubs Wire1_8 0 0.05 24 0 360 Steel 470.75 0.0 -1688 log_World rotMod dead 227 +/musr/command construct tubs Wire1_9 0 0.05 24 0 360 Steel 470.75 0.0 -1686 log_World rotMod dead 228 +/musr/command construct tubs Wire1_10 0 0.05 24 0 360 Steel 470.75 0.0 -1684 log_World rotMod dead 229 +/musr/command construct tubs Wire1_11 0 0.05 24 0 360 Steel 470.75 0.0 -1682 log_World rotMod dead 230 +/musr/command construct tubs Wire1_12 0 0.05 24 0 360 Steel 470.75 0.0 -1680 log_World rotMod dead 231 +/musr/command construct tubs Wire1_13 0 0.05 24 0 360 Steel 470.75 0.0 -1678 log_World rotMod dead 232 +/musr/command construct tubs Wire1_14 0 0.05 24 0 360 Steel 470.75 0.0 -1676 log_World rotMod dead 233 +/musr/command construct tubs Wire1_15 0 0.05 24 0 360 Steel 470.75 0.0 -1674 log_World rotMod dead 234 +/musr/command construct tubs Wire1_16 0 0.05 24 0 360 Steel 470.75 0.0 -1672 log_World rotMod dead 235 +/musr/command construct tubs Wire1_17 0 0.05 24 0 360 Steel 470.75 0.0 -1670 log_World rotMod dead 236 +/musr/command construct tubs Wire1_18 0 0.05 24 0 360 Steel 470.75 0.0 -1668 log_World rotMod dead 237 +/musr/command construct tubs Wire1_19 0 0.05 24 0 360 Steel 470.75 0.0 -1664 log_World rotMod dead 238 +/musr/command construct tubs Wire1_20 0 0.05 24 0 360 Steel 470.75 0.0 -1662 log_World rotMod dead 239 +/musr/command construct tubs Wire1_21 0 0.05 24 0 360 Steel 470.75 0.0 -1660 log_World rotMod dead 240 +/musr/command construct tubs Wire1_22 0 0.05 24 0 360 Steel 470.75 0.0 -1658 log_World rotMod dead 241 +/musr/command construct tubs Wire1_23 0 0.05 24 0 360 Steel 470.75 0.0 -1656 log_World rotMod dead 242 + +#Second Grid + +/musr/command construct tubs Wire2_1 0 0.05 24 0 360 Steel 480.75 0.0 -1700 log_World rotMod dead 250 +/musr/command construct tubs Wire2_2 0 0.05 24 0 360 Steel 480.75 0.0 -1698 log_World rotMod dead 251 +/musr/command construct tubs Wire2_3 0 0.05 24 0 360 Steel 480.75 0.0 -1696 log_World rotMod dead 252 +/musr/command construct tubs Wire2_4 0 0.05 24 0 360 Steel 480.75 0.0 -1694 log_World rotMod dead 253 +/musr/command construct tubs Wire2_5 0 0.05 24 0 360 Steel 480.75 0.0 -1694 log_World rotMod dead 254 +/musr/command construct tubs Wire2_6 0 0.05 24 0 360 Steel 480.75 0.0 -1692 log_World rotMod dead 255 +/musr/command construct tubs Wire2_7 0 0.05 24 0 360 Steel 480.75 0.0 -1690 log_World rotMod dead 256 +/musr/command construct tubs Wire2_8 0 0.05 24 0 360 Steel 480.75 0.0 -1688 log_World rotMod dead 257 +/musr/command construct tubs Wire2_9 0 0.05 24 0 360 Steel 480.75 0.0 -1686 log_World rotMod dead 258 +/musr/command construct tubs Wire2_10 0 0.05 24 0 360 Steel 480.75 0.0 -1684 log_World rotMod dead 259 +/musr/command construct tubs Wire2_11 0 0.05 24 0 360 Steel 480.75 0.0 -1682 log_World rotMod dead 260 +/musr/command construct tubs Wire2_12 0 0.05 24 0 360 Steel 480.75 0.0 -1680 log_World rotMod dead 261 +/musr/command construct tubs Wire2_13 0 0.05 24 0 360 Steel 480.75 0.0 -1678 log_World rotMod dead 262 +/musr/command construct tubs Wire2_14 0 0.05 24 0 360 Steel 480.75 0.0 -1676 log_World rotMod dead 263 +/musr/command construct tubs Wire2_15 0 0.05 24 0 360 Steel 480.75 0.0 -1674 log_World rotMod dead 264 +/musr/command construct tubs Wire2_16 0 0.05 24 0 360 Steel 480.75 0.0 -1672 log_World rotMod dead 265 +/musr/command construct tubs Wire2_17 0 0.05 24 0 360 Steel 480.75 0.0 -1670 log_World rotMod dead 266 +/musr/command construct tubs Wire2_18 0 0.05 24 0 360 Steel 480.75 0.0 -1668 log_World rotMod dead 267 +/musr/command construct tubs Wire2_19 0 0.05 24 0 360 Steel 480.75 0.0 -1664 log_World rotMod dead 268 +/musr/command construct tubs Wire2_20 0 0.05 24 0 360 Steel 480.75 0.0 -1662 log_World rotMod dead 269 +/musr/command construct tubs Wire2_21 0 0.05 24 0 360 Steel 480.75 0.0 -1660 log_World rotMod dead 270 +/musr/command construct tubs Wire2_22 0 0.05 24 0 360 Steel 480.75 0.0 -1658 log_World rotMod dead 271 +/musr/command construct tubs Wire2_23 0 0.05 24 0 360 Steel 480.75 0.0 -1656 log_World rotMod dead 272 + +###Definition of the electric field : 3 field maps are superimposed, each one is defined for 1kV potential +#at the different electrodes : Moderator, Guard, Grid2. One has to multiply these field maps by the potential applied. + + +/musr/command construct box Grid2 0.001 0.001 0.001 G4_Galactic 470.80 0.0 -1678.0 log_World rotBend dead 212 +/musr/command globalfield Grid2_field 470.80 0 -1678.0 fromfile 3DE field_Grid_1kV.map log_Grid2 10.4 + +/musr/command construct box Guard 0.001 0.001 0.001 G4_Galactic 470.79 0.0 -1678.0 log_World rotBend dead 213 +/musr/command globalfield Guard_field 470.79 0 -1678.0 fromfile 3DE field_Guard_1kV.map log_Guard 12 + +/musr/command construct box Mod 0.001 0.001 0.001 G4_Galactic 470.81 0.0 -1678.0 log_World rotBend dead 214 +/musr/command globalfield Mod_field 470.81 0 -1678.0 fromfile 3DE field_Mod_1kV.map log_Mod 15 + + +################################################################################################################ +# Electrostatic mirror at bend +################################################################################################################ +# Mirror map computed with Opera, has to be set to the muons voltage + +/musr/command construct box MirrE 1 1 1 G4_Galactic 14.5 0.0 -1663.5 log_World rotMirr dead 200 +/musr/command globalfield Mirr_field 14.5 0.0 -1663.5 fromfile 3DE Mirror.map log_MirrE 15 + + +################################################################################### +################### E L E C T R O M G N E T I C F I E L D S ################## +################################################################################### + +# Use ABSOLUTE coordinates to specify the field position (i.e. with respect to GLOBAL WORLD)! +# Default field units: Magnetic - T, Electric - kV/mm (or kV for E-field maps). +# NOTE: Applying a field to an invisible log_vol makes is visible! + +# Dummy, thin cylindres used for applying the field maps. +# NOTE: EM field cannot be applied to non simply connected bodies, as e.g. rings, cones, tori, etc.! +# For L1 +/musr/command construct tubs L1EField 0 0.01 0.005 0 360 G4_Galactic 251.5 0.0 -1678.0 log_World rotBend dead 706 nofield +# For L2 (L3 before 2012) +/musr/command construct tubs L3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -863.0 log_World norot dead 708 nofield + +# LENS 1. Best L1 settings: 6.0 kV for 10 keV muons +/musr/command globalfield Lens1EField 251.5 0.0 -1678.0 fromfile 2DE L1_Erz.map log_L1EField 9.0 + +# LENS 2. Best L3 settings: 7.0 kV for 10 keV muons +/musr/command globalfield Lens3EField 0. 0. -863.0 fromfile 2DE L3_Erz.map log_L3EField 9.5 + +# Spin rotator +# Electric field should be 370mm plates +# Magnetic field should be 260mm poles as measured srlem_ext.map +/musr/command globalfield Ele_field 0. 0. -1284.5 fromfile 3DE E_Sep_P37.5cm.map log_SREField 2.57 +/musr/command globalfield Mag_field 0. 0. -1284.51 fromfile 3DB srlem_ext.map log_SRBField -0.006923 + +# Electrical Field areas in the Trigger Detector +# En = Electrical Field n: TnFieldMgr (n = 1-3) +# Original TriggE2: [4.*sqrt(2), 4.5, 0.7/sqrt(2)] cm -> changed due to overlaps with E1 and E3 +# 57.15mm upstream center +/musr/command construct box TriggE0 45 45 5 G4_Galactic 0 0 -555.1 log_World norot dead 630 nofield +# 48mm upstream center +/musr/command construct box TriggE1 45 45 4 G4_Galactic 0 0 -543. log_World norot dead 631 nofield +# 2.25mm downstream center +/musr/command construct box TriggE2 45 45 4.9479 G4_Galactic 0 0 -492.75 log_World rotTrig dead 632 nofield +# 54mm downstream center +/musr/command construct box TriggE3 45 45 4 G4_Galactic 0 0 -441.0 log_World norot dead 633 + +### Electric field at TRIGGER Detector TD: Three different uniform fields, 2012 settings +/musr/command globalfield Trigg0_field 45 45 5 uniform 0. 0. -555.1 log_TriggE0 0 0 0 0 0 0.338 +/musr/command globalfield Trigg1_field 45 45 4 uniform 0. 0. -543. log_TriggE1 0 0 0 0 0 -0.02375 +/musr/command globalfield Trigg2_field 45 45 4.9497 uniform 0. 0. -492.75 log_TriggE2 0 0 0 0 0 0.041416 +/musr/command globalfield Trigg3_field 45 45 4 uniform 0. 0. -441.0 log_TriggE3 0 0 0 0 0 -0.45 + +# Trigger Lens, L3, (available space from -437 to -347, we use 70mm of that) +/musr/command construct tubs TL3EField 0 0.01 0.005 0 360 G4_Galactic 0 0 -382.0 log_World norot dead 706 nofield +/musr/command globalfield ColRingEField 0. 0. -382.0 fromfile 2DE CR7cm_Grid.map log_TL3EField 11.5 + +### Electric field at RING ANODE - from 3DE field map +# To create an arbitrary configuration, switch on all fields and set different potentials. +/musr/command globalfield RngAnT_field 0. 0. -143.00 fromfile 3DE EM_3D_ext_gridf.map log_RA_T 0.0 +/musr/command globalfield RngAnR_field 0. 0. -143.02 fromfile 3DE EM_3D_ext_gridf.map log_RA_R 0.0 +/musr/command globalfield RngAnB_field 0. 0. -143.04 fromfile 3DE EM_3D_ext_gridf.map log_RA_B 0.0 +/musr/command globalfield RngAnL_field 0. 0. -143.06 fromfile 3DE EM_3D_ext_gridf.map log_RA_L 0.0 + +### 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_400A_ext.map log_SBField 0.00 + +### Electric field at the sample +/musr/command construct tubs SEField 0 0.01 0.005 0 360 G4_Galactic 0.0 0.0 15.9 log_World norot dead 710 nofield +/musr/command globalfield SampleEField 0. 0. 15.9 fromfile 2DE SamplePlate_2DE.map log_SEField 0 + +# Set parameters for particle tracking in an EM field +/musr/command globalfield setparameter SetLargestAcceptableStep 1 +/musr/command globalfield setparameter SetMinimumEpsilonStep 5e-5 +/musr/command globalfield setparameter SetMaximumEpsilonStep 0.001 +/musr/command globalfield setparameter SetDeltaOneStep 0.01 +/musr/command globalfield setparameter SetDeltaIntersection 0.01 +/musr/command globalfield printparameters + +# TESTING EM FIELD +/musr/command globalfield printFieldValueAtPoint 0. 0. 0. +#/musr/command globalfield printFieldValueAtPoint 0. 35. -670. + + +################################################################################### +######################### P H Y S I C S P R O C E S S E S ################## +################################################################################### +# Geant 4.9.3 +/musr/command process addDiscreteProcess gamma G4PhotoElectricEffect +/musr/command process addDiscreteProcess gamma G4ComptonScattering +/musr/command process addDiscreteProcess gamma G4GammaConversion +/musr/command process addDiscreteProcess gamma G4RayleighScattering +/musr/command process addProcess e- G4eMultipleScattering -1 1 1 +/musr/command process addProcess e- G4eIonisation -1 2 2 +/musr/command process addProcess e- G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eMultipleScattering -1 1 1 +/musr/command process addProcess e+ G4eIonisation -1 2 2 +/musr/command process addProcess e+ G4eBremsstrahlung -1 3 3 +/musr/command process addProcess e+ G4eplusAnnihilation 0 -1 4 +/musr/command process addProcess mu- G4MuMultipleScattering -1 1 1 +/musr/command process addProcess mu- G4MuIonisation -1 2 2 +/musr/command process addProcess mu- G4MuBremsstrahlung -1 3 3 +/musr/command process addProcess mu- G4MuPairProduction -1 4 4 +/musr/command process addProcess mu+ G4MuMultipleScattering -1 1 1 +#/musr/command process addModel mu+ G4MuMultipleScattering G4UrbanMscModel92 0 +#/musr/command process addModel mu+ G4MuMultipleScattering G4WentzelVIModel 0 +/musr/command process addProcess mu+ G4MuIonisation -1 2 2 +/musr/command process addProcess mu+ musrMuEnergyLossLandau -1 -1 1 +# parameters for Landau energy loss distribution, LandauSigma corresponds to the width of the distibution +/musr/command SetLandauMPV 0.01 +/musr/command SetLandauSigma 0.3 +#/musr/command process addProcess mu+ G4MuBremsstrahlung -1 3 3 +#/musr/command process addProcess mu+ G4MuPairProduction -1 4 4 +#/musr/command process addDiscreteProcess mu+ G4CoulombScattering +#/musr/command process addProcess mu+ G4StepLimiter -1 -1 5 + +################################################################################### +################## S O M E O T H E R P A R A M E T E R S ################## +################################################################################### +# Set the overall range cut +#/run/setCut 1 mm +# Set the range cut on a particular volumes (in mm) +#/musr/command SetUserLimits log_target 0.01 +#/musr/command SetUserLimits log_targetscint 0.01 +#/musr/command SetUserLimits log_M0 0.01 +# Store all events into the ROOT tree or just the interesting ones ? (true is default) +/musr/command storeOnlyEventsWithHits false +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +#/musr/command signalSeparationTime 0.1 +# +/musr/run/randomOption 1 + +################################################################################################################ +# -- Setting simulation PARAMETERS -- +################################################################################################################ + +# Set the overall range cut (default 0.1 mm) +#*/run/setCut 1 mm + +# Set the range cut on particular volumes (in mm) +#/musr/command SetUserLimits log_CFoil 1e-8 -1 -1 -1 -1 +#*/musr/command SetUserLimits log_target 0.01 +#*/musr/command SetUserLimits log_targetscint 0.01 +#*/musr/command SetUserLimits log_cryostatscint 0.01 + +# Set particle energy cuts on particular volumes (in eV) +#/musr/command SetUserLimits log_World ustepMax(mm) utrakMax(mm) utimeMax(ns) uekinMin(MeV) urangMin(mm) +/musr/command SetUserLimits log_World -1 -1 -1 1e-7 -1 + +# Store ALL the events in a ROOT tree or just the interesting ones? (default is true) +#*/musr/command storeOnlyEventsWithHits false + +# Set the minimum time separation between two subsequent signals in the same detector (in ns) +/musr/command signalSeparationTime 0.1 + +# Override runID number +#*/musr/run/runID 21 + +# Set the frequency of event printing +/musr/run/howOftenToPrintEvent 100 + +# RANDOM option choices: (specify the random number generator initialisation) +# 0 ... no initialisation (default) +# 1 ... use actual computer time to initialise now +# 2 ... use event number to initialise at the beginning of each event +# 3 ... read in the random no. initial values for each event from a file +/musr/run/randomOption 2 + +# 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 +#/control/execute visdawn.mac + + +################################################################################### +######################### R O O T O U T P U T ############################## +################################################################################### +#/musr/command rootOutput runID off +#/musr/command rootOutput eventID off +#/musr/command rootOutput weight off +#/musr/command rootOutput BFieldAtDecay off +#/musr/command rootOutput muIniPosX off +#/musr/command rootOutput muIniPosY off +#/musr/command rootOutput muIniPosZ off +#/musr/command rootOutput muIniMomX off +#/musr/command rootOutput muIniMomY off +#/musr/command rootOutput muIniMomZ off +#/musr/command rootOutput muIniPolX off +#/musr/command rootOutput muIniPolY off +#/musr/command rootOutput muIniPolZ off +#/musr/command rootOutput muDecayDetID off +#/musr/command rootOutput muDecayPosX off +#/musr/command rootOutput muDecayPosY off +#/musr/command rootOutput muDecayPosZ off +#/musr/command rootOutput muDecayTime off +#/musr/command rootOutput muDecayPolX off +#/musr/command rootOutput muDecayPolY off +#/musr/command rootOutput muDecayPolZ off +#/musr/command rootOutput muTargetTime off +#/musr/command rootOutput muTargetPolX off +#/musr/command rootOutput muTargetPolY off +#/musr/command rootOutput muTargetPolZ off +#/musr/command rootOutput muM0Time off +#/musr/command rootOutput muM0PolX off +#/musr/command rootOutput muM0PolY off +#/musr/command rootOutput muM0PolZ off +/musr/command rootOutput muM1Time off +/musr/command rootOutput muM1PolX off +/musr/command rootOutput muM1PolY off +/musr/command rootOutput muM1PolZ off +/musr/command rootOutput muM2Time off +/musr/command rootOutput muM2PolX off +/musr/command rootOutput muM2PolY off +/musr/command rootOutput muM2PolZ off +#/musr/command rootOutput posIniMomX off +#/musr/command rootOutput posIniMomY off +#/musr/command rootOutput posIniMomZ off +#/musr/command rootOutput fieldNomVal off +#/musr/command rootOutput det_ID off +#/musr/command rootOutput det_edep off +#/musr/command rootOutput det_edep_el off +#/musr/command rootOutput det_edep_pos off +#/musr/command rootOutput det_edep_gam off +#/musr/command rootOutput det_edep_mup off +#/musr/command rootOutput det_nsteps off +#/musr/command rootOutput det_length off +#/musr/command rootOutput det_start off +#/musr/command rootOutput det_end off +#/musr/command rootOutput det_x off +#/musr/command rootOutput det_y off +#/musr/command rootOutput det_z off +#/musr/command rootOutput det_kine off +/musr/command rootOutput det_VrtxKine off +/musr/command rootOutput det_VrtxX off +/musr/command rootOutput det_VrtxY off +/musr/command rootOutput det_VrtxZ off +/musr/command rootOutput det_VrtxVolID off +/musr/command rootOutput det_VrtxProcID off +/musr/command rootOutput det_VrtxTrackID off +/musr/command rootOutput det_VrtxParticleID off +/musr/command rootOutput det_VvvKine off +/musr/command rootOutput det_VvvX off +/musr/command rootOutput det_VvvY off +/musr/command rootOutput det_VvvZ off +/musr/command rootOutput det_VvvVolID off +/musr/command rootOutput det_VvvProcID off +/musr/command rootOutput det_VvvTrackID off +/musr/command rootOutput det_VvvParticleID off +### Root variables that are not written out by default, but can be switched on: +#/musr/command rootOutput fieldIntegralBx on +#/musr/command rootOutput fieldIntegralBy on +#/musr/command rootOutput fieldIntegralBz on +#/musr/command rootOutput fieldIntegralBz1 on +#/musr/command rootOutput fieldIntegralBz2 on +#/musr/command rootOutput fieldIntegralBz3 on + +/musr/command storeOnlyEventsWithHits false + + + +################################################################################################################ +# -- Setting PARTICLE GUN parameters -- +################################################################################################################ + +# Default momentum direction: 001, i.e. 0z. +# Default muon soin direction: 100, i.e. 0x. +# Default particle type: mu+ (can be changed to Mu) + +# Set particle type +#*/gun/particle Mu +#/gun/particle mu+ +/gun/particle proton + +# Set beam vertex +# CFoil at -1144 mm, acceleration starts at -1154.15 mm +#/gun/vertex 0. 0. -2119.5 mm +/gun/vertex 499 0. -1678.0 mm + +# A point-like uniform beam +#/gun/vertexsigma -0.1 -0.1 0 mm + +# Set beam transverse spread (default GAUSSIAN spread) +# If FWHM = 10 mm ==> sigma = 10/2.354 = 4.2481 mm (last 0 is a dummy value) +# Negative sigma values => random FLAT RECTANGULAR distribution (area 2x.2y) +# Use vertexboundary with (vb < sigma_xy) to obtain a CIRCULAR beam spot +# /gun/vertexsigma 0 0 0 mm ==> Very SLOW with mag. field ON and centered beam +#/gun/vertexsigma 6.83 6.83 0 mm +/gun/vertexsigma -15 -15 0 mm +#/gun/vertexboundary 20 -1e6 1e6 mm + +# /gun/vertexboundary: rMaxAllowed, zMinAllowed, zMaxAllowed # Beam AND gating +#*/gun/vertexboundary 7 -1314.4 -1305 mm +# Without restrictions in z, but only on r: +#*/gun/vertexboundary 3 -1e6 1e6 mm + +# Set beam momentum (USE only as an ALTERNATIVE to setting energy!) +# /gun/momentum 0 0 29.79 MeV +#*/gun/momentum 0 0 1.8 MeV +# Energy loss at p = 1.2 MeV/c (E = 6.8 keV) => 1.23 +/- 0.2 keV +# Energy loss at p = 1.8 MeV/c (E = 15.3 keV) => 1.25 +/- 0.3 keV +# 1.2 MeV/c -> 6.8 keV, 1.8 MeV/c -> 15.3 keV +# muon rest mass = 105.658 MeV/c2 + +# Set muon energy before hitting TD; a constant field in front of the C-foil accelerates the muons +# to add 3.38 keV +/gun/kenergy 5.0 eV + +# Set beam momentum direction +/gun/direction -1.0 0.0 0.0 + +# Set muon spin direction: +10deg or 0 +/gun/muonPolarizVector 0.9848 0 0.17365 +#/gun/muonPolarizVector 1 0 0 + + +# Other useful test parameters: +#------------------Oct.20 2015------------------------------------ +# kenergy= 15 eV Pmu= 0.0563MeV/c ==> sigma = /2.354 = MeV/c +#/gun/momentumsmearing 0.0 MeV +/gun/momentumsmearing 0.0097 MeV +#---/gun/momentumboundary: pMinAllowed, pMaxAllowed, dummy +#/gun/momentumboundary 0.20 0.82 0 MeV +#---/gun/tilt: xangle, yangle, dummy +#*/gun/tilt 0 0.0 0 deg +#---/gun/tiltsigma: xangleSigma, yangleSigma, dummy (1 degree at 1 m => 17 mm) +#*/gun/tiltsigma 0.2 0.2 0 deg +#*/gun/pitch 0.0 deg +#---/gun/decaytimelimits: decayMin, decayMax, decayTime +#*/gun/decaytimelimits 10400 10420 2197.03 ns +#/gun/tiltsigma 1.4 1.4 0 deg +/gun/tiltsigma 0 0 -1.0 deg + +# Selectively inactivate or activate sensitive detectors +#*/hits/inactivate /musr/ScintSD + +# Only for code debugging! +#/tracking/verbose 1 + +# BEAM ON +#/run/beamOn 1000000 +#/run/beamOn 50 +/run/beamOn 10000 +