Filters
Overview
This input file (Filters.in) set up the GAMOS’s filters used in the simulation.
Step-by-Step Instructions
Users can modified some parameters of the voxelized phantom generation.
GmElectronFilter (Filter 1) kills all electrons.
GmSecondaryFilter (Filter 2) kills secondary particles.
ScTT (Filter 3) filter kills all photons that have suffered a Rayleight or Compton interaction.
killJaws (Filter 4) filter kills all photons that reach the jaws, with this filter we assure that the photons will go through the phantom and eventually will be detected at the detector.
Note
If Filter 3 is used, make sure to define the jaws as a Geant4-solid.
Example:
1#################
2# FILTERS SETUP #
3#################
4
5# Photons affected by Rayleigh scattering
6/gamos/filter RL GmProcessFilter Rayl
7# Photons affected by Compton scattering
8/gamos/filter Cmp GmProcessFilter compt
9# Scattered photons filter
10/gamos/filter ScTT GmORFilter RL Cmp
11
12# kill photons at the jaws
13#/gamos/filter KillJawsx1 GmEnterPhysicalVolumeFilter x1jaw
14#/gamos/filter KillJawsx2 GmEnterPhysicalVolumeFilter x2jaw
15#/gamos/filter KillJawsy1 GmEnterPhysicalVolumeFilter y1jaw
16#/gamos/filter KillJawsy2 GmEnterPhysicalVolumeFilter y2jaw
17#/gamos/filter killJaws GmORFilter KillJawsx1 KillJawsx2 KillJawsy1 KillJawsy2
18
19#################
20# APPLY FILTERS #
21#################
22
23#Apply Filter1, Kill all electrons
24/gamos/userAction GmKillAtStackingActionUA GmElectronFilter
25
26#Apply Filter2, Kill secondary tracks
27#/gamos/userAction GmKillAtSteppingActionUA GmSecondaryFilter
28
29#Apply Filter3, Kill scattered photons
30#/gamos/userAction GmKillAtSteppingActionUA ScTT
31
32#Apply Filter4, Kill photons at the jaws
33#/gamos/userAction GmKillAtSteppingActionUA killJaws