source: trunk/examples/extended/optical/LXe/WALKTHROUGH @ 1358

Last change on this file since 1358 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 1.9 KB
Line 
1#LXe Example Walkthrough
2#-----------------------
3#
4#Follow these steps to see what this example can do.
5#
6#You can also execute steps 3-7 of this walkthrough as a macro file
7#/control/execute WALKTHROUGH
8
9#1) Compile
10#>cd LXe/
11#>gmake
12
13#2) Launch the program
14#>$G4WORKDIR/bin/$G4SYSTEM/LXe
15
16#3) Run a basic event
17
18#3a) Run initialize - do this only once
19/run/initialize
20
21#3b)Turn on verbose output at end of event
22#   We'll leave it on for the rest of the events in the walkthrough too
23/LXe/eventVerbose 1
24
25#3c)Run
26/run/beamOn
27
28#You will see a blue trajectory representing the gamma and some green
29#trajectories representing the optical photons that hit the sphere and
30#went into a pmt. Any pmt that had a trajectory drawn and is above it's
31#threshold(1) will be redrawn red.
32
33#4) Run a cerenkov cone event
34/control/execute cerenkov.mac
35/run/beamOn
36
37#You will see a circle of PMTs that have lit up from the optical photons
38#produced by the cerenkov process. The cone does not fill in because the
39#primary particle was killed after one step in the scintillator.
40
41#5) Run a wls event
42/control/execute wls.mac
43/run/beamOn
44
45#You will see a number of green and red trajectories drawn. The green ones
46#are the optical photons produced by scintillation. The red ones are created
47#by the wavelength shifting(WLS) fibers which absorbed the scintillation
48#photons and re-emited them at a different wavelength. Most of the WLS photons
49#then travel down the fibers to the edge of the slab.
50
51#6) Modify the geometry yourself
52
53#6a)Turning the sphere off
54/LXe/detector/defaults
55/LXe/detector/volumes/sphere 0
56/LXe/detector/update
57
58#6b)Changing the dimensions
59/LXe/detector/dimensions 15 15 50 cm
60/LXe/detector/update
61
62#6c)Changing the PMTs
63/LXe/detector/pmtRadius 0.5 cm
64/LXe/detector/nx 15
65/LXe/detector/ny 15
66/LXe/detector/nz 50
67/LXe/detector/update
68
69#7) Test your new geometry
70/gun/particle gamma
71/run/beamOn
72
73#Done
74#
75#For more specific information
76/random/setDirectoryName random2
Note: See TracBrowser for help on using the repository browser.