Belle II Software development
TRGTOPTimingISim.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 TRGTOPTIMINGISIM_H
10#define TRGTOPTIMINGISIM_H
11
12//#include <TObject.h>
13#include <framework/datastore/RelationsObject.h>
14
15#include <vector>
16#include <limits>
17
18
19namespace Belle2 {
26 // class TRGTOPTimingISim : public TObject {
28
29 public:
30
31 // Empty constructor
32 // Recommended for ROOT IO
34 m_slotId(0),
35 m_slotTiming(0),
37 m_slotNHits(0),
38 m_slotLogL(0),
40 {}
41
44 int slotId
45 ) :
46 m_slotId(slotId),
47 m_slotTiming(0),
49 m_slotNHits(0),
50 m_slotLogL(0),
52 {}
53
56 int slotId,
57 int slotTiming,
58 int slotSegment,
59 int slotNHits,
60 int slotLogL,
61 int slotDecisionClockCycle
62 ) :
63 m_slotId(slotId),
64 m_slotTiming(slotTiming),
65 m_slotSegment(slotSegment),
66 m_slotNHits(slotNHits),
67 m_slotLogL(slotLogL),
68 m_slotDecisionClockCycle(slotDecisionClockCycle)
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 getSlotDecisionClockCycle() const { return m_slotDecisionClockCycle;}
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 setSlotDecisionClockCycle(int slotDecisionClockCycle);
88 //void set(int );
89
90 private:
91
104
107
108 };
109
111} //end namespace Belle2
112
113#endif
Defines interface for accessing relations of objects in StoreArray.
ClassDef(TRGTOPTimingISim, 1)
the class title
TRGTOPTimingISim(int slotId)
A Useful Constructor.
int m_slotNHits
slot N hits (timestamps)
TRGTOPTimingISim(int slotId, int slotTiming, int slotSegment, int slotNHits, int slotLogL, int slotDecisionClockCycle)
Another Useful Constructor.
int m_slotId
slot Id (1 through 16)
int m_slotSegment
slot segment
int m_slotDecisionClockCycle
clock cycle when the decision was made
Abstract base class for different kinds of events.