energyloss calculator

last modified: 2024-07-16 by Kodai Okawa

Some CRIB-specific files use energy loss libraries.

Warning

Until 2023 we used SRIMlib library developed by Okawa, but we plan to replace new library TSrim because Okawa will not maintain this library in the future.

We are still developping the code, so not stable version yet.


SRIMlib installation

git clone https://github.com/okawak/SRIMlib.git
cd SRIMlib
mkdir build
cd build
cmake ..
make
make install

Before using this library, you need to make database file (just .root file)

cd ..
source thisSRIMlib.sh
update

If you want to make energy loss figures, “f” option will work.

update -f

Also, I recommend to write source thisSRIMlib.sh part in the .bashrc/.zshrc to load this library.