Constructor.
The PDF file descriptor should contain the wild card character JPHYSICS::WILDCARD.
51 const int N =
sizeof(pdf_t) /
sizeof(pdf_t[0]);
55 double> JFunction1D_t;
59 const JNPE_t::JSupervisor supervisor(
new JNPE_t::JDefaultResult(
zero));
61 for (
int i = 0; i != N; ++i) {
66 const string file_name =
getFilename(fileDescriptor, type);
68 cout <<
"loading PDF from file " << file_name <<
"... " << flush;
70 pdf.load(file_name.c_str());
74 pdf.setExceptionHandler(supervisor);
86 cout <<
"adding PDFs... " << flush;
88 Y1[1].add(
Y1[0]);
Y1.erase(
Y1.begin());
89 YA[1].add(
YA[0]);
YA.erase(
YA.begin());
90 YB[1].add(
YB[0]);
YB.erase(
YB.begin());
Multi-dimensional PDF table for arrival time of Cherenkov light.
std::string getFilename(const std::string &file_name)
Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any.
static const JZero zero
Function object to assign zero value.
bool is_deltarays(const int pdf)
Test if given PDF type corresponds to Cherenkov light from delta-rays.
bool is_bremsstrahlung(const int pdf)
Test if given PDF type corresponds to Cherenkov light from Bremsstrahlung.
@ SCATTERED_LIGHT_FROM_DELTARAYS
scattered light from delta-rays
@ DIRECT_LIGHT_FROM_EMSHOWERS
direct light from EM showers
@ SCATTERED_LIGHT_FROM_EMSHOWERS
scattered light from EM showers
@ SCATTERED_LIGHT_FROM_MUON
scattered light from muon
@ DIRECT_LIGHT_FROM_DELTARAYS
direct light from delta-rays
@ DIRECT_LIGHT_FROM_MUON
direct light from muon
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
std::vector< JNPE_t > YA
light from delta-rays
JPP::JNPETable< double, double, JNPEMaplist_t > JNPE_t
std::vector< JNPE_t > YB
light from EM showers
std::vector< JNPE_t > Y1
light from muon