Belle II Software development
TRGTOPWaveFormTimeStamp.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/datastore/RelationsObject.h>
12
13namespace Belle2 {
18
20 class TRGTOPWaveFormTimeStamp : public RelationsObject {
21
22 public:
23
24 // Empty constructor
25 // Recommended for ROOT IO
26 TRGTOPWaveFormTimeStamp() :
28 {}
29
32 int timeStamp
33 ) :
34 m_timeStamp(timeStamp)
35 {}
36
39 int timeStamp,
40 int slot
41 ) :
42 m_timeStamp(timeStamp),
43 m_slot(slot)
44 {}
45
46
49
50 int getTimeStamp() const { return m_timeStamp; }
51 int getSlot() const { return m_slot; }
52
53 void setTimeStamp(int timeStamp);
54 void setSlot(int slot);
55
56 bool isEmptyClockCycle() const;
57 bool isValid() const;
58
59 private:
60
64 int m_slot;
65
66 ClassDef(TRGTOPWaveFormTimeStamp, 15);
67
68 };
69
71} //end namespace Belle2
int m_timeStamp
timestamp value in 1/8 of FTSW clock cycle (conventional "2ns")
TRGTOPWaveFormTimeStamp(int timeStamp)
A Useful Constructor.
TRGTOPWaveFormTimeStamp(int timeStamp, int slot)
Another Useful Constructor.
int m_slot
slot number (1 through 16)
ClassDef(TRGTOPWaveFormTimeStamp, 15)
ClassDef.
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.