Jpp test-rotations-old
the software that should make you happy
|
Multi-dimensional CDF table for arrival time of Cherenkov light. More...
#include <JCDFTable.hh>
Public Types | |
enum | { NUMBER_OF_DIMENSIONS = transformablemultifunction_t::NUMBER_OF_DIMENSIONS } |
typedef JFunction1D_t::argument_type | argument_type |
typedef JFunction1D_t::result_type | result_type |
typedef JFunction1D_t::value_type | value_type |
typedef JTransformableMultiFunction< JFunction1D_t, JMaplist_t, JDistance_t > | transformablemultifunction_t |
typedef transformablemultifunction_t::multimap_type | multimap_type |
typedef transformablemultifunction_t::transformer_type | transformer_type |
typedef JMultiKey< NUMBER_OF_DIMENSIONS - 1, argument_type > | multikey_type |
typedef JTOOLS::JConstantFunction1D< double, argument_type > | JConstantFunction1D_t |
typedef JTOOLS::JMultiFunction< JConstantFunction1D_t, JMaplist_t, JDistance_t > | JMultiQuantile_t |
typedef JTOOLS::JMultiFunction< JFunction1D_t, JMaplist_t, JDistance_t > | JMultiFunction_t |
typedef JFunctional< argument_type, result_type > | functional_type |
Public Member Functions | |
JCDFTable () | |
Default constructor. | |
template<class __JFunction_t , class __JMaplist_t , class __JDistance_t > | |
JCDFTable (const JTransformableMultiFunction< __JFunction_t, __JMaplist_t, __JDistance_t > &input, const typename __JFunction_t::ordinate_type eps=JMATH::zero) | |
Constructor. | |
template<class JHistogram_t , class __JMaplist_t , class __JDistance_t > | |
JCDFTable (const JTransformableMultiHistogram< JHistogram_t, __JMaplist_t, __JDistance_t > &input, const typename JHistogram_t::ordinate_type eps=JMATH::zero) | |
Constructor. | |
template<class JFunctionTransformer_t > | |
void | transform (const JFunctionTransformer_t &transformer) |
Application of weight function. | |
template<class ... Args> | |
double | getNPE (const Args &...args) const |
Get number of photo-electrons. | |
template<class ... Args> | |
double | getTime (const Args &...args) const |
Generate arrival time. | |
virtual JReader & | read (JReader &in) override |
Read CDF from input. | |
virtual JWriter & | write (JWriter &out) const override |
Write CDF to output. | |
void | load (const char *file_name) |
Load from input file. | |
void | store (const char *file_name) const |
Store to output file. | |
virtual result_type | evaluate (const argument_type *pX) const =0 |
Recursive function value evaluation. | |
virtual const JExceptionHandler & | getExceptionHandler () const =0 |
Get exception handler. | |
Static Public Member Functions | |
static result_type | getValue (const JFunctional &function, const argument_type *pX) |
Recursive function value evaluation. | |
static JClass< result_type >::argument_type | getValue (typename JClass< result_type >::argument_type value, const argument_type *pX) |
Termination of recursive function value evaluation. | |
Public Attributes | |
JMultiQuantile_t | intensity |
JMultiFunction_t | function |
std::shared_ptr< transformer_type > | transformer |
Protected Member Functions | |
virtual void | do_compile () override |
Function compilation. | |
template<class JValue_t > | |
void | insert (const multikey_type &key, const JValue_t &value, const typename JValue_t::ordinate_type eps) |
Insert value at given multidimensional key. | |
template<unsigned int N, class __JAbscissa_t , class __JContents_t , template< class, class, class > class __JMap_t, class __JDistance_t > | |
void | insert (const JMultiKey< N, argument_type > &key, const JHistogramMap< __JAbscissa_t, __JContents_t, __JMap_t, __JDistance_t > &value, const __JContents_t eps) |
Insert multi-dimensional histogram at multi-dimensional key. | |
Multi-dimensional CDF table for arrival time of Cherenkov light.
This class can be used to determine the number of photo-electrons as a function of the values of the leading parameter values and to generate random photon arrival times.
N.B. The transformation of the PDF is assumed to be linear.
Definition at line 54 of file JCDFTable.hh.
JFunction1D_t::argument_type JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::argument_type |
Definition at line 61 of file JCDFTable.hh.
JFunction1D_t::result_type JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::result_type |
Definition at line 62 of file JCDFTable.hh.
JFunction1D_t::value_type JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::value_type |
Definition at line 63 of file JCDFTable.hh.
JTransformableMultiFunction<JFunction1D_t, JMaplist_t, JDistance_t> JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::transformablemultifunction_t |
Definition at line 65 of file JCDFTable.hh.
transformablemultifunction_t::multimap_type JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::multimap_type |
Definition at line 67 of file JCDFTable.hh.
transformablemultifunction_t::transformer_type JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::transformer_type |
Definition at line 68 of file JCDFTable.hh.
JMultiKey<NUMBER_OF_DIMENSIONS - 1, argument_type> JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::multikey_type |
Definition at line 72 of file JCDFTable.hh.
JTOOLS::JConstantFunction1D<double, argument_type> JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::JConstantFunction1D_t |
Definition at line 74 of file JCDFTable.hh.
JTOOLS::JMultiFunction<JConstantFunction1D_t, JMaplist_t, JDistance_t> JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::JMultiQuantile_t |
Definition at line 75 of file JCDFTable.hh.
JTOOLS::JMultiFunction<JFunction1D_t, JMaplist_t, JDistance_t> JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::JMultiFunction_t |
Definition at line 76 of file JCDFTable.hh.
|
inherited |
Definition at line 85 of file JFunctional.hh.
anonymous enum |
Enumerator | |
---|---|
NUMBER_OF_DIMENSIONS |
Definition at line 70 of file JCDFTable.hh.
|
inline |
Default constructor.
Definition at line 82 of file JCDFTable.hh.
|
inline |
Constructor.
input | multi-dimensional PDF |
eps | minimal step size for CDF |
Definition at line 94 of file JCDFTable.hh.
|
inline |
Constructor.
input | multi-dimensional histogram |
eps | minimal step size for CDF |
Definition at line 115 of file JCDFTable.hh.
|
inline |
Application of weight function.
transformer | function transformer |
Definition at line 133 of file JCDFTable.hh.
|
inline |
Get number of photo-electrons.
args | comma separated argument list |
Definition at line 160 of file JCDFTable.hh.
|
inline |
Generate arrival time.
args | comma seperated argument list (last value is random number between 0 and 1) |
Definition at line 178 of file JCDFTable.hh.
|
inlineoverridevirtual |
Read CDF from input.
in | reader |
Implements JIO::JSerialisable.
Definition at line 194 of file JCDFTable.hh.
|
inlineoverridevirtual |
Write CDF to output.
out | writer |
Implements JIO::JSerialisable.
Definition at line 221 of file JCDFTable.hh.
|
inlineoverrideprotectedvirtual |
|
inlineprotected |
Insert value at given multidimensional key.
key | multi-dimensional key |
value | function or histogram |
eps | minimal step size for method JTOOLS::makeCDF |
Definition at line 254 of file JCDFTable.hh.
|
inlineprotected |
Insert multi-dimensional histogram at multi-dimensional key.
key | multidimensional key |
value | multidimensional histogram |
eps | minimal step size for CDF |
Definition at line 290 of file JCDFTable.hh.
|
inlineinherited |
Load from input file.
file_name | file name |
Definition at line 29 of file JObjectBinaryIO.hh.
|
inlineinherited |
Store to output file.
file_name | file name |
Definition at line 40 of file JObjectBinaryIO.hh.
|
pure virtualinherited |
Recursive function value evaluation.
pX | pointer to abscissa values |
Implemented in JTOOLS::JConstantFunction1D< JArgument_t, JResult_t >, JTOOLS::JExternalFunction1D< JArgument_t, JResult_t >, JTOOLS::JFunctionObject1D< JArgument_t, JResult_t >, JTOOLS::JHermiteSplineFunction< JElement_t, JCollection_t, JResultDerivative< typename JResultType< typename JElement_t::ordinate_type >::result_type >, JDistance_t >, JTOOLS::JHermiteSplineFunction< JElement_t, JCollection_t, JResultPDF< typename JResultType< typename JElement_t::ordinate_type >::result_type >, JDistance_t >, JTOOLS::JHermiteSplineFunction< JElement_t, JCollection_t, typename JResultType< typename JElement_t::ordinate_type >::result_type, JDistance_t >, JTOOLS::JHermiteSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >, JTOOLS::JSplineFunction< JElement_t, JCollection_t, JResultDerivative< typename JResultType< typename JElement_t::ordinate_type >::result_type >, JDistance_t >, JTOOLS::JSplineFunction< JElement_t, JCollection_t, JResultPDF< typename JResultType< typename JElement_t::ordinate_type >::result_type >, JDistance_t >, JTOOLS::JSplineFunction< JElement_t, JCollection_t, typename JResultType< typename JElement_t::ordinate_type >::result_type, JDistance_t >, JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >, JTOOLS::JSplineMap< JKey_t, JValue_t, JGridMap, JResultDerivative< JResultType< JValue_t >::result_type >, JDistance< JKey_t > >, and JTOOLS::JSplineMap< JKey_t, JValue_t, JMap, JResultDerivative< JResultType< JValue_t >::result_type >, JDistance< JKey_t > >.
|
inlinestaticinherited |
Recursive function value evaluation.
function | function |
pX | pointer to abscissa values |
Definition at line 103 of file JFunctional.hh.
|
inlinestaticinherited |
Termination of recursive function value evaluation.
value | result |
pX | pointer to abscissa values |
Definition at line 117 of file JFunctional.hh.
|
pure virtualinherited |
Get exception handler.
Implemented in JTOOLS::JFunction< JArgument_t, JResult_t >, JTOOLS::JFunction< JElement2D< double, double >::abscissa_type, double >, JTOOLS::JFunction< JElement2D< double, double >::abscissa_type, JResultDerivative< double > >, JTOOLS::JFunction< JElement2D< JAbscissa_t, JContents_t >::abscissa_type, JResultHesse< JResultType< JContents_t >::result_type > >, JTOOLS::JFunction< JElement2D< JAbscissa_t, JOrdinate_t >::abscissa_type, JResult_t >, JTOOLS::JFunction< JElement2D< JArgument_t, JResult_t >::abscissa_type, JResult_t >, JTOOLS::JFunction< JElement2D< JKey_t, JValue_t >::abscissa_type, JResult_t >, JTOOLS::JFunction< JElement2D< JKey_t, JValue_t >::abscissa_type, JResultDerivative< JResultType< JValue_t >::result_type > >, JTOOLS::JFunction< JElement2D< JKey_t, JValue_t >::abscissa_type, JResultHesse< JResultType< JValue_t >::result_type > >, JTOOLS::JFunction< JElement2D< JKey_t, JValue_t >::abscissa_type, JResultType< JValue_t >::result_type >, JTOOLS::JFunction< JElement_t::abscissa_type, JDistance< typename JElement_t::abscissa_type > >, JTOOLS::JFunction< JElement_t::abscissa_type, typename JElement_t::ordinate_type >, JTOOLS::JFunction< JKey_t, JResult_t >, JTOOLS::JFunction< JKey_t, JResultDerivative< JResultType< JValue_t >::result_type > >, JTOOLS::JFunction< JKey_t, JResultType< JValue_t >::result_type >, JTOOLS::JFunction< JPolintElement2S< double, double >::abscissa_type, JResultPDF< double > >, JTOOLS::JFunction< JSplineElement2D< argument_type, data_type >::abscissa_type, result_type >, JTOOLS::JFunction< JSplineElement2D< double, double >::abscissa_type, double >, JTOOLS::JFunction< JSplineElement2D< JAbscissa_t, JOrdinate_t >::abscissa_type, JResult_t >, JTOOLS::JFunction< JSplineElement2S< double, double >::abscissa_type, JResultDerivative< double > >, JTOOLS::JFunction< JSplineElement2S< double, double >::abscissa_type, JResultPDF< double > >, JTOOLS::JFunction< JTOOLS::JElement2D< double, JTDC_t >::abscissa_type, JTDC_t >, and JTOOLS::JFunction< JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::abscissa_type, JOrdinate_t >.
JMultiQuantile_t JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::intensity |
Definition at line 230 of file JCDFTable.hh.
JMultiFunction_t JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::function |
Definition at line 231 of file JCDFTable.hh.
std::shared_ptr<transformer_type> JPHYSICS::JCDFTable< JFunction1D_t, JMaplist_t, JDistance_t >::transformer |
Definition at line 232 of file JCDFTable.hh.