# macro to include from other SimG4 macros to setup the fieldmaps in this # directory. /control/getEnv ICEDUST_FIELDMAPS # Load the dipoles /control/execute {ICEDUST_FIELDMAPS}/load_dipole.mac ## Load G4Beamline field model #/control/getEnv SIMG4ROOT #/control/execute {SIMG4ROOT}/geometry_macros/Phase-II-CoilCurrents.macro # Load the new Opera field model /comet/addFieldmap {ICEDUST_FIELDMAPS}/ProdTgtCapture.map /comet/setLastFieldmapTranslation 3 0 4.65 m /comet/setLastFieldmapScaling -1.0 /comet/setLastFieldmapRotation Z 90 /comet/addFieldmap {ICEDUST_FIELDMAPS}/Transport1.map /comet/setLastFieldmapTranslation 3 0 4.65 m /comet/setLastFieldmapScaling -1.0 /comet/setLastFieldmapRotation Z 90 /comet/addFieldmap {ICEDUST_FIELDMAPS}/Transport2.map /comet/setLastFieldmapTranslation 3 0 4.65 m /comet/setLastFieldmapScaling -1.0 /comet/setLastFieldmapRotation Z 90 /comet/addFieldmap {ICEDUST_FIELDMAPS}/Transport3.map /comet/setLastFieldmapTranslation 3 0 4.65 m /comet/setLastFieldmapScaling -1.0 /comet/setLastFieldmapRotation Z 90 /comet/addFieldmap {ICEDUST_FIELDMAPS}/Transport4.map /comet/setLastFieldmapTranslation 3 0 4.65 m /comet/setLastFieldmapScaling -1.0 /comet/setLastFieldmapRotation Z 90 /comet/addFieldmap {ICEDUST_FIELDMAPS}/StopTgt.map /comet/setLastFieldmapTranslation 3 0 4.65 m /comet/setLastFieldmapScaling -1.0 /comet/setLastFieldmapRotation Z 90 /comet/addFieldmap {ICEDUST_FIELDMAPS}/ElectronSpect.map /comet/setLastFieldmapTranslation 3 0 4.65 m /comet/setLastFieldmapScaling -1.0 /comet/setLastFieldmapRotation Z 90 /comet/addFieldmap {ICEDUST_FIELDMAPS}/Detector.map /comet/setLastFieldmapTranslation 3 0 4.65 m /comet/setLastFieldmapScaling -1.0 /comet/setLastFieldmapRotation Z 90