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