Photos C++ Interface
Web page: http://photospp.web.cern.ch Repository: https://gitlab.cern.ch/photospp/photospp
Requirements
- Fortran compiler
- C++03 compiler (C++11 for HepMC3 interface)
- make or (cmake + any supported backend)
- Tauola++
- HepMC (optional)
- HepMC3 (optional)
- MC-TESTER (optional, for tests)
- Pythia8 (optional, for tests)
- Latex (optional, for documentation)
- Doxygen (optional, for documentation)
Build with cmake
cmake -S . -B BUILD <extra flags>
cmake --build BUILD
cmake --install BUILD
and then optionally
ctest --test-dir BUILD
to run the tests.
The extra flags might be either generic CMake flags, e.g. -DCMAKE_Fortran_COMPILER=ifort
or the Photospp-specific flags
Photospp_ENABLE_HEPMC2 Enables building of with HepMC2 library, ON by default.
Photospp_ENABLE_HEPMC3 Enables building of with HepMC3 library, ON by default.
Photospp_ENABLE_EXAMPLES Enables building of examples and testing them, ON by default.
Photospp_ENABLE_MC-TESTER Enables building of examples with MC-TESTER and testing them, OFF by default.
Photospp_ENABLE_DOXYGEN Enables building of Doxygen documentation, OFF by default.
Photospp_ENABLE_LATEX Enables building of LaTeX documentation, OFF by default.
The location of the dependencies (HepMC, HepMC3, MC-TESTER, etc.) can be set with -DDEPENDNCYNAME_DIR=/my/location,
e.g. -DMC-TESTER_DIR=/usr/local.
Build with autotools ( Deprecated, will not be updated )
Documentation is in documentation/latex_documentation, type "make" there
To compile the interface:
- Execute "./configure" (if the path to HepMC is not set with HEPMCLOCATION, use "./configure --with-hepmc=" or use "./configure --without-hepmc")
- Execute "make"
Alternatively cofiguration scripts based on autotools can be used.
In this case 'cd platform', './use-LCG-config.sh' and
follow the instructions in the freshly created './INSTALL' readme file.
The configure file in the directory 'examples' will be absent.
The instructions collected below should be then ignored.
Under MAC OS one may need to remove '-lfreetype' from
'examples/Makefile'
To run the examples, "cd examples". There "./configure" and "make" as well. For some of the examples to work, pythia8.1 and MC-Tester will be needed. The most basic example does not need them.
-- Last Modified: A. Verbytskyi, 15 Sep. 2024
Personal projects
View all- Loading
Loading
Info
10:48 AM
Member since June 13, 2021