11#include <calibration/CalibrationAlgorithm.h>
65 inline double singleGaus(
const double* x,
const double* par)
67 double N = std::fabs(par[0]);
70 double e = std::fabs(par[3]);
71 return N * TMath::Gaus(x[0], a, b,
true) + e;
86 inline double doubleGaus(
const double* x,
const double* par)
88 double N = std::fabs(par[0]);
89 double f = std::fabs(par[1]);
94 double e = std::fabs(par[6]);
95 return (N * (f * TMath::Gaus(x[0], a, b) + (1 - f) * TMath::Gaus(x[0], c, d)) /
96 (TMath::Sqrt(2. * TMath::Pi()) * ((b - d) * f + d)) + e);
Base class for calibration algorithms.
EResult
The result of calibration.
Class implementing SVDClusterTimeShifter algorithm.
int m_minEntries
Set the minimun number of entries required in the histograms.
void setMinEntries(const int &minEntries)
Set the minimum entries required in the histograms.
virtual ~SVDClusterTimeShifterAlgorithm()
Destructor.
std::vector< TString > m_timeAlgorithms
List of time algorithms to calibrate.
std::string m_id
Parameter given to set the UniqueID of the payload.
void setTimeAlgorithm(const std::vector< TString > &lst)
set list of time algorithm
float m_maximumAllowedShift
Allowed deviation of clsOnTracks histo wrt EventT0 histo.
virtual EResult calibrate() override
Run algo on data.
void setMaximumAllowedShift(const float &value)
Setter for m_allowedT0Shift.
double singleGaus(const double *x, const double *par)
Single gaus function, where N is a normalization constant, a is the mean of the Gaus distribution,...
double doubleGaus(const double *x, const double *par)
Double gaus function, where N is a normalization constant, f is the fractional contribution of the fi...
Abstract base class for different kinds of events.