Jpp 20.0.0-rc.9-29-gccc23c492-D
the software that should make you happy
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
JFIT::JRegressor< JPoint4D, JSimplex > Struct Reference

Regressor function object for JPoint4D fit using JSimplex minimiser. More...

#include <JPoint4DRegressor.hh>

Inheritance diagram for JFIT::JRegressor< JPoint4D, JSimplex >:
JFIT::JAbstractRegressor< JPoint4D, JSimplex >

Public Types

typedef JSimplex< JPoint4Dminimiser_type
 
typedef JRegressor< JPoint4D, JSimplexregressor_type
 
typedef minimiser_type::result_type result_type
 

Public Member Functions

 JRegressor (double sigma)
 Constructor.
 
template<class JHit_t >
double operator() (const JPoint4D &vx, const JHit_t &hit) const
 
result_type operator() (const JPoint4D &value, T __begin, T __end)
 Global fit.
 

Public Attributes

JLANG::JSharedPointer< JMEstimatorestimator
 M-Estimator function

 
double sigma
 Time resolution [ns].
 

Detailed Description

Regressor function object for JPoint4D fit using JSimplex minimiser.

Definition at line 30 of file JPoint4DRegressor.hh.

Member Typedef Documentation

◆ minimiser_type

typedef JSimplex <JPoint4D > JFIT::JAbstractRegressor< JPoint4D , JSimplex >::minimiser_type
inherited

Definition at line 80 of file JRegressor.hh.

◆ regressor_type

typedef JRegressor<JPoint4D , JSimplex > JFIT::JAbstractRegressor< JPoint4D , JSimplex >::regressor_type
inherited

Definition at line 81 of file JRegressor.hh.

◆ result_type

Definition at line 82 of file JRegressor.hh.

Constructor & Destructor Documentation

◆ JRegressor()

JFIT::JRegressor< JPoint4D, JSimplex >::JRegressor ( double sigma)
inline

Constructor.

Definition at line 38 of file JPoint4DRegressor.hh.

39 {
40 this->sigma = sigma;
41 }

Member Function Documentation

◆ operator()() [1/2]

template<class JHit_t >
double JFIT::JRegressor< JPoint4D, JSimplex >::operator() ( const JPoint4D & vx,
const JHit_t & hit ) const
inline

Definition at line 52 of file JPoint4DRegressor.hh.

53 {
54 using namespace JPP;
55
56 const double dt = hit.getT() - vx.getT(hit.getPosition());
57
58 const double u = dt / sigma;
59
60 return estimator->getRho(u) * hit.getW();
61 }
JLANG::JSharedPointer< JMEstimator > estimator
M-Estimator function

◆ operator()() [2/2]

result_type JFIT::JAbstractRegressor< JPoint4D , JSimplex >::operator() ( const JPoint4D & value,
T __begin,
T __end )
inlineinherited

Global fit.

Parameters
valuestart value
__beginbegin of data set
__endend of data set
Returns
chi2

Definition at line 94 of file JRegressor.hh.

Member Data Documentation

◆ estimator

JLANG::JSharedPointer<JMEstimator> JFIT::JRegressor< JPoint4D, JSimplex >::estimator

M-Estimator function

Definition at line 63 of file JPoint4DRegressor.hh.

◆ sigma

double JFIT::JRegressor< JPoint4D, JSimplex >::sigma

Time resolution [ns].

Definition at line 64 of file JPoint4DRegressor.hh.


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