lhapdf
is hosted by
Hepforge
,
IPPP Durham
LHAPDF
6.5.4
Main page
PDF sets
Class hierarchy
Functions
Examples
More...
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Groups
Pages
/tests/testpaths.cc
// Test program for path searching machinery
#include "LHAPDF/Paths.h"
#include <iostream>
using namespace
std;
#ifdef HAVE_MPI
#include <mpi.h>
#endif
int
main(
int
argc,
char
* argv[]) {
#ifdef HAVE_MPI
MPI_Init(&argc, &argv);
#endif
for
(
const
string
& p :
LHAPDF::paths
())
cout << p << endl;
cout <<
"@"
<<
LHAPDF::findFile
(
"lhapdf.conf"
) <<
"@"
<< endl;
cout <<
"List of available PDFs:"
<< endl;
for
(
const
string
& s :
LHAPDF::availablePDFSets
())
cout <<
" "
<< s << endl;
#ifdef HAVE_MPI
MPI_Finalize();
#endif
return
0;
}
Generated by
1.8.5