Belle II Software development
SVDTimeValidationAlgorithm.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <calibration/CalibrationAlgorithm.h>
12
13#include <optional>
14
15namespace Belle2 {
24 public:
25
28
31
33 void setAllowedTimeShift(float value) {m_allowedDeviationMean = value;}
34
37
39 void setMinEntries(int minEntries) {m_minEntries = minEntries;}
40
43
44 protected:
45
47 virtual EResult calibrate() override;
48
49
50 private:
51
52 std::string m_id = "";
53 std::optional<float> m_previousRawTimeMeanL3V;
56 float m_minEntries = 10000;
57 };
59} // namespace Belle2
Base class for calibration algorithms.
EResult
The result of calibration.
Class implementing SVDTimeValidation algorithm.
void setMinEntries(int minEntries)
Set the minimum entries required in the histograms.
std::string m_id
Parameter given to set the UniqueID of the payload.
std::optional< float > m_previousRawTimeMeanL3V
CoG time mean of the previous run for V side of layer 3.
float getAllowedTimeShift()
Getter for m_allowedT0Shift.
float m_allowedDeviationMean
Allowed deviation of clsOnTracks histo wrt EventT0 histo in number of EventT0 RMS.
SVDTimeValidationAlgorithm()
Constructor set the prefix to SVDTimeCalibrationCollector.
float m_minEntries
Set the minimun number of entries required in the histograms of layer 3.
virtual EResult calibrate() override
Run algo on data.
void setAllowedTimeShift(float value)
Setter for m_allowedT0Shift.
int getMinEntries()
Get the minimum entries required in the histograms.
Abstract base class for different kinds of events.