31 bool isInTime(
double svdTime,
double svdTimeError = 0,
double t0 = 0,
double t0Error = 0)
const
35 return (this->*f)(svdTime, svdTimeError, t0, t0Error) ;
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;
class to contain the cut on svd hit time at SP creation step
void setFunctionID(int user_current)
copy constructor
float getDeltaTime() const
returns the minimum time distnace wrt t0
double m_nSigma
number of Sigma
void setMinTime(double tMin)
set the minimum cluster time
double m_tMin
minimum cluster time
float getMinTime() const
returns the minimum cluster time
SVDHitTimeSelectionFunction()
constructor
int m_current
current function ID
bool(SVDHitTimeSelectionFunction::* selFunction)(double, double, double, double) const
typedef of the output calibration function
static std::vector< selFunction > m_implementations
vector of fuctions, we use the m_current
bool isInTime(double svdTime, double svdTimeError=0, double t0=0, double t0Error=0) const
returns whether the hit came on time or not
void setMaxUVTimeDifference(double timeDiff)
set m_maxUVTimeDifference
bool areClustersInTime(double uTime, double vTime) const
returns whether the uCluster time is compatible with the vClsuter time
void setNsigma(double nSigma)
set the nSigma
float m_maxUVTimeDifference
max time difference of U and V clusters
void setDeltaTime(double deltaT)
set the minimum time distance wrt t0
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
float getNsigma() const
returns the minimum cluster time
float getMaxUVTimeDifference() const
get m_maxUVTimeDifference
bool thirdVersion(double svdTime, double svdTimeError, double t0, double t0Error) const
THIRD VERSION, ID = 2: isOnTime if |t - t0|< nSigma*sigma.
int getFunctionID() const
get the function ID (function version)
double m_deltaT
minimum time distance wrt t0
Abstract base class for different kinds of events.