Belle II Software development
TRGTOPTimeStamp.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 TRGTOPTimeStamp : public RelationsObject {
21
22 public:
23
24 // Empty constructor
25 // Recommended for ROOT IO
26 TRGTOPTimeStamp() :
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 private:
57
61 int m_slot;
62
63 ClassDef(TRGTOPTimeStamp, 15);
64
65 };
66
68} //end namespace Belle2
ClassDef(TRGTOPTimeStamp, 15)
ClassDef.
TRGTOPTimeStamp(int timeStamp)
A Useful Constructor.
int m_timeStamp
timestamp value in 1/8 of FTSW clock cycle (conventional "2ns")
TRGTOPTimeStamp(int timeStamp, int slot)
Another Useful Constructor.
int m_slot
slot number (1 through 16)
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.