Belle II Software  release-06-00-14
TRGTOPSlotTiming.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 TRGTOPSLOTTIMING_H
10 #define TRGTOPSLOTTIMING_H
11 
12 #include <TObject.h>
13 
14 #include <vector>
15 #include <limits>
16 
17 
18 namespace Belle2 {
24  static const int intNaN = std::numeric_limits<int>::quiet_NaN();
25 
27  class TRGTOPSlotTiming : public TObject {
28 
29  public:
30 
31  // Empty constructor
32  // Recommended for ROOT IO
40  {}
41 
43  explicit TRGTOPSlotTiming(
44  int slotId
45  ) :
46  m_slotId(slotId),
51  m_slotNErrors(0)
52  {}
53 
56  int slotId,
57  int slotTiming,
58  int slotSegment,
59  int slotNHits,
60  int slotLogL,
61  int slotNErrors
62  ) :
63  m_slotId(slotId),
64  m_slotTiming(slotTiming),
65  m_slotSegment(slotSegment),
66  m_slotNHits(slotNHits),
67  m_slotLogL(slotLogL),
68  m_slotNErrors(slotNErrors)
69  {}
70 
73 
74  int getSlotId() const { return m_slotId; }
75  int getSlotTiming() const { return m_slotTiming; }
76  int getSlotSegment() const { return m_slotSegment;}
77  int getSlotNHits() const { return m_slotNHits; }
78  int getSlotLogL() const { return m_slotLogL; }
79  int getSlotNErrors() const { return m_slotNErrors;}
80  //int get() const { return m_;}
81 
82  void setSlotId(int slotId);
83  void setSlotTiming(int slotTiming);
84  void setSlotSegment(int slotSegment);
85  void setSlotNHits(int slotNHits);
86  void setSlotLogL(int slotLogL);
87  void setSlotNErrors(int slotNErrors);
88  //void set(int );
89 
90  private:
91 
93  int m_slotId;
104 
107 
108  };
109 
111 } //end namespace Belle2
112 
113 #endif
ClassDef(TRGTOPSlotTiming, 2)
the class title
int m_slotNHits
slot N hits (timestamps)
TRGTOPSlotTiming(int slotId, int slotTiming, int slotSegment, int slotNHits, int slotLogL, int slotNErrors)
Another Useful Constructor.
int m_slotId
slot Id (1 through 16)
TRGTOPSlotTiming(int slotId)
A Useful Constructor.
int m_slotSegment
slot segment
static const int intNaN
constant for integer NaN
Abstract base class for different kinds of events.