Constructor.
The PDF file descriptor should contain the wild card character JPHYSICS::WILDCARD.
40 {
43
44 const JPDFType_t pdf_t[] = {
45 DIRECT_LIGHT_FROM_MUON,
46 SCATTERED_LIGHT_FROM_MUON,
47 DIRECT_LIGHT_FROM_DELTARAYS,
48 SCATTERED_LIGHT_FROM_DELTARAYS,
49 DIRECT_LIGHT_FROM_EMSHOWERS,
50 SCATTERED_LIGHT_FROM_EMSHOWERS
51 };
52
53 const int N = sizeof(pdf_t) / sizeof(pdf_t[0]);
54
57 double> JFunction1D_t;
59
60
61 const JNPE_t::JSupervisor
supervisor(
new JNPE_t::JDefaultResult(zero));
62
63 for (int i = 0; i != N; ++i) {
64
65 JPDF_t pdf;
66
67 const JPDFType_t type = pdf_t[i];
68 const string file_name = getFilename(fileDescriptor, type);
69
70 cout <<
"loading PDF from file " << file_name <<
"... " << flush;
71
72 pdf.load(file_name.c_str());
73
75
77
82 else
84 }
85
86
87
88 cout <<
"adding PDFs... " << flush;
89
90 Y1[1].add(
Y1[0]);
Y1.erase(
Y1.begin());
91 YA[1].add(
YA[0]);
YA.erase(
YA.begin());
92 YB[1].add(
YB[0]);
YB.erase(
YB.begin());
93
95 }
Template definition of a multi-dimensional oscillation probability interpolation table.
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.
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