The jetcounter example provides a setup for simulation of a typical experiment with the Jet Counter nanodosemeter.
This example allows the calculation of the ionisation cluster size distribution (ICSD) (the number of ionisations per projectile) in a real sized cylindrical interaction volume (IV) of the Jet Counter device.
The results of each of the simulation are provided in the plain text format. Each thread produces its own output file.
Each row in the output file consist information from a single event, where single primary particle (projectile) was generated. Each row contains 4 numbers (columns):
Geometry visualization is available through vis.mac file.
Script written in Python is provided for visualization of the results.
If the beam energy is set to any positive value, the beam is mono-energetic with the given energy. If the beam energy is set to -1 (default value), the energy spectrum file is used. The energy spectrum of the beam is based on experimental data. Its mean energy is 4.6 MeV, which is the energy of alpha particles from gold-plated americium (241-Am) source. This source is chosen in the primaries.in macro file.
The PhysicsList used in this example show how to combine Geant4-DNA physics and standard physics in different regions using the G4EmDNAPhysicsActivator.
The G4DNAPhysics_option is chosen in the init_phys.in macro file. Hence, it can be changed without the need of recompilation.
Make sure G4LEDATA points to the low energy electromagnetic data files.
For the visualization:
./jetcounter vis
For the complete simulation:
./jetcounter run
In run.mac macro file will read init_phys.in and primaries.in.
However, it is recommended to first increase the number of simulated events in the run.mac file to at least 4000.
To produce figures from simulation results (requires numpy and matplotlib Python libraries):
python3 plot.py