CbmRoot
TimesliceMetaData.h
Go to the documentation of this file.
1 #ifndef TIMESLICE_METADATA_H
2 #define TIMESLICE_METADATA_H
3 
4 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
5 #include <RtypesCore.h> // for ULong64_t
6 #include <TObject.h> // for TObject
7 
8 #include <stdint.h>
9 
10 
11 class TimesliceMetaData : public TObject {
12 public:
13  TimesliceMetaData(ULong64_t ulStart = 0,
14  ULong64_t ulDur = 12800000,
15  ULong64_t ulOverDur = 1280000,
16  ULong64_t ulIndex = 0);
17 
24 
25  void SetStartTime(ULong64_t ulStart) { fulStartTimeNs = ulStart; }
26  void SetDuration(ULong64_t ulDur) { fulDurationNs = ulDur; }
27  void SetOverlapDuration(ULong64_t ulDur) { fulOverlapNs = ulDur; }
28  void SetIndex(ULong64_t ulIdx) { fulIndex = ulIdx; }
29 
30  ULong64_t GetStartTime() const { return fulStartTimeNs; }
31  ULong64_t GetDuration() const { return fulDurationNs; }
32  ULong64_t GetOverlapStartTime() const {
34  }
35  ULong64_t GetOverlapDuration() const { return fulOverlapNs; }
36  ULong64_t GetIndex() const { return fulIndex; }
37 
38 private:
39  ULong64_t fulStartTimeNs = 0;
40  // ULong64_t fulDurationNs = 10240000; // 100 MS * 102400 ns (no TRD), default to update in source
41  ULong64_t fulDurationNs =
42  12800000; // 10 MS * 1280000 ns (with TRD), default to update in source
43  ULong64_t fulOverlapNs =
44  1280000; // 1 MS * 1280000 ns (with TRD), default to update in source
45  ULong64_t fulIndex = 0;
46  /*
47  ULong64_t fulErrorsNbT0 = 0;
48  ULong64_t fulErrorsNbSts = 0;
49  ULong64_t fulErrorsNbMuch = 0;
50  ULong64_t fulErrorsNbTof = 0;
51  ULong64_t fulErrorsNbTrd = 0;
52  ULong64_t fulErrorsNbRich = 0;
53  ULong64_t fulErrorsNbPsd = 0;
54 */
55 
57 };
58 
59 #endif // TIMESLICE_METADATA_H
TimesliceMetaData::SetStartTime
void SetStartTime(ULong64_t ulStart)
Definition: TimesliceMetaData.h:25
TimesliceMetaData::GetStartTime
ULong64_t GetStartTime() const
Definition: TimesliceMetaData.h:30
TimesliceMetaData::fulOverlapNs
ULong64_t fulOverlapNs
Definition: TimesliceMetaData.h:43
TimesliceMetaData::SetOverlapDuration
void SetOverlapDuration(ULong64_t ulDur)
Definition: TimesliceMetaData.h:27
TimesliceMetaData::TimesliceMetaData
TimesliceMetaData(const TimesliceMetaData &)=default
Copy construction.
TimesliceMetaData
Definition: TimesliceMetaData.h:11
TimesliceMetaData::GetDuration
ULong64_t GetDuration() const
Definition: TimesliceMetaData.h:31
TimesliceMetaData::fulStartTimeNs
ULong64_t fulStartTimeNs
Definition: TimesliceMetaData.h:39
TimesliceMetaData::ClassDef
ClassDef(TimesliceMetaData, 2)
TimesliceMetaData::SetDuration
void SetDuration(ULong64_t ulDur)
Definition: TimesliceMetaData.h:26
TimesliceMetaData::GetOverlapDuration
ULong64_t GetOverlapDuration() const
Definition: TimesliceMetaData.h:35
TimesliceMetaData::fulDurationNs
ULong64_t fulDurationNs
Definition: TimesliceMetaData.h:41
TimesliceMetaData::SetIndex
void SetIndex(ULong64_t ulIdx)
Definition: TimesliceMetaData.h:28
TimesliceMetaData::GetIndex
ULong64_t GetIndex() const
Definition: TimesliceMetaData.h:36
TimesliceMetaData::TimesliceMetaData
TimesliceMetaData(TimesliceMetaData &&)=default
Move constuctor.
TimesliceMetaData::fulIndex
ULong64_t fulIndex
Definition: TimesliceMetaData.h:45
TimesliceMetaData::GetOverlapStartTime
ULong64_t GetOverlapStartTime() const
Definition: TimesliceMetaData.h:32
TimesliceMetaData::operator=
TimesliceMetaData & operator=(const TimesliceMetaData &)=default
Copy operator.
TimesliceMetaData::TimesliceMetaData
TimesliceMetaData(ULong64_t ulStart=0, ULong64_t ulDur=12800000, ULong64_t ulOverDur=1280000, ULong64_t ulIndex=0)
Definition: TimesliceMetaData.cxx:5