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 | Static Public Member Functions | Protected Attributes | List of all members
JFIT::JModel< JPoint4D > Struct Reference

Template specialisation of class JModel to match hit with bright point. More...

#include <JModel.hh>

Inheritance diagram for JFIT::JModel< JPoint4D >:
JFIT::JPoint4D

Public Types

typedef double JPoint4D::* parameter_type
 

Public Member Functions

 JModel (const JPoint4D &point, const double Dmax_m, const JTimeRange &compare)
 Constructor.
 
template<class JHit_t >
bool operator() (const JHit_t &hit) const
 Test compatibility of given hit with bright point.
 

Static Public Member Functions

static parameter_type pX ()
 
static parameter_type pY ()
 
static parameter_type pZ ()
 
static parameter_type pT ()
 

Protected Attributes

double Dmax_m
 
JTimeRange compare
 

Detailed Description

Template specialisation of class JModel to match hit with bright point.

Definition at line 121 of file JFit/JModel.hh.

Member Typedef Documentation

◆ parameter_type

typedef double JPoint4D::* JFIT::JPoint4D::parameter_type
inherited

Definition at line 56 of file JPoint4D.hh.

Constructor & Destructor Documentation

◆ JModel()

JFIT::JModel< JPoint4D >::JModel ( const JPoint4D & point,
const double Dmax_m,
const JTimeRange & compare )
inline

Constructor.

Parameters
pointbright point
Dmax_mmaximal distance of approach [m]
comparetime window [ns]

Definition at line 131 of file JFit/JModel.hh.

133 :
134 JPoint4D(point)
135 {
136 this->Dmax_m = Dmax_m;
137 this->compare = compare;
138 }
JPoint4D()
Default constructor.
Definition JPoint4D.hh:29

Member Function Documentation

◆ operator()()

template<class JHit_t >
bool JFIT::JModel< JPoint4D >::operator() ( const JHit_t & hit) const
inline

Test compatibility of given hit with bright point.

Parameters
hithit
Returns
true if compatible; else false

Definition at line 148 of file JFit/JModel.hh.

149 {
150 if (this->getDistance(hit) <= Dmax_m) {
151 return compare(hit.getT() - this->getT(hit));
152 }
153
154 return false;
155 }

◆ pX()

static parameter_type JFIT::JPoint4D::pX ( )
inlinestaticinherited

Definition at line 58 of file JPoint4D.hh.

58{ return &JPoint4D::__x; }

◆ pY()

static parameter_type JFIT::JPoint4D::pY ( )
inlinestaticinherited

Definition at line 59 of file JPoint4D.hh.

59{ return &JPoint4D::__y; }

◆ pZ()

static parameter_type JFIT::JPoint4D::pZ ( )
inlinestaticinherited

Definition at line 60 of file JPoint4D.hh.

60{ return &JPoint4D::__z; }

◆ pT()

static parameter_type JFIT::JPoint4D::pT ( )
inlinestaticinherited

Definition at line 61 of file JPoint4D.hh.

61{ return &JPoint4D::__t; }

Member Data Documentation

◆ Dmax_m

double JFIT::JModel< JPoint4D >::Dmax_m
protected

Definition at line 158 of file JFit/JModel.hh.

◆ compare

JTimeRange JFIT::JModel< JPoint4D >::compare
protected

Definition at line 159 of file JFit/JModel.hh.


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