Belle II Software development
TRGTOPWaveFormTimeStampsSlot.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 TRGTOPWAVEFORMTIMESTAMPSSLOT_H
10#define TRGTOPWAVEFORMTIMESTAMPSSLOT_H
11
12//#pragma once
13
14//#include <TObject.h>
15#include <framework/datastore/RelationsObject.h>
16
17#include <vector>
18
19#include <trg/top/dataobjects/TRGTOPWaveFormTimeStamp.h>
20
21namespace Belle2 {
29 // class TRGTOPWaveFormTimeStampsSlot : public TObject {
31
32 public:
33
34 // Empty constructor
35 // Recommended for ROOT IO
37 m_slotId(0)
38 {}
39
42 int slotId
43 ) :
44 m_slotId(slotId)
45 {}
46
49 int slotId,
50 int numberOfTimeStamps
51 ) :
52 m_slotId(slotId),
53 m_numberOfTimeStamps(numberOfTimeStamps)
54 {}
55
57 int slotId,
58 int numberOfTimeStamps,
59 int numberOfActualTimeStamps
60 ) :
61 m_slotId(slotId),
62 m_numberOfTimeStamps(numberOfTimeStamps),
63 m_numberOfActualTimeStamps(numberOfActualTimeStamps)
64 {}
65
68
69 int getSlotId() const { return m_slotId;}
70 int getNumberOfTimeStamps() const { return m_numberOfTimeStamps;}
71 int getNumberOfActualTimeStamps() const { return m_numberOfActualTimeStamps;}
72 int getFirstActualTimeStampValue() const { return m_firstActualTimeStampValue;}
73 int getFirstActualTimeStampClockCycle() const { return m_firstActualTimeStampClockCycle;}
74 //int get() const { return m_;}
75
76 //Need namespace qualifier because ROOT CINT has troubles otherwise
77 // const std::vector<Belle2::TRGTOPTimeStamp> getTimeStamps() { return m_timeStamps; }
78
79 void setSlotId(int slotId);
80 void setNumberOfTimeStamps(int numberOfTimeStamps);
81 void setNumberOfActualTimeStamps(int numberOfActualTimeStamps);
82 void setFirstActualTimeStampValue(int firstActualTimeStampValue);
83 void setFirstActualTimeStampClockCycle(int firstActualTimeStampClockCycle);
84
85 //void set(int );
86
87 void addTimeStamp(TRGTOPWaveFormTimeStamp timeStamp);
88
89 private:
90
93
96
99
102
105
107 // std::vector<TRGTOPTimeStamp> m_timeStamps; /**< a vector of slot-level TOP timing decisions */
108
111
112 };
113
115} //end namespace Belle2
116
117#endif
118
Defines interface for accessing relations of objects in StoreArray.
int m_numberOfActualTimeStamps
number of actual timestamps
TRGTOPWaveFormTimeStampsSlot(int slotId)
A Useful Constructor.
TRGTOPWaveFormTimeStampsSlot(int slotId, int numberOfTimeStamps)
Another Useful Constructor.
ClassDef(TRGTOPWaveFormTimeStampsSlot, 15)
vector of timestamps
int m_firstActualTimeStampValue
first actual timestamp's value
int m_firstActualTimeStampClockCycle
first actual timestamp's clock cycle
Abstract base class for different kinds of events.