class to contain the cut on svd hit time at SP creation step
More...
#include <SVDHitTimeSelectionFunction.h>
|
typedef bool(SVDHitTimeSelectionFunction::* | selFunction) (double, double, double, double) const |
| typedef of the output calibration function
|
|
|
bool | isInTime (double svdTime, double svdTimeError=0, double t0=0, double t0Error=0) const |
| returns whether the hit came on time or not
|
|
bool | areClustersInTime (double uTime, double vTime) const |
| returns whether the uCluster time is compatible with the vClsuter time
|
|
| SVDHitTimeSelectionFunction () |
| constructor
|
|
void | setFunctionID (int user_current) |
| copy constructor
|
|
int | getFunctionID () const |
| get the function ID (function version)
|
|
void | setMinTime (double tMin) |
| set the minimum cluster time
|
|
float | getMinTime () const |
| returns the minimum cluster time
|
|
void | setDeltaTime (double deltaT) |
| set the minimum time distance wrt t0
|
|
float | getDeltaTime () const |
| returns the minimum time distnace wrt t0
|
|
void | setNsigma (double nSigma) |
| set the nSigma
|
|
float | getNsigma () const |
| returns the minimum cluster time
|
|
void | setMaxUVTimeDifference (double timeDiff) |
| set m_maxUVTimeDifference
|
|
float | getMaxUVTimeDifference () const |
| get m_maxUVTimeDifference
|
|
|
bool | firstVersion (double svdTime, double, double, double) const |
| function parameters & implementations
|
|
bool | secondVersion (double svdTime, double, double t0, double) const |
| SECOND VERSION, ID = 1: isOnTime if |t - t0|< deltaT.
|
|
bool | thirdVersion (double svdTime, double svdTimeError, double t0, double t0Error) const |
| THIRD VERSION, ID = 2: isOnTime if |t - t0|< nSigma*sigma.
|
|
class to contain the cut on svd hit time at SP creation step
Definition at line 23 of file SVDHitTimeSelectionFunction.h.
◆ selFunction
typedef bool(SVDHitTimeSelectionFunction::* selFunction) (double, double, double, double) const |
◆ SVDHitTimeSelectionFunction()
constructor
Definition at line 48 of file SVDHitTimeSelectionFunction.h.
49 {
50
51
56 }
57
62 };
double m_nSigma
number of Sigma
double m_tMin
minimum cluster time
int m_current
current function ID
static std::vector< selFunction > m_implementations
vector of fuctions, we use the m_current
bool secondVersion(double svdTime, double, double t0, double) const
SECOND VERSION, ID = 1: isOnTime if |t - t0|< deltaT.
bool firstVersion(double svdTime, double, double, double) const
function parameters & implementations
bool thirdVersion(double svdTime, double svdTimeError, double t0, double t0Error) const
THIRD VERSION, ID = 2: isOnTime if |t - t0|< nSigma*sigma.
double m_deltaT
minimum time distance wrt t0
◆ areClustersInTime()
bool areClustersInTime |
( |
double |
uTime, |
|
|
double |
vTime |
|
) |
| const |
|
inline |
returns whether the uCluster time is compatible with the vClsuter time
Definition at line 39 of file SVDHitTimeSelectionFunction.h.
40 {
42 return false;
43 return true;
44 }
float m_maxUVTimeDifference
max time difference of U and V clusters
◆ firstVersion()
bool firstVersion |
( |
double |
svdTime, |
|
|
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| const |
|
inlineprivate |
◆ getDeltaTime()
float getDeltaTime |
( |
| ) |
const |
|
inline |
◆ getFunctionID()
int getFunctionID |
( |
| ) |
const |
|
inline |
◆ getMaxUVTimeDifference()
float getMaxUVTimeDifference |
( |
| ) |
const |
|
inline |
◆ getMinTime()
float getMinTime |
( |
| ) |
const |
|
inline |
◆ getNsigma()
float getNsigma |
( |
| ) |
const |
|
inline |
◆ isInTime()
bool isInTime |
( |
double |
svdTime, |
|
|
double |
svdTimeError = 0 , |
|
|
double |
t0 = 0 , |
|
|
double |
t0Error = 0 |
|
) |
| const |
|
inline |
returns whether the hit came on time or not
Definition at line 31 of file SVDHitTimeSelectionFunction.h.
32 {
33
35 return (this->*f)(svdTime, svdTimeError, t0, t0Error) ;
36 }
bool(SVDHitTimeSelectionFunction::* selFunction)(double, double, double, double) const
typedef of the output calibration function
◆ secondVersion()
bool secondVersion |
( |
double |
svdTime, |
|
|
double |
, |
|
|
double |
t0, |
|
|
double |
|
|
) |
| const |
|
inlineprivate |
◆ setDeltaTime()
void setDeltaTime |
( |
double |
deltaT | ) |
|
|
inline |
◆ setFunctionID()
void setFunctionID |
( |
int |
user_current | ) |
|
|
inline |
◆ setMaxUVTimeDifference()
void setMaxUVTimeDifference |
( |
double |
timeDiff | ) |
|
|
inline |
◆ setMinTime()
void setMinTime |
( |
double |
tMin | ) |
|
|
inline |
◆ setNsigma()
void setNsigma |
( |
double |
nSigma | ) |
|
|
inline |
◆ thirdVersion()
bool thirdVersion |
( |
double |
svdTime, |
|
|
double |
svdTimeError, |
|
|
double |
t0, |
|
|
double |
t0Error |
|
) |
| const |
|
inlineprivate |
THIRD VERSION, ID = 2: isOnTime if |t - t0|< nSigma*sigma.
Definition at line 117 of file SVDHitTimeSelectionFunction.h.
118 {
119 float err2 = svdTimeError * svdTimeError + t0Error * t0Error;
121 };
◆ m_current
◆ m_deltaT
◆ m_implementations
◆ m_maxUVTimeDifference
float m_maxUVTimeDifference = 100 |
◆ m_nSigma
◆ m_tMin
The documentation for this class was generated from the following files: