 |
Belle II Software
release-05-02-19
|
12 #include <calibration/CalibrationAlgorithm.h>
13 #include <framework/database/DBObjPtr.h>
14 #include <calibration/dbobjects/TestCalibMean.h>
24 class TestDBAccessAlgorithm :
public CalibrationAlgorithm {
32 void setGeneratePayloads(
const bool& value) {m_generatePayloads = value;}
33 bool getGeneratePayloads()
const {
return m_generatePayloads;}
43 void generateNewPayloads();
45 bool m_generatePayloads =
true;
virtual ~TestDBAccessAlgorithm()
Destructor.
virtual EResult calibrate() override
Run algo on data.
Class for accessing objects in the database.
void saveSameMeans()
Saves the same DB values for each run into a new localdb, otherwise we aren't creating a DB this iter...
Abstract base class for different kinds of events.
EResult
The result of calibration.
float getAverageDistanceFromAnswer()
Grabs DBObjects from the Database and finds out the average distance from 42.
void reduceDistancesAndSave()
Saves new DB values for each run where they are a little closer to 42.
TestDBAccessAlgorithm()
Constructor set the prefix to TestCalibration.