Template specialisation for storage of PDF tables.
More...
#include <JEnergyRegressor.hh>
|
| typedef JTOOLS::JMAPLIST< JTOOLS::JPolint1FunctionalMap, JTOOLS::JPolint1FunctionalGridMap, JTOOLS::JPolint1FunctionalGridMap >::maplist | JNPEMaplist_t |
| |
| typedef JPHYSICS::JNPETable< double, double, JNPEMaplist_t > | JNPE_t |
| | time integrated PDF
|
| |
| typedef std::vector< JNPE_t > | JNPEs_t |
| | NPEs.
|
| |
|
| JTimeRange | T_ns |
| | Time window with respect to Cherenkov hypothesis [ns].
|
| |
Template specialisation for storage of PDF tables.
Definition at line 51 of file JEnergyRegressor.hh.
◆ JNPEMaplist_t
| typedef JTOOLS::JMAPLIST<JTOOLS::JPolint1FunctionalMap,JTOOLS::JPolint1FunctionalGridMap,JTOOLS::JPolint1FunctionalGridMap>::maplist JFIT::JRegressorStorage< JEnergy >::JNPEMaplist_t |
◆ JNPE_t
◆ JNPEs_t
◆ JRegressorStorage() [1/2]
◆ JRegressorStorage() [2/2]
Constructor.
The PDF file descriptor should contain the wild card character JPHYSICS::WILDCARD which will be replaced by the PDF types listed in JRegressorStorage<JEnergy>::pdf_t.
- Parameters
-
| fileDescriptor | PDF file descriptor |
| T_ns | time range [ns] |
Definition at line 79 of file JEnergyRegressor.hh.
79 :
81 {
82 using namespace std;
84
85 typedef JSplineFunction1D_t JFunction1D_t;
86 typedef JPDFTable<JFunction1D_t, JNPEMaplist_t> JPDF_t;
87
88 const JPDF_t::JSupervisor supervisor(new JPDF_t::JDefaultResult(JMATH::zero));
89
91
92 JPDF_t pdf;
93
94 const JPDFType_t type =
pdf_t[i];
95 const string file_name = getFilename(fileDescriptor, type);
96
97 pdf.load(file_name.c_str());
98
99 pdf.setExceptionHandler(supervisor);
100
101 if (is_bremsstrahlung(type))
103 else if (is_deltarays(type))
105 else
107 }
108
109
110
114 }
JNPEs_t _YB
light from EM showers
JPHYSICS::JNPETable< double, double, JNPEMaplist_t > JNPE_t
time integrated PDF
JNPEs_t _YA
light from delta-rays
static const int NUMBER_OF_PDFS
Number of PDFs.
JNPEs_t _Y1
light from muon
static const JPDFType_t pdf_t[NUMBER_OF_PDFS]
PDF types.
JTimeRange T_ns
Time window with respect to Cherenkov hypothesis [ns].
◆ getY1()
◆ getYA()
◆ getYB()
◆ NUMBER_OF_PDFS
◆ pdf_t
Initial value:= { DIRECT_LIGHT_FROM_MUON,
SCATTERED_LIGHT_FROM_MUON,
DIRECT_LIGHT_FROM_DELTARAYS,
SCATTERED_LIGHT_FROM_DELTARAYS,
DIRECT_LIGHT_FROM_EMSHOWERS,
SCATTERED_LIGHT_FROM_EMSHOWERS }
PDF types.
Definition at line 153 of file JEnergyRegressor.hh.
◆ T_ns
◆ _Y1
◆ _YA
◆ _YB
The documentation for this struct was generated from the following file: