Belle II Software development
TRGTiming.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#ifndef TRGTIMING_H
10#define TRGTIMING_H
11
12#include <framework/datastore/RelationsObject.h>
13
14namespace Belle2 {
23 class TRGTiming : public RelationsObject {
24
25 private:
26
30 static const int c_Version = 0;
31
32 public:
33
36 m_ID(),
37 m_timing() // 2019/07/31 by ytlai
38 {;}
39
41 TRGTiming(unsigned int ID,
42 int timing)
43 {
44 m_ID = ID;
45 m_timing = timing;
46 }
47
51
54 void setTRGTiming() {;}
55
59 unsigned int getID() const
60 {
61 return m_ID;
62 }
63
67 int getTiming() const
68 {
69 return m_timing;
70 }
71
72 private:
73
74 // enum {c_PIDDetectorSetSize = 4}; /**< temporary solution for the size */
75
76 // Const::DetectorSet m_detectors; /**< set of detectors with PID information */
77
78 unsigned int m_ID;
83 };
84
85
87} // end namespace Belle2
88
89#endif
Defines interface for accessing relations of objects in StoreArray.
Trigger Timing Information for a fired bit.
Definition: TRGTiming.h:23
ClassDef(TRGTiming, 1)
ClassDef.
unsigned int m_ID
bit ID
Definition: TRGTiming.h:78
unsigned int getID() const
get trigger bit ID
Definition: TRGTiming.h:59
int m_timing
tdc count
Definition: TRGTiming.h:79
TRGTiming(unsigned int ID, int timing)
constructor: xxx
Definition: TRGTiming.h:41
int getTiming() const
get trigger timing
Definition: TRGTiming.h:67
TRGTiming()
default constructor: xxx
Definition: TRGTiming.h:35
void setTRGTiming()
setter
Definition: TRGTiming.h:54
~TRGTiming()
Destructor.
Definition: TRGTiming.h:50
static const int c_Version
version of this code
Definition: TRGTiming.h:30
Abstract base class for different kinds of events.