Belle II Software  release-08-01-10
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 
14 namespace 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 
55  void setTRGTiming() {;}
56 
60  unsigned int getID() const
61  {
62  return m_ID;
63  }
64 
68  int getTiming() const
69  {
70  return m_timing;
71  }
72 
73  private:
74 
75  // enum {c_PIDDetectorSetSize = 4}; /**< temporary solution for the size */
76 
77  // Const::DetectorSet m_detectors; /**< set of detectors with PID information */
78 
79  unsigned int m_ID;
80  int m_timing;
84  };
85 
86 
88 } // end namespace Belle2
89 
90 #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:79
unsigned int getID() const
get trigger bit ID
Definition: TRGTiming.h:60
int m_timing
tdc count
Definition: TRGTiming.h:80
TRGTiming(unsigned int ID, int timing)
constructor: xxx
Definition: TRGTiming.h:41
int getTiming() const
get trigger timing
Definition: TRGTiming.h:68
TRGTiming()
default constructor: xxx
Definition: TRGTiming.h:35
void setTRGTiming()
setter
Definition: TRGTiming.h:55
~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.