Jpp
|
Regressor function object for JLine3Z fit using JGandalf minimiser. More...
#include <JLine3ZRegressor.hh>
Public Types | |
typedef JTOOLS::JSplineFunction1S_t | JFunction1D_t |
typedef JTOOLS::JMAPLIST < JTOOLS::JPolint1FunctionalMap, JTOOLS::JPolint0FunctionalGridMap, JTOOLS::JPolint0FunctionalGridMap > ::maplist | JPDFMaplist_t |
typedef JPHYSICS::JPDFTable < JFunction1D_t, JPDFMaplist_t > | JPDF_t |
typedef JTOOLS::JMAPLIST < JTOOLS::JPolint1FunctionalMapH, JTOOLS::JPolint1FunctionalGridMap, JTOOLS::JPolint1FunctionalGridMap > ::maplist | JNPEMaplist_t |
typedef JPHYSICS::JNPETable < double, double, JNPEMaplist_t > | JNPE_t |
typedef JGandalf< JLine3Z > | minimiser_type |
typedef JRegressor< JLine3Z, JGandalf > | regressor_type |
typedef JLine3Z::parameter_type | parameter_type |
Data type of fit parameter. More... | |
Public Member Functions | |
JRegressor () | |
Default constructor. More... | |
JRegressor (const std::string &fileDescriptor, const double TTS, const int numberOfPoints=25, const double epsilon=1.0e-10) | |
Constructor. More... | |
template<class JHit_t > | |
result_type | operator() (const JLine3Z &track, const JHit_t &hit) const |
Fit function. More... | |
result_type | operator() (const JLine3Z &track, const JPMTW0 &pmt) const |
Fit function. More... | |
JPDF_t::result_type | getH0 (const double R_Hz, const double t1) const |
Get background hypothesis value for time differentiated PDF. More... | |
JPDF_t::result_type | getH1 (const double E, const double R, const double theta, const double phi, const double t1) const |
Get signal hypothesis value for time differentiated PDF. More... | |
JNPE_t::result_type | getH0 (const double R_Hz) const |
Get background hypothesis value for time integrated PDF. More... | |
JNPE_t::result_type | getH1 (const double E, const double R, const double theta, const double phi) const |
Get signal hypothesis value for time integrated PDF. More... | |
double | getRmax () const |
Get maximal road width of PDF. More... | |
double | operator() (const JLine3Z &value, T __begin, T __end) |
Global fit. More... | |
double | operator() (const JLine3Z &value, T1 __begin1, T1 __end1, T2 __begin2, T2 __end2) |
Global fit. More... | |
double | operator() (const JFunction_t &fit, T1 __begin1, T1 __end1, T2 __begin2, T2 __end2) |
Multi-dimensional fit of two data sets. More... | |
double | operator() (const JFunction_t &fit, T __begin, T __end) |
Multi-dimensional fit of one data set. More... | |
Public Attributes | |
JPDF_t | pdf [NUMBER_OF_PDFS] |
PDF. More... | |
JNPE_t | npe [NUMBER_OF_PDFS] |
PDF. More... | |
double | E_GeV |
Energy of muon at vertex [GeV]. More... | |
JLANG::JSharedPointer < JMEstimator > | estimator |
M-Estimator function. More... | |
double | lambda |
JLine3Z | value |
JLine3Z | error |
std::vector< parameter_type > | parameters |
int | numberOfIterations |
JMATH::JMatrixNS | H |
Static Public Attributes | |
static JTimeRange | T_ns |
Time window with respect to Cherenkov hypothesis [ns]. More... | |
static double | Vmax_npe = std::numeric_limits<double>::max() |
Maximal integral of PDF [npe]. More... | |
static const int | NUMBER_OF_PDFS = 4 |
static const JPDFType_t | pdf_t [NUMBER_OF_PDFS] |
PDF types. More... | |
static int | MAXIMUM_ITERATIONS |
maximal number of iterations More... | |
static double | EPSILON |
maximal distance to minimum More... | |
static double | LAMBDA_MIN |
minimal value control parameter More... | |
static double | LAMBDA_MAX |
maximal value control parameter More... | |
static double | LAMBDA_UP |
multiplication factor control parameter More... | |
static double | LAMBDA_DOWN |
multiplication factor control parameter More... | |
static double | PIVOT |
minimal value diagonal element of matrix More... | |
static int | debug = 0 |
debug level (default is off). More... | |
Regressor function object for JLine3Z fit using JGandalf minimiser.
Definition at line 110 of file JLine3ZRegressor.hh.
Definition at line 115 of file JLine3ZRegressor.hh.
typedef JTOOLS::JMAPLIST<JTOOLS::JPolint1FunctionalMap, JTOOLS::JPolint0FunctionalGridMap, JTOOLS::JPolint0FunctionalGridMap>::maplist JFIT::JRegressor< JLine3Z, JGandalf >::JPDFMaplist_t |
Definition at line 118 of file JLine3ZRegressor.hh.
typedef JPHYSICS::JPDFTable<JFunction1D_t, JPDFMaplist_t> JFIT::JRegressor< JLine3Z, JGandalf >::JPDF_t |
Definition at line 119 of file JLine3ZRegressor.hh.
typedef JTOOLS::JMAPLIST<JTOOLS::JPolint1FunctionalMapH, JTOOLS::JPolint1FunctionalGridMap, JTOOLS::JPolint1FunctionalGridMap>::maplist JFIT::JRegressor< JLine3Z, JGandalf >::JNPEMaplist_t |
Definition at line 123 of file JLine3ZRegressor.hh.
typedef JPHYSICS::JNPETable<double, double, JNPEMaplist_t> JFIT::JRegressor< JLine3Z, JGandalf >::JNPE_t |
Definition at line 124 of file JLine3ZRegressor.hh.
|
inherited |
Definition at line 76 of file JRegressor.hh.
|
inherited |
Definition at line 77 of file JRegressor.hh.
|
inherited |
Data type of fit parameter.
Definition at line 56 of file JGandalf.hh.
|
inline |
|
inline |
Constructor.
The PDF file descriptor should contain the wild card character JPHYSICS::WILD_CARD which will be replaced by the corresponding PDF types listed in JRegressor<JLine3Z, JGandalf>::pdf_t.
The TTS
corresponds to the additional time smearing applied to the PDFs.
fileDescriptor | PDF file descriptor |
TTS | TTS [ns] |
numberOfPoints | number of points for Gauss-Hermite integration of TTS |
epsilon | precision for Gauss-Hermite integration of TTS |
Definition at line 146 of file JLine3ZRegressor.hh.
|
inline |
Fit function.
This method is used to determine the chi2 and gradient of given hit with respect to trajectory of muon.
The template argument JHit_t
refers to a data structure which should have the following member methods:
track | track |
hit | hit |
Definition at line 214 of file JLine3ZRegressor.hh.
|
inline |
Fit function.
This method is used to determine the chi2 and gradient of given PMT with respect to trajectory of muon.
track | track |
pmt | pmt |
Definition at line 277 of file JLine3ZRegressor.hh.
|
inline |
Get background hypothesis value for time differentiated PDF.
R_Hz | rate [Hz] |
t1 | time [ns] |
Definition at line 336 of file JLine3ZRegressor.hh.
|
inline |
Get signal hypothesis value for time differentiated PDF.
E | muon energy at minimum distance of approach [GeV] |
R | minimum distance of approach [m] |
theta | PMT zenith angle [rad] |
phi | PMT azimuth angle [rad] |
t1 | arrival time relative to Cherenkov hypothesis [ns] |
Definition at line 353 of file JLine3ZRegressor.hh.
|
inline |
Get background hypothesis value for time integrated PDF.
R_Hz | rate [Hz] |
Definition at line 402 of file JLine3ZRegressor.hh.
|
inline |
Get signal hypothesis value for time integrated PDF.
E | muon energy at minimum distance of approach [GeV] |
R | minimum distance of approach [m] |
theta | PMT zenith angle [rad] |
phi | PMT azimuth angle [rad] |
Definition at line 417 of file JLine3ZRegressor.hh.
|
inline |
Get maximal road width of PDF.
Definition at line 464 of file JLine3ZRegressor.hh.
|
inlineinherited |
Global fit.
value | start value |
__begin | begin of data set |
__end | end of data set |
Definition at line 89 of file JRegressor.hh.
|
inlineinherited |
Global fit.
value | start value |
__begin1 | begin of first data set |
__end1 | end of first data set |
__begin2 | begin of second data set |
__end2 | end of second data set |
Definition at line 108 of file JRegressor.hh.
|
inlineinherited |
Multi-dimensional fit of two data sets.
The fit function should return the equivalent of chi2 for the current value of the model and the given data point as well as the partial derivatives.
fit | fit function |
__begin1 | begin of first data set |
__end1 | end of first data set |
__begin2 | begin of second data set |
__end2 | end of second data set |
Definition at line 122 of file JGandalf.hh.
|
inlineinherited |
Multi-dimensional fit of one data set.
The fit function should return the equivalent of chi2 for the current value of the model and the given data point as well as the partial derivatives.
fit | fit function |
__begin | begin of data |
__end | end of data |
Definition at line 249 of file JGandalf.hh.
|
static |
Time window with respect to Cherenkov hypothesis [ns].
Default values.
Definition at line 478 of file JLine3ZRegressor.hh.
|
static |
Maximal integral of PDF [npe].
Definition at line 479 of file JLine3ZRegressor.hh.
|
static |
Definition at line 481 of file JLine3ZRegressor.hh.
|
static |
JPDF_t JFIT::JRegressor< JLine3Z, JGandalf >::pdf[NUMBER_OF_PDFS] |
PDF.
Definition at line 485 of file JLine3ZRegressor.hh.
JNPE_t JFIT::JRegressor< JLine3Z, JGandalf >::npe[NUMBER_OF_PDFS] |
PDF.
Definition at line 486 of file JLine3ZRegressor.hh.
double JFIT::JRegressor< JLine3Z, JGandalf >::E_GeV |
Energy of muon at vertex [GeV].
Definition at line 487 of file JLine3ZRegressor.hh.
JLANG::JSharedPointer<JMEstimator> JFIT::JRegressor< JLine3Z, JGandalf >::estimator |
M-Estimator function.
Definition at line 489 of file JLine3ZRegressor.hh.
|
staticinherited |
maximal number of iterations
maximal number of iterations.
Definition at line 255 of file JGandalf.hh.
|
staticinherited |
maximal distance to minimum
maximal distance to minimum.
Definition at line 256 of file JGandalf.hh.
|
staticinherited |
minimal value control parameter
Definition at line 257 of file JGandalf.hh.
|
staticinherited |
maximal value control parameter
Definition at line 258 of file JGandalf.hh.
|
staticinherited |
multiplication factor control parameter
Definition at line 259 of file JGandalf.hh.
|
staticinherited |
multiplication factor control parameter
Definition at line 260 of file JGandalf.hh.
|
staticinherited |
minimal value diagonal element of matrix
Definition at line 261 of file JGandalf.hh.
|
inherited |
Definition at line 264 of file JGandalf.hh.
|
inherited |
Definition at line 265 of file JGandalf.hh.
|
inherited |
Definition at line 266 of file JGandalf.hh.
|
inherited |
Definition at line 267 of file JGandalf.hh.
|
inherited |
Definition at line 268 of file JGandalf.hh.
|
inherited |
Definition at line 269 of file JGandalf.hh.
|
staticinherited |
debug level (default is off).
Definition at line 43 of file JMessage.hh.