Jpp master_rocky-44-g75b7c4f75
the software that should make you happy
Loading...
Searching...
No Matches
JDETECTOR::getTransitionTime Struct Referenceabstract

#include <JPMTTransitTimeGenerator.hh>

Inheritance diagram for JDETECTOR::getTransitionTime:
JDETECTOR::JTransitionTimeGenerator JDETECTOR::JTransitionTimeGenerator_t JTOOLS::JGridHermiteSplineFunction1D_t JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double > JTOOLS::JHermiteSplineFunction< JElement_t, JCollection_t, JResult_t, JDistance_t > JTOOLS::JFunction1D< JSplineElement2D< double, double >::abscissa_type, double > JTOOLS::JFunctional< JSplineElement2D< double, double >::abscissa_type, double >

Public Types

typedef JHermiteSplineCollection< JSplineElement2D< double, double >, JGridCollection, JDistance< typename JSplineElement2D< double, double >::abscissa_type > > collection_type
 
typedef collection_type::abscissa_type abscissa_type
 
typedef collection_type::ordinate_type ordinate_type
 
typedef collection_type::value_type value_type
 
typedef collection_type::distance_type distance_type
 
typedef collection_type::const_iterator const_iterator
 
typedef collection_type::const_reverse_iterator const_reverse_iterator
 
typedef collection_type::iterator iterator
 
typedef collection_type::reverse_iterator reverse_iterator
 
typedef JFunction1D< abscissa_type, double > function_type
 
typedef function_type::argument_type argument_type
 
typedef function_type::result_type result_type
 
typedef function_type::JExceptionHandler exceptionhandler_type
 
enum  
 
typedef JFunctional< JSplineElement2D< double, double >::abscissa_type, double > functional_type
 
typedef JSupervisor supervisor_type
 

Public Member Functions

double operator() (const double x, const int option) const
 Get transit time for given random value according given option.
 
double getProbability (const double t_ns) const
 Get integrated probablity from $-\infty$ to given time.
 
result_type operator() (const argument_type x) const
 Function value evaluation.
 
virtual result_type evaluate (const argument_type *pX) const=0
 Recursive function value evaluation.
 
JSupervisor getSupervisor () const
 Get supervisor.
 
const JExceptionHandler & getExceptionHandler () const
 Get exception handler.
 
void setExceptionHandler (const JSupervisor &supervisor)
 Set the supervisor for handling of exceptions.
 

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

const JTransitionTimeGenerator38 p38
 
const JTransitionTimeGenerator41 p41
 
const JTransitionTimeGenerator67 p67
 

Protected Attributes

JSupervisor supervisor
 

Detailed Description

Definition at line 4153 of file JPMTTransitTimeGenerator.hh.

Member Typedef Documentation

◆ collection_type

JHermiteSplineCollection<JSplineElement2D< double, double >, JGridCollection, JDistance<typename JSplineElement2D< double, double >::abscissa_type>> JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::collection_type
inherited

Definition at line 588 of file JHermiteSpline.hh.

◆ abscissa_type

collection_type::abscissa_type JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::abscissa_type
inherited

Definition at line 590 of file JHermiteSpline.hh.

◆ ordinate_type

collection_type::ordinate_type JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::ordinate_type
inherited

Definition at line 591 of file JHermiteSpline.hh.

◆ value_type

collection_type::value_type JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::value_type
inherited

Definition at line 592 of file JHermiteSpline.hh.

◆ distance_type

collection_type::distance_type JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::distance_type
inherited

Definition at line 593 of file JHermiteSpline.hh.

◆ const_iterator

collection_type::const_iterator JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::const_iterator
inherited

Definition at line 595 of file JHermiteSpline.hh.

◆ const_reverse_iterator

collection_type::const_reverse_iterator JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::const_reverse_iterator
inherited

Definition at line 596 of file JHermiteSpline.hh.

◆ iterator

collection_type::iterator JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::iterator
inherited

Definition at line 597 of file JHermiteSpline.hh.

◆ reverse_iterator

collection_type::reverse_iterator JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::reverse_iterator
inherited

Definition at line 598 of file JHermiteSpline.hh.

◆ function_type

JFunction1D<abscissa_type, double> JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::function_type
inherited

Definition at line 600 of file JHermiteSpline.hh.

◆ argument_type

function_type::argument_type JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::argument_type
inherited

Definition at line 602 of file JHermiteSpline.hh.

◆ result_type

function_type::result_type JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::result_type
inherited

Definition at line 603 of file JHermiteSpline.hh.

◆ exceptionhandler_type

function_type::JExceptionHandler JTOOLS::JHermiteSplineFunction1D< JSplineElement2D< double, double >, JGridCollection, double, JDistance<typename JSplineElement2D< double, double >::abscissa_type> >::exceptionhandler_type
inherited

Definition at line 604 of file JHermiteSpline.hh.

◆ functional_type

JFunctional<JSplineElement2D< double, double >::abscissa_type, double> JTOOLS::JFunction1D< JSplineElement2D< double, double >::abscissa_type, double >::functional_type
inherited

Definition at line 337 of file JFunctional.hh.

◆ supervisor_type

JSupervisor JTOOLS::JFunctional< JSplineElement2D< double, double >::abscissa_type, double >::supervisor_type
inherited

Definition at line 89 of file JFunctional.hh.

Member Enumeration Documentation

◆ anonymous enum

Member Function Documentation

◆ operator()() [1/2]

double JDETECTOR::getTransitionTime::operator() ( const double x,
const int option ) const
inline

Get transit time for given random value according given option.

The option corresponds to the detector identifier of the measurement.

Parameters
xrandom value <0,1]
optionoption
Returns
transit time [ns]

Definition at line 4167 of file JPMTTransitTimeGenerator.hh.

4168 {
4169 switch (option) {
4170 case 38:
4171 return p38(x);
4172
4173 case 41:
4174 return p41(x);
4175
4176 case 67:
4177 return p67(x);
4178
4179 case 1:
4180 return (*this)(x);
4181
4182 default:
4183 return (*this)(x);
4184 };
4185 }
const JTransitionTimeGenerator38 p38
const JTransitionTimeGenerator67 p67
const JTransitionTimeGenerator41 p41

◆ getProbability()

double JDETECTOR::JTransitionTimeGenerator_t::getProbability ( const double t_ns) const
inlineinherited

Get integrated probablity from $-\infty$ to given time.

Parameters
t_nstime [ns]
Returns
probability

Definition at line 37 of file JPMTTransitTimeGenerator.hh.

38 {
39 using namespace std;
40 using namespace JPP;
41
42 const_iterator p = std::lower_bound(this->begin(),
43 this->end(),
44 t_ns,
45 make_comparator(&value_type::getY, JComparison::lt()));
46
47 if (p == this->end())
48 return 1.0;
49 else if (p == this->begin())
50 return 0.0;
51 else
52 return p->getX();
53 }
JComparator< JResult_t T::*, JComparison::lt > make_comparator(JResult_t T::*member)
Helper method to create comparator between values of data member.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).

◆ operator()() [2/2]

result_type JTOOLS::JFunction1D< JSplineElement2D< double, double >::abscissa_type, double >::operator() ( const argument_type x) const
inlineinherited

Function value evaluation.

Parameters
xargument value
Returns
function value

Definition at line 348 of file JFunctional.hh.

349 {
350 return this->evaluate(&x);
351 }
virtual result_type evaluate(const argument_type *pX) const=0

◆ evaluate()

virtual result_type JTOOLS::JFunctional< JSplineElement2D< double, double >::abscissa_type, double >::evaluate ( const argument_type * pX) const
pure virtualinherited

Recursive function value evaluation.

Parameters
pXpointer to abscissa values
Returns
function value

◆ getValue() [1/2]

static result_type JTOOLS::JFunctional< JSplineElement2D< double, double >::abscissa_type, double >::getValue ( const JFunctional< JSplineElement2D< double, double >::abscissa_type, double > & function,
const argument_type * pX )
inlinestaticinherited

Recursive function value evaluation.

Parameters
functionfunction
pXpointer to abscissa values

Definition at line 107 of file JFunctional.hh.

109 {
110 return function.evaluate(pX);
111 }

◆ getValue() [2/2]

static JClass< result_type >::argument_type JTOOLS::JFunctional< JSplineElement2D< double, double >::abscissa_type, double >::getValue ( typename JClass< result_type >::argument_type value,
const argument_type * pX )
inlinestaticinherited

Termination of recursive function value evaluation.

Parameters
valueresult
pXpointer to abscissa values

Definition at line 121 of file JFunctional.hh.

123 {
124 return value;
125 }

◆ getSupervisor()

JSupervisor JTOOLS::JFunctional< JSplineElement2D< double, double >::abscissa_type, double >::getSupervisor ( ) const
inlineinherited

Get supervisor.

Returns
supervisor

Definition at line 281 of file JFunctional.hh.

◆ getExceptionHandler()

const JExceptionHandler & JTOOLS::JFunctional< JSplineElement2D< double, double >::abscissa_type, double >::getExceptionHandler ( ) const
inlineinherited

Get exception handler.

Returns
exception handler

Definition at line 292 of file JFunctional.hh.

293 {
294 return *supervisor;
295 }

◆ setExceptionHandler()

void JTOOLS::JFunctional< JSplineElement2D< double, double >::abscissa_type, double >::setExceptionHandler ( const JSupervisor & supervisor)
inlineinherited

Set the supervisor for handling of exceptions.

Parameters
supervisorsupervisor

Definition at line 303 of file JFunctional.hh.

304 {
305 this->supervisor = supervisor;
306 }

Member Data Documentation

◆ p38

const JTransitionTimeGenerator38 JDETECTOR::getTransitionTime::p38

Definition at line 4187 of file JPMTTransitTimeGenerator.hh.

◆ p41

const JTransitionTimeGenerator41 JDETECTOR::getTransitionTime::p41

Definition at line 4188 of file JPMTTransitTimeGenerator.hh.

◆ p67

const JTransitionTimeGenerator67 JDETECTOR::getTransitionTime::p67

Definition at line 4189 of file JPMTTransitTimeGenerator.hh.

◆ supervisor

JSupervisor JTOOLS::JFunctional< JSplineElement2D< double, double >::abscissa_type, double >::supervisor
protectedinherited

Definition at line 310 of file JFunctional.hh.


The documentation for this struct was generated from the following file: