[807] | 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)Turn on verbose output at end of event |
---|
| 19 | # We'll leave it on for the rest of the events in the walkthrough too |
---|
| 20 | /LXe/eventVerbose 1 |
---|
| 21 | |
---|
| 22 | #3b)Run |
---|
| 23 | /run/beamOn |
---|
| 24 | |
---|
| 25 | #You will see a blue trajectory representing the gamma and some green |
---|
| 26 | #trajectories representing the optical photons that hit the sphere and |
---|
| 27 | #went into a pmt. Any pmt that had a trajectory drawn and is above it's |
---|
| 28 | #threshold(1) will be redrawn red. |
---|
| 29 | |
---|
| 30 | #4) Run a cerenkov cone event |
---|
| 31 | /control/execute cerenkov.mac |
---|
| 32 | /run/beamOn |
---|
| 33 | |
---|
| 34 | #You will see a circle of PMTs that have lit up from the optical photons |
---|
| 35 | #produced by the cerenkov process. The cone does not fill in because the |
---|
| 36 | #primary particle was killed after one step in the scintillator. |
---|
| 37 | |
---|
| 38 | #5) Run a wls event |
---|
| 39 | /control/execute wls.mac |
---|
| 40 | /run/beamOn |
---|
| 41 | |
---|
| 42 | #You will see a number of green and red trajectories drawn. The green ones |
---|
| 43 | #are the optical photons produced by scintillation. The red ones are created |
---|
| 44 | #by the wavelength shifting(WLS) fibers which absorbed the scintillation |
---|
| 45 | #photons and re-emited them at a different wavelength. Most of the WLS photons |
---|
| 46 | #then travel down the fibers to the edge of the slab. |
---|
| 47 | |
---|
| 48 | #6) Modify the geometry yourself |
---|
| 49 | |
---|
| 50 | #6a)Turning the sphere off |
---|
| 51 | /LXe/detector/defaults |
---|
| 52 | /LXe/detector/volumes/sphere 0 |
---|
| 53 | /LXe/detector/update |
---|
| 54 | |
---|
| 55 | #6b)Changing the dimensions |
---|
| 56 | /LXe/detector/dimensions 15 15 50 cm |
---|
| 57 | /LXe/detector/update |
---|
| 58 | |
---|
| 59 | #6c)Changing the PMTs |
---|
| 60 | /LXe/detector/pmtRadius 0.5 cm |
---|
| 61 | /LXe/detector/nx 15 |
---|
| 62 | /LXe/detector/ny 15 |
---|
| 63 | /LXe/detector/nz 50 |
---|
| 64 | /LXe/detector/update |
---|
| 65 | |
---|
| 66 | #7) Test your new geometry |
---|
| 67 | /gun/particle gamma |
---|
| 68 | /run/beamOn |
---|
| 69 | |
---|
| 70 | #Done |
---|
| 71 | # |
---|
| 72 | #For more specific information |
---|
| 73 | /random/setDirectoryName random2 |
---|