mirror of
https://github.com/gwm17/catima.git
synced 2024-11-23 02:38:51 -05:00
48 lines
2.0 KiB
Markdown
48 lines
2.0 KiB
Markdown
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.
|
|
|
|
The WebAtima UI to this library can be found here:
|
|
* https://web-docs.gsi.de/~aprochaz/webatima (only inside GSI)
|
|
* https://isotopea.com/webatima
|
|
|
|
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:
|
|
* BUILD_SHARED_LIBS - if ON shared library is build, otherwise static
|
|
* PYTHON_MODULE - enable/disable building of the python bindigs, pybind11 is 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
|
|
* GSL_INTEGRATION - use GSL integration functions, otherwise use built-in integrator, default: OFF
|
|
* GLOBAL - compile with GLOBAL code (source not included at the moment, needs to be manually added to __global__ directory, default:OFF)
|
|
|
|
ie:
|
|
> cmake -DPYTHON_MODULE=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
|