LHAPDFWrap: a C++ wrapper around the LHAPDF package
5.4
The
LHAPDFWrap library provides a set of C++ wrapper functions for the Fortran
LHAPDF library. New users should browse this documentation and take a look at the
TestCCWrapper.cc source file, which is a good example of how the wrapper library can be used.
The
LHAPDF wrapper has been improved in several ways for the
LHAPDF v5.4 release:
- String passing to the Fortran functions from C++ now correctly passes the hidden length argument, fixing problems on 64 bit systems;
- The
LHAPDFWrap class has been deprecated in favour of a set of wrapper functions in the LHAPDF namespace. The class interface was misleading, since no persistent state was involved and two class instances would not have been independent;
- Proper C++
std::string arguments can now be used for set names: char* string arguments can still be passed, due to implicit conversion via the string(char*) constructor.
- Originally by Stefan Gieseke.
- Adapted for LHAPDFv4 by Mike Whalley.
- Adapted for LHAPDFv5 by Craig Group/Mike Whalley.
- LHAPDF v5.4: Fortran portability, tidying and conversion to namespaced functions by Andy Buckley.