Belle II Software development
TOPCalPrecision.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 <TObject.h>
12#include <TProfile.h>
13#include <vector>
14
15namespace Belle2 {
20
24 class TOPCalPrecision: public TObject {
25 public:
26
32
37 void set(const TProfile* pf);
38
44 double get(int moduleID) const;
45
50 const std::vector<float>& getConstants() const {return m_precisions;}
51
56 bool isCalibrated() const {return !m_precisions.empty();}
57
58 private:
59
60 std::vector<float> m_precisions;
61
63
64 };
65
67} // end namespace Belle2
TOPCalPrecision()
Default constructor.
const std::vector< float > & getConstants() const
Returns a vector of calibration constants.
bool isCalibrated() const
Returns calibration status.
std::vector< float > m_precisions
time calibration precisions (index = slot - 1)
ClassDef(TOPCalPrecision, 1)
ClassDef.
double get(int moduleID) const
Getter.
void set(const TProfile *pf)
Setter.
Abstract base class for different kinds of events.