Belle II Software  release-08-01-10
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 
15 namespace Belle2 {
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 
58  float m_eventT0Uncertainty = NAN;
59 
62 
63  ClassDef(OnlineEventT0, 1)
64  };
66 }
The DetectorSet class for sets of detector IDs in the form of EDetector values.
Definition: Const.h:71
Storage element for the eventwise T0 estimation computed on HLT.
Definition: OnlineEventT0.h:25
Const::DetectorSet m_detector
Storage of the detector, who has determined the event T0.
Definition: OnlineEventT0.h:61
float getOnlineEventT0() const
Return the online event t0.
Definition: OnlineEventT0.h:44
float m_eventT0Uncertainty
Storage of the uncertainty of the online T0 estimation.
Definition: OnlineEventT0.h:58
Const::DetectorSet getOnlineEventT0Detector()
Return the online event t0 detector.
Definition: OnlineEventT0.h:50
OnlineEventT0()
default constructor
Definition: OnlineEventT0.h:30
OnlineEventT0(float eventT0, float eventT0Uncertainty, const Const::DetectorSet &detector)
Constructor.
Definition: OnlineEventT0.h:37
float m_eventT0
Storage of the online T0 estimation.
Definition: OnlineEventT0.h:55
float getOnlineEventT0Uncertainty() const
Return the online event t0 uncertainty.
Definition: OnlineEventT0.h:47
Abstract base class for different kinds of events.