-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsky.mac
43 lines (34 loc) · 1.27 KB
/
sky.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
###################################################
# Batch running of event simulating
# isotropic gammas from the sky.
###################################################
# If you need to see details about the physics
# list, you can use the following. It's also part of
# the output of "./gramsg4 -v".
#/process/em/verbose 1
#/process/had/verbose 1
# In GramsG4, every .mac file must contain this
# line after any physics/geometry/thread setup,
# but before any generation/visualization commands.
/run/initialize
# The particles: gammas using the energy spectrum in
# energyflux.txt. See scripts/Hist2Text.C for how to convert a ROOT
# histogram into Geant4's simple histogram text format.
/gps/particle gamma
/gps/ene/type Arb
/gps/hist/type arb
/gps/hist/file scripts/energyflux.txt
/gps/hist/inter Lin
# Put the detector in the middle of a sphere, to simulate isotropic
# radiation from the sky. Recall that z=0 is located at the induction
# plane, so we have to adjust things a bit to focus the particles
# from the sphere on the center (or centre!) of the detector.
/gps/pos/type Surface
/gps/pos/shape Sphere
/gps/pos/radius 3 m
/gps/pos/centre 0 0 -0.1 m
/gps/ang/type focused
/gps/ang/focuspoint 0 0 -0.1 m
# This means "run Geant4 and generate 1000 events"
/run/beamOn 1000
exit