Belle II Software development
TOPCalFillPatternOffset.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
13namespace Belle2 {
22 class TOPCalFillPatternOffset: public TObject {
23
24 public:
25
30 {}
31
37 void set(int offset, double fraction = 0)
38 {
39 m_offset = offset;
40 m_fraction = fraction;
41 m_calibrated = true;
42 }
43
47 void setUnusable() {m_calibrated = false;}
48
53 int get() const {return m_offset;}
54
59 double getFraction() const {return m_fraction;}
60
65 bool isCalibrated() const {return m_calibrated;}
66
67 private:
68
69 int m_offset = 0;
70 float m_fraction = 0;
71 bool m_calibrated = false;
75 };
76
78}
79
80
Class to store the offset of reconstructed fill pattern.
float m_fraction
fraction of reconstructed buckets matched with filled ones
void set(int offset, double fraction=0)
Setter.
TOPCalFillPatternOffset()
Default constructor.
int get() const
Getter for offset.
ClassDef(TOPCalFillPatternOffset, 2)
ClassDef.
void setUnusable()
Switch calibration status to uncalibrated.
double getFraction() const
Getter for fraction.
bool isCalibrated() const
Is calibrated?
Abstract base class for different kinds of events.