1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-26 12:08:52 -05:00
A slightly modified version of the catima energy loss library (equivalent to LISE energy loss)
Go to file
Andrej Prochazka 649377b4cf Merge pull request #7 from hrosiak/python
added few python functions
2017-10-10 18:48:52 +02:00
docs ls docs and example 2017-07-27 11:39:44 +02:00
examples ls docs and example 2017-07-27 11:39:44 +02:00
tests added few python functions 2017-10-09 00:54:14 +02:00
utils EnergyTable is not constexpr now to support older compiler, + small other fixes like missing returns 2017-07-26 20:22:18 +02:00
.gitignore initial 2017-07-25 18:19:11 +02:00
build_config.in initial 2017-07-25 18:19:11 +02:00
calculations.cpp interpolation for LS fixed 2017-07-26 19:25:45 +02:00
calculations.h interpolation for LS fixed 2017-07-26 19:25:45 +02:00
catima.cpp initial 2017-07-25 18:19:11 +02:00
catima.h initial 2017-07-25 18:19:11 +02:00
catima.pyx added few python functions 2017-10-09 00:54:14 +02:00
catimac.pxd added few python functions 2017-10-09 00:54:14 +02:00
CMakeLists.txt cmake update for mac os 2017-09-22 12:05:35 +02:00
config.h initial 2017-07-25 18:19:11 +02:00
constants.h LS and X bug fixed, logEmax increased, LS and X regenerated 2017-07-26 03:07:29 +02:00
CREDITS initial 2017-07-25 18:19:11 +02:00
cwrapper.cpp EnergyTable is not constexpr now to support older compiler, + small other fixes like missing returns 2017-07-26 20:22:18 +02:00
cwrapper.h initial 2017-07-25 18:19:11 +02:00
data_atima.h initial 2017-07-25 18:19:11 +02:00
data_ionisation_potential.h initial 2017-07-25 18:19:11 +02:00
data_srim.h initial 2017-07-25 18:19:11 +02:00
doxygen.in initial 2017-07-25 18:19:11 +02:00
generated_LS_coeff.h EnergyTable is not constexpr now to support older compiler, + small other fixes like missing returns 2017-07-26 20:22:18 +02:00
init.sh.in cmake update for mac os 2017-09-22 12:05:35 +02:00
integrator.cpp initial 2017-07-25 18:19:11 +02:00
integrator.h initial 2017-07-25 18:19:11 +02:00
LICENSE initial 2017-07-25 18:19:11 +02:00
material_database.cpp initial 2017-07-25 18:19:11 +02:00
material_database.h initial 2017-07-25 18:19:11 +02:00
nucdata.cpp initial 2017-07-25 18:19:11 +02:00
nucdata.h initial 2017-07-25 18:19:11 +02:00
README.md added options to readme 2017-07-27 11:44:04 +02:00
setup.py.in initial 2017-07-25 18:19:11 +02:00
storage.cpp EnergyTable is not constexpr now to support older compiler, + small other fixes like missing returns 2017-07-26 20:22:18 +02:00
storage.h ls docs and example 2017-07-27 11:39:44 +02:00
structures.cpp EnergyTable is not constexpr now to support older compiler, + small other fixes like missing returns 2017-07-26 20:22:18 +02:00
structures.h initial 2017-07-25 18:19:11 +02:00

CATima

C++ library for caclulalaton of energy loss, range, angular scattering and time of flight of the particle passing through matter. The library is based on physics used in the ATIMA code,however its not 100% copy of ATIMA physics. see CREDITS for more details.

Installation

CMake is used to build the library. For default build use:

> mkdir build
> cd build
> cmake ../
> make

cmake options

compile options, enable or disable with cmake:

cmake ../ -D[OPTION]

available options:

  • CATIMA_PYTHON - enable/disable building of the python bindigs, cython and numpy are required to build the catima python module, default OFF
  • TESTS - build tests
  • EXAMPLES - build examples
  • DOCS - prepare doxygen documentation (after cmake, make docs needs to be executed)
  • GENERATE_DATA - makes program to re-generate precalculated tables (ie precalculated LS coefficients), default:OFF
  • THIN_TARGET_APPROXIMATION - compile the library with thin target approximation, default: ON

ie:

cmake -DCATIMA_PYTHON=ON -DEXAMPLES=ON ../

after the compilation the libraries and headers must be either installed system-wide by make install or PATH and LD_LIBRARY_PATH must be adjusted to point to headers and library files. The default install path can be change, ie: cmake -DCMAKE_INSTALL_PREFIX=/opt/catima

the option to system-wide installation is to adjust library path and include paths. This can be done sourcing the init.sh file, which is generated in the build directory:

source init.sh