Loading...
Searching...
No Matches
run3.mac
Go to the documentation of this file.
1#
2# Macro file for "exampleRE02.cc"
3#
4# can be run in batch, without graphic
5# or interactively: Idle> /control/execute run2.mac
6#
7/control/verbose 2
8/run/verbose 2
9#/event/verbose 0
10#/tracking/verbose 1
11#
12## Open a viewer
13#/vis/open
14## This opens the default viewer - see examples/basic/B1/vis.mac for a
15## more comprehensive overview of options. Also the documentation.
16#
17# viewer settings
18#/vis/viewer/set/viewpointThetaPhi 90 180 deg
19#/vis/viewer/zoom 1.4
20#
21# Store trajectory
22#/tracking/storeTrajectory 1
23#/vis/scene/add/trajectories
24#/vis/scene/endOfEventAction accumulate
25#
26#
27# Beam Parameters
28# for electron
29# UIcommands from G4ParticleGun.
30#
31/gun/particle e-
32#
33# Kinetic Energy.
34/gun/energy 30. MeV
35#
36/gun/position 0 0 -100 cm
37/gun/direction 0 0 1
38#
39/run/beamOn 10000
40#

Applications | User Support | Publications | Collaboration