Studies on ALPIDE sensor performance at low energies regime and its potecial for Ion Beam Analysis.
macros/IBAclusterStats.C
: Some statistics on clusters production, hits and ROFs$ root.exe -q -l IBAclusterStats.C
macros/IBAInteractionRate.C
: Analysis of valid clusters as function of the interaction Rate.$ root.exe -q -l IBAInteractionRate.C
macros/IBAInteractionFluence.C
: Efficiency analysis in terms of fluence.$ root.exe -q -l IBAInteractionFluence.C
macros/analysisEff.C
: Fit efficiency in energy threshold region with a gaussian CDF.scripts/Generate_single_proton_events.sh
: Generate proton events for each interaction rate provided.scripts/plot_eff.sh
: Plot efficiency as function of interaction rate using the macro "IBAInteractionRate.C".o2-files/
: Files from o2 simulation that were modified.SRIM_analys/
: SRIM simulation data and codes to analyze its data. InSRIM_analysis.py
we have the estimation of energy straggling from a longitudinal straggling and the fraction of energy loss crossing the ALPIDE.TRIM_analysys
: Python codes for TRIM simulation and data analysis of target damage of the ALPIDE model for different ions and energies.
OBS: The folder "alpide-iba" must be in the directory you want to make the simulation.
To simulate and analyze its data with "IBAclusterStats.C":
./alpide-iba/scripts/Generate_single_proton_events.sh -n 10 -i "10 20 30"
Where -n
is the number of events and -i
are the interaction rates that you want to make the simulation. For each interaction rate, one folder with the corresponding number will be created.
OBS:In order to decrease the time of simulation, the command above has the following strategy: If the number of events is less than 2000 or odd, the script will make just 1 simulation with the number provided. Otherwise, if the number of events is bigger than 2000 and even, (n/2000) simulations will be made.
For generating the plot of efficiency (nClusterFromPrimaries/nPrimaries), you need to specify which interaction rates do you want to use to make the plot:
./scripts/plot_eff.sh -i "10 20 30"
The command above will generate the efficiency by interaction rate plot.
For using the python codes generated for analysing the damage, it is necessary to have SRIM installed and also the pysrim library.
- pysrim:
https://pypi.org/project/pysrim/
- SRIM:
http://srim.org/
- Tutorial for installing SRIM in linux platforms with wine:
https://www.researchgate.net/publication/324329665_Installing_SRIM_2013_on_linuxmint_mate
If you are using the docker version of pysrim, you need to have docker installed and get the docker image:
docker pull costrouc/pysrim
automatize_trim.sh
or automatize_trim_docker.sh
are the files for running the TRIM simulations. Lets explore the example below:
./automatize_trim -n 20 -i He -e "10.0 20.0 30.0"
The argumets:
-i
: The íon-n
: The number of events-e
: The energies that you want to run
Running SRIM through the docker is the most convenient way because it makes a fake x11 session, allowing to run everything through the command line. You can improve significantly the time of simulation dividing all simulations in nodes using GNU parallel. Obviusly, you must have GNU parallel installed:
sudo apt install parallel
or
sudo pacman -S parallel
For running, use the following command:
parallel --jobs 10 ./automatize_trim_docker.sh -i {1} -e {2} -n 100 ::: H He Li Be B C N O F Ne ::: 4.0 8.0 10.0 15.0 20.0 30.0 40.0 50.0 60.0 70.0 80.0 90.0 100.0
The --jobs
is the number of nodes that you want to use.