10#include <calibration/CalibrationAlgorithm.h>
Base class for calibration algorithms.
EResult
The result of calibration.
Test class implementing calibration algorithm.
int m_minEntries
Set when c_NotEnoughData will be returned.
virtual ~TestCalibrationAlgorithm()
Destructor.
void setMinEntries(int minEntries)
setter for m_minEntries
void setForceFail(bool forceFail)
setter for m_willFail
void setAllowedMeanShift(float value)
Setter for m_allowedMeanShift.
bool getForceFail()
getter for m_willFail
void setDebugHisto(bool debugHisto)
setter for m_debugHisto
virtual void boundaryFindingSetup(std::vector< Calibration::ExpRun >, int) override
Start boundary finding mode, we simply set the previous mean to be a silly amount.
int m_debugHisto
Set if a debugging histogram should be created in the algorithm output directory.
int m_forceFail
Force always fail for testing.
std::optional< float > m_previousMean
During isBoundaryRequired this is used to define the previous run's mean.
virtual EResult calibrate() override
Run algo on data.
float m_allowedMeanShift
Configurable parameter for deciding when to choose a new payload boundary (if used)
float getAllowedMeanShift()
Getter for m_allowedMeanShift.
virtual bool isBoundaryRequired(const Calibration::ExpRun ¤tRun) override
Decide if a run should be a payload boundary. Only used in certain Python Algorithm Starategies.
void createDebugHistogram()
Perform debug histogram file creation.
TestCalibrationAlgorithm()
Constructor set the prefix to TestCalibration.
int getMinEntries()
getter for m_minEntries
Abstract base class for different kinds of events.