 |
Belle II Software
release-05-02-19
|
25 class SVDHitTimeSelectionFunction :
public TObject {
33 bool isInTime(
double svdTime,
double svdTimeError = 0,
double t0 = 0 ,
double t0Error = 0)
const
36 return (this->*f)(svdTime, svdTimeError, t0, t0Error) ;
109 bool secondVersion(
double svdTime,
double ,
double t0,
double )
const
111 return fabs(svdTime - t0) <
m_deltaT;
117 bool thirdVersion(
double svdTime,
double svdTimeError,
double t0,
double t0Error)
const
119 float err2 = svdTimeError * svdTimeError + t0Error * t0Error;
void setFunctionID(int user_current)
copy constructor
int m_current
current function ID
float getMinTime() const
returns the minimum cluster time
float getDeltaTime() const
returns the minimum time distnace wrt t0
bool areClustersInTime(double uTime, double vTime) const
returns whether the uCluster time is compatible with the vClsuter time
bool(SVDHitTimeSelectionFunction::* selFunction)(double, double, double, double) const
typedef of the output calibration function
bool firstVersion(double svdTime, double, double, double) const
function parameters & implementations
void setDeltaTime(double deltaT)
set the minimum time distance wrt t0
void setMaxUVTimeDifference(double timeDiff)
set m_maxUVTimeDifference
double m_deltaT
minimum time distance wrt t0
bool thirdVersion(double svdTime, double svdTimeError, double t0, double t0Error) const
THIRD VERSION, ID = 2: isOnTime if |t - t0|< nSigma*sigma.
float getMaxUVTimeDifference() const
get m_maxUVTimeDifference
double m_nSigma
number of Sigma
Abstract base class for different kinds of events.
class to contain the cut on svd hit time at SP creation step
void setMinTime(double tMin)
set the minimum cluster time
SVDHitTimeSelectionFunction()
constructor
float getNsigma() const
returns the minimum cluster time
static std::vector< selFunction > m_implementations
vector of fuctions, we use the m_current
double m_tMin
minimum cluster time
bool isInTime(double svdTime, double svdTimeError=0, double t0=0, double t0Error=0) const
returns whether the hit came on time or not
float m_maxUVTimeDifference
max time difference of U and V clusters
bool secondVersion(double svdTime, double, double t0, double) const
SECOND VERSION, ID = 1: isOnTime if |t - t0|< deltaT.
void setNsigma(double nSigma)
set the nSigma
int getFunctionID() const
get the function ID (function version)