# run1.mac # Run in batch: ./exampleB1 run1.mac # Or interactively: /control/execute run1.mac ################################################ # Welcome to Solid State Detector Simulation # # # # created by LNGS-INFN # ################################################ ########## Print commands ########## #/control/verbose 2 #/run/verbose 2 #/event/verbose 0 #/tracking/verbose 1 #/process/had/verbose 0 #/process/em/verbose 0 ########Set Material ########### /MG/geometry/mgemi/samplematerial NitrogenGas ########## Set the x,y,z coordinate of the center of the sample ########## /MG/geometry/mgemi/samplexpos 0. cm /MG/geometry/mgemi/sampleypos 0. cm /MG/geometry/mgemi/samplezpos 0. cm ########## Set z distance from detector window to crystal surface ########## /MG/geometry/mgemi/detzpos 0.45 cm ########## Initilize ########## /run/initialize ########## Particles ########## /gps/particle gamma /gps/energy 1808.65 keV /gps/pos/type Volume /gps/pos/shape Sphere /gps/pos/radius 1 mm /gps/pos/inner_radius .0 mm /gps/pos/halfz 0.5 mm /gps/ang/type iso /gps/source/intensity 1 /gps/pos/confine PhysSample #/gps/direction 1 1 1 #/gps/pos/centre .0 .0 0. cm #/gps/ene/sigma 0 GeV #/gps/pos/sigma_r 1 mm #/gps/pos/sigma_x 0.3 mm #/gps/pos/sigma_y 0.3 mm ########## Particles soruce list ########## #/gps/source/list ########## Number of particles ########## /run/printProgress 100 /run/beamOn 100