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, JGandalf > Struct Reference

#include <JPoint4DRegressor.hh>

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

Public Types

typedef JGandalf< JPoint4Dminimiser_type
 
typedef JRegressor< JPoint4D, JGandalfregressor_type
 
typedef minimiser_type::result_type result_type
 

Public Member Functions

 JRegressor (double sigma)
 Constructor.
 
template<class JHit_t >
result_type 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

Definition at line 67 of file JPoint4DRegressor.hh.

Member Typedef Documentation

◆ minimiser_type

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

Definition at line 80 of file JRegressor.hh.

◆ regressor_type

typedef JRegressor<JPoint4D , JGandalf > JFIT::JAbstractRegressor< JPoint4D , JGandalf >::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, JGandalf >::JRegressor ( double sigma)
inline

Constructor.

Definition at line 75 of file JPoint4DRegressor.hh.

76 {
77 this->sigma = sigma;
78 }

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 89 of file JPoint4DRegressor.hh.

90 {
91 using namespace JPP;
92
93 const double dt = hit.getT() - vx.getT(hit.getPosition());
94
95 const double u = dt / sigma;
96 result_type result;
97 result.chi2 = estimator->getRho(u) * hit.getW();
98
99 JVector3D d = hit.getPosition() - vx.getPosition();
100
101 double weight = getIndexOfRefraction() * getInverseSpeedOfLight()/(d.getLength() * sigma);
102
103 result.gradient = hit.getW() * JPoint4D( d * weight,
104 -1/sigma);
105 result.gradient.mul(0.5 * estimator->getPsi(u));
106
107 return result;
108 }
Data structure for vertex fit.
Definition JPoint4D.hh:24
minimiser_type::result_type result_type
Definition JRegressor.hh:82
JLANG::JSharedPointer< JMEstimator > estimator
M-Estimator function.

◆ operator()() [2/2]

result_type JFIT::JAbstractRegressor< JPoint4D , JGandalf >::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, JGandalf >::estimator

M-Estimator function.

Definition at line 110 of file JPoint4DRegressor.hh.

◆ sigma

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

Time resolution [ns].

Definition at line 111 of file JPoint4DRegressor.hh.


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