Template specialisation for storage of PDF tables.
More...
#include <JLine3ZRegressor.hh>
|
| JTimeRange | T_ns |
| | Time window with respect to Cherenkov hypothesis [ns].
|
| |
Template specialisation for storage of PDF tables.
Definition at line 113 of file JLine3ZRegressor.hh.
◆ JFunction1D_t
◆ JPDFMaplist_t
| typedef JTOOLS::JMAPLIST<JTOOLS::JPolint1FunctionalMap,JTOOLS::JPolint0FunctionalGridMap,JTOOLS::JPolint0FunctionalGridMap>::maplist JFIT::JRegressorStorage< JLine3Z, JGandalf >::JPDFMaplist_t |
◆ JPDF_t
◆ JNPEMaplist_t
| typedef JTOOLS::JMAPLIST<JTOOLS::JPolint1FunctionalMapH,JTOOLS::JPolint1FunctionalGridMap,JTOOLS::JPolint1FunctionalGridMap>::maplist JFIT::JRegressorStorage< JLine3Z, JGandalf >::JNPEMaplist_t |
◆ JNPE_t
◆ transformer_type
◆ JPDFs_t
◆ JNPEs_t
◆ JRegressorStorage() [1/2]
◆ JRegressorStorage() [2/2]
| JFIT::JRegressorStorage< JLine3Z, JGandalf >::JRegressorStorage |
( |
const std::string & | fileDescriptor, |
|
|
const JTimeRange & | T_ns, |
|
|
const double | TTS_ns, |
|
|
const int | numberOfPoints = 25, |
|
|
const double | epsilon = 1.0e-10 ) |
|
inline |
Constructor.
The PDF file descriptor should contain the wild card character JPHYSICS::WILDCARD which will be replaced by the PDF types listed in JRegressorStorage<JLine3Z, JGandalf>::pdf_t.
The TTS_ns corresponds to the additional time smearing applied to the PDFs.
- Parameters
-
| fileDescriptor | PDF file descriptor |
| T_ns | time range [ns] |
| TTS_ns | TTS [ns] |
| numberOfPoints | number of points for Gauss-Hermite integration of TTS |
| epsilon | precision for Gauss-Hermite integration of TTS |
Definition at line 155 of file JLine3ZRegressor.hh.
159 :
161 {
162 using namespace std;
164
165 const JPDF_t::JSupervisor supervisor(new JPDF_t::JDefaultResult(JMATH::zero));
166
168
169 const string file_name = getFilename(fileDescriptor,
pdf_t[i]);
170
171 _pdf[i].load(file_name.c_str());
172
173 _pdf[i].setExceptionHandler(supervisor);
174 }
175
176
177
179
181 _pdf[ i ].compress(numeric_limits<double>::max(),
T_ns);
182
184
185 _pdf[i-1].swap(buffer);
186
187 if (TTS_ns > 0.0) {
188 _pdf[i].blur(TTS_ns, numberOfPoints, epsilon);
189 }
190
192 }
193 }
JPHYSICS::JPDFTable< JFunction1D_t, JPDFMaplist_t > JPDF_t
time dependent PDF
JTimeRange T_ns
Time window with respect to Cherenkov hypothesis [ns].
static const JPDFType_t pdf_t[NUMBER_OF_PDFS]
PDF types.
static const int NUMBER_OF_PDFS
Number of PDFs.
JPHYSICS::JNPETable< double, double, JNPEMaplist_t > JNPE_t
time integrated PDF
◆ getPDF()
◆ getNPE()
◆ transform()
Transform PDFs and NPEs.
- Parameters
-
Definition at line 223 of file JLine3ZRegressor.hh.
224 {
226 _pdf[i].transform(transformer);
227 _npe[i].transform(transformer);
228 }
229 }
◆ 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 235 of file JLine3ZRegressor.hh.
◆ T_ns
◆ _pdf
◆ _npe
The documentation for this struct was generated from the following file: