1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-26 12:08:52 -05:00
catima/README.md

54 lines
2.5 KiB
Markdown
Raw Normal View History

2019-10-14 05:20:44 -04:00
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/dc251db65f7a4c06ae07380544ea08fc)](https://www.codacy.com/manual/hrosiak/catima?utm_source=github.com&utm_medium=referral&utm_content=hrosiak/catima&utm_campaign=Badge_Grade)
2019-10-14 11:21:30 -04:00
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/hrosiak/catima.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/hrosiak/catima/context:cpp)
2019-10-14 05:37:21 -04:00
2017-07-25 12:19:11 -04: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.
2019-10-22 13:34:09 -04:00
The WebAtima UI to this library can be found here:
2019-10-14 05:42:32 -04:00
* https://web-docs.gsi.de/~aprochaz/webatima (only inside GSI)
* https://isotopea.com/webatima
2017-07-25 12:19:11 -04:00
Installation
------------
CMake is used to build the library. For default build use:
```
> mkdir build
> cd build
> cmake ../
> make
```
2019-10-22 13:34:09 -04:00
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
```
2017-07-25 12:19:11 -04:00
cmake options
-------------
compile options, enable or disable with cmake:
> cmake ../ -D[OPTION]
available options:
2018-10-21 16:08:16 -04:00
* BUILD_SHARED_LIBS - if ON shared library is build, otherwise static
2019-10-08 06:36:58 -04:00
* PYTHON_MODULE - enable/disable building of the python bindigs, pybind11 is required to build the catima python module, default OFF
2019-10-22 13:34:09 -04:00
* APPS - build command line app, default ON
* TESTS - build tests, default OFF
* EXAMPLES - build examples, default OFF
2017-07-25 12:19:11 -04:00
* DOCS - prepare doxygen documentation (after cmake, __make docs__ needs to be executed)
2017-07-27 05:44:04 -04:00
* 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
2018-10-21 16:08:16 -04:00
* GSL_INTEGRATION - use GSL integration functions, otherwise use built-in integrator, default: OFF
2018-01-26 13:44:33 -05:00
* GLOBAL - compile with GLOBAL code (source not included at the moment, needs to be manually added to __global__ directory, default:OFF)
2019-10-22 13:34:09 -04:00
* STORE_SPLINES - store splines in cache, if disabled datapoints are stored and splines are recreated, default ON
2017-07-25 12:19:11 -04:00
ie:
2018-10-21 16:08:16 -04:00
> cmake -DPYTHON_MODULE=ON -DEXAMPLES=ON ../