CbmRoot
Loading...
Searching...
No Matches
TimesliceMetaData.h
Go to the documentation of this file.
1
/* Copyright (C) 2019-2020 Facility for Antiproton and Ion Research in Europe, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Pierre-Alain Loizeau [committer], Florian Uhlig */
4
5
#ifndef TIMESLICE_METADATA_H
6
#define TIMESLICE_METADATA_H
7
8
#include <Rtypes.h>
// for THashConsistencyHolder, ClassDef
9
#include <TObject.h>
// for TObject
10
11
#include <cstdint>
12
13
14
class
TimesliceMetaData
:
public
TObject {
15
public
:
16
TimesliceMetaData
(uint64_t ulStart = 0, uint64_t ulDur = 12800000, uint64_t ulOverDur = 1280000,
17
uint64_t ulIndex = 0);
18
20
TimesliceMetaData
(
const
TimesliceMetaData
&) =
default
;
22
TimesliceMetaData
(
TimesliceMetaData
&&) =
default
;
24
TimesliceMetaData
&
operator=
(
const
TimesliceMetaData
&) =
default
;
25
26
void
SetStartTime
(uint64_t ulStart) {
fulStartTimeNs
= ulStart; }
27
void
SetDuration
(uint64_t ulDur) {
fulDurationNs
= ulDur; }
28
void
SetOverlapDuration
(uint64_t ulDur) {
fulOverlapNs
= ulDur; }
29
void
SetIndex
(uint64_t ulIdx) {
fulIndex
= ulIdx; }
30
31
uint64_t
GetStartTime
()
const
{
return
fulStartTimeNs
; }
32
uint64_t
GetDuration
()
const
{
return
fulDurationNs
; }
33
uint64_t
GetOverlapStartTime
()
const
{
return
fulStartTimeNs
+
fulDurationNs
; }
34
uint64_t
GetOverlapDuration
()
const
{
return
fulOverlapNs
; }
35
uint64_t
GetIndex
()
const
{
return
fulIndex
; }
36
37
private
:
38
uint64_t
fulStartTimeNs
= 0;
39
// uint64_t fulDurationNs = 10240000; // 100 MS * 102400 ns (no TRD), default to update in source
40
uint64_t
fulDurationNs
= 12800000;
// 10 MS * 1280000 ns (with TRD), default to update in source
41
uint64_t
fulOverlapNs
= 1280000;
// 1 MS * 1280000 ns (with TRD), default to update in source
42
uint64_t
fulIndex
= 0;
43
/*
44
uint64_t fulErrorsNbBmon = 0;
45
uint64_t fulErrorsNbSts = 0;
46
uint64_t fulErrorsNbMuch = 0;
47
uint64_t fulErrorsNbTof = 0;
48
uint64_t fulErrorsNbTrd = 0;
49
uint64_t fulErrorsNbRich = 0;
50
uint64_t fulErrorsNbPsd = 0;
51
*/
52
53
ClassDef
(
TimesliceMetaData
, 2);
54
};
55
56
#endif
// TIMESLICE_METADATA_H
TimesliceMetaData
Definition
TimesliceMetaData.h:14
TimesliceMetaData::TimesliceMetaData
TimesliceMetaData(TimesliceMetaData &&)=default
Move constuctor.
TimesliceMetaData::SetStartTime
void SetStartTime(uint64_t ulStart)
Definition
TimesliceMetaData.h:26
TimesliceMetaData::fulStartTimeNs
uint64_t fulStartTimeNs
Definition
TimesliceMetaData.h:38
TimesliceMetaData::fulIndex
uint64_t fulIndex
Definition
TimesliceMetaData.h:42
TimesliceMetaData::operator=
TimesliceMetaData & operator=(const TimesliceMetaData &)=default
Copy operator.
TimesliceMetaData::GetIndex
uint64_t GetIndex() const
Definition
TimesliceMetaData.h:35
TimesliceMetaData::ClassDef
ClassDef(TimesliceMetaData, 2)
TimesliceMetaData::GetOverlapDuration
uint64_t GetOverlapDuration() const
Definition
TimesliceMetaData.h:34
TimesliceMetaData::GetOverlapStartTime
uint64_t GetOverlapStartTime() const
Definition
TimesliceMetaData.h:33
TimesliceMetaData::SetDuration
void SetDuration(uint64_t ulDur)
Definition
TimesliceMetaData.h:27
TimesliceMetaData::fulOverlapNs
uint64_t fulOverlapNs
Definition
TimesliceMetaData.h:41
TimesliceMetaData::TimesliceMetaData
TimesliceMetaData(const TimesliceMetaData &)=default
Copy construction.
TimesliceMetaData::SetOverlapDuration
void SetOverlapDuration(uint64_t ulDur)
Definition
TimesliceMetaData.h:28
TimesliceMetaData::fulDurationNs
uint64_t fulDurationNs
Definition
TimesliceMetaData.h:40
TimesliceMetaData::GetDuration
uint64_t GetDuration() const
Definition
TimesliceMetaData.h:32
TimesliceMetaData::TimesliceMetaData
TimesliceMetaData(uint64_t ulStart=0, uint64_t ulDur=12800000, uint64_t ulOverDur=1280000, uint64_t ulIndex=0)
Definition
TimesliceMetaData.cxx:9
TimesliceMetaData::GetStartTime
uint64_t GetStartTime() const
Definition
TimesliceMetaData.h:31
TimesliceMetaData::SetIndex
void SetIndex(uint64_t ulIdx)
Definition
TimesliceMetaData.h:29
core
data
raw
TimesliceMetaData.h
Generated on Sun Dec 22 2024 23:04:08 for CbmRoot by
1.12.0