11#include <calibration/CalibrationAlgorithm.h>
99 double N = std::fabs(par[0]);
102 double e = std::fabs(par[3]);
103 return N * TMath::Gaus(x[0], a, b,
true) + e;
120 double N = std::fabs(par[0]);
121 double f = std::fabs(par[1]);
126 double e = std::fabs(par[6]);
127 return (N * (f * TMath::Gaus(x[0], a, b) + (1 - f) * TMath::Gaus(x[0], c, d)) /
128 (TMath::Sqrt(2. * TMath::Pi()) * ((b - d) * f + d)) + e);
EResult
The result of calibration.
CalibrationAlgorithm(const std::string &collectorModuleName)
Constructor - sets the prefix for collected objects (won't be accesses until execute(....
int m_minEntries
Set the minimum number of entries required in the histograms.
SVDClusterAbsoluteTimeShifterAlgorithm(const std::string &str)
Constructor set the prefix to SVDTimeCalibrationCollector.
int m_outerLayer
Outer layer of the SVD.
void setMinEntries(const int &minEntries)
Set the minimum entries required in the histograms.
std::vector< TString > m_timeAlgorithms
Hardcoded list of time algorithms to calibrate.
virtual ~SVDClusterAbsoluteTimeShifterAlgorithm() override
Destructor.
std::string m_id
Parameter given to set the UniqueID of the payload.
std::vector< TString > getTimeAlgorithm()
Get list of time algorithm.
void setTimeAlgorithm(const std::vector< TString > &lst)
Set list of time algorithm.
int m_innerLayer
Inner layer of the SVD.
virtual void boundaryFindingSetup(std::vector< Calibration::ExpRun >, int) override
setup the boundary finding
float getAllowedTimeShift()
Getter for m_allowedTimeShift.
float getMaximumAllowedShift()
Get the maximum allowed deviation of clsOnTracks histo wrt EventT0 histo (m_allowedT0Shift)
float m_maximumAllowedShift
Allowed deviation of clsOnTracks histo wrt EventT0 histo.
virtual EResult calibrate() override
Run algo on data.
std::optional< float > m_previousTimeMeanL3V
Cluster time of the previous run.
virtual bool isBoundaryRequired(const Calibration::ExpRun ¤tRun) override
If the event T0 changes significantly return true.
void setMaximumAllowedShift(const float &value)
Setter for m_allowedT0Shift.
void setAllowedTimeShift(float value)
Setter for m_allowedTimeShift.
int getMinEntries()
Get the minimum entries required in the histograms.
float m_allowedTimeShift
Allowed Raw CoGshift.
double AbsdoubleGaus(const double *x, const double *par)
Double gauss function, where N is a normalization constant, f is the fractional contribution of the f...
double AbssingleGaus(const double *x, const double *par)
Single gauss function, where N is a normalization constant, a is the mean of the Gauss distribution,...
Abstract base class for different kinds of events.