Belle II Software development
KLMTimeConversion.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/* ROOT headers. */
12#include <TObject.h>
13
14namespace Belle2 {
23 class KLMTimeConversion : public TObject {
24
25 public:
26
31 {
32 }
33
38 {
39 }
40
44 double getTimeOffset() const
45 {
46 return m_TimeOffset;
47 }
48
53 void setTimeOffset(double offset)
54 {
55 m_TimeOffset = offset;
56 }
57
61 int getCTimeShift() const
62 {
63 return m_CTimeShift;
64 }
65
70 void setCTimeShift(int shift)
71 {
72 m_CTimeShift = shift;
73 }
74
75 private:
76
78 double m_TimeOffset = 0.0;
79
81 int m_CTimeShift = 0;
82
85
86 };
87
89}
KLM time conversion.
ClassDef(KLMTimeConversion, 2)
Class version,.
void setTimeOffset(double offset)
Set time offset.
double getTimeOffset() const
Get time offset.
int getCTimeShift() const
Get CTIME shift.
void setCTimeShift(int shift)
Set CTIME shift.
int m_CTimeShift
CTIME shift in bits.
double m_TimeOffset
Time offset.
Abstract base class for different kinds of events.