Belle II Software development
OnlineEventT0.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 <framework/gearbox/Const.h>
12#include <TObject.h>
13#include <cmath>
14
15namespace Belle2 {
20
25 class OnlineEventT0 : public TObject {
26
27 public:
28
31
37 OnlineEventT0(float eventT0, float eventT0Uncertainty, const Const::DetectorSet& detector)
38 : m_eventT0(eventT0)
39 , m_eventT0Uncertainty(eventT0Uncertainty)
40 , m_detector(detector)
41 {}
42
44 float getOnlineEventT0() const {return m_eventT0;}
45
48
51
52 private:
53
55 float m_eventT0 = NAN;
56
59
62
63 ClassDef(OnlineEventT0, 1)
64 };
65
66}
The DetectorSet class for sets of detector IDs in the form of EDetector values.
Definition Const.h:80
Const::DetectorSet m_detector
Storage of the detector, who has determined the event T0.
float getOnlineEventT0() const
Return the online event t0.
float m_eventT0Uncertainty
Storage of the uncertainty of the online T0 estimation.
Const::DetectorSet getOnlineEventT0Detector()
Return the online event t0 detector.
OnlineEventT0()
default constructor
OnlineEventT0(float eventT0, float eventT0Uncertainty, const Const::DetectorSet &detector)
Constructor.
float m_eventT0
Storage of the online T0 estimation.
float getOnlineEventT0Uncertainty() const
Return the online event t0 uncertainty.
Abstract base class for different kinds of events.