CbmRoot
Loading...
Searching...
No Matches
TTrbHeader.h
Go to the documentation of this file.
1
/* Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Florian Uhlig [committer] */
4
5
#ifndef TTRBHEADER_H_
6
#define TTRBHEADER_H_
7
8
#include <Rtypes.h>
// for THashConsistencyHolder, ClassDef
9
#include <RtypesCore.h>
// for Double_t, UInt_t, Int_t, UShort_t, Bool_t
10
#include <TNamed.h>
// for TNamed
11
12
#include <vector>
// for vector
13
14
class
TTrbHeader
:
public
TNamed {
15
public
:
16
TTrbHeader
();
17
18
virtual
~TTrbHeader
(){};
19
20
virtual
void
Clear
(Option_t* option =
""
);
21
22
void
SetTriggerPattern
(UInt_t uVal) {
fuTriggerPattern
= uVal; }
23
void
SetTriggerType
(UInt_t uVal) {
fuTriggerType
= uVal; }
24
void
SetTimeInSpill
(Double_t dVal) {
fdTimeInSpill
= dVal; }
25
void
SetTimeInRun
(Double_t dVal) {
fdTimeInRun
= dVal; }
26
void
SetSpillIndex
(Int_t iVal) {
fiSpillIndex
= iVal; }
27
void
SetEventDAQDate
(UInt_t uVal) {
fuEventDAQDate
= uVal; }
28
void
SetEventDAQTime
(UInt_t uVal) {
fuEventDAQTime
= uVal; }
29
void
SetTriggerIndex
(Int_t iVal) {
fiTriggerIndex
= iVal; }
30
void
SetCTSBusyTime
(Double_t dVal) {
fdCTSBusyTime
= dVal; }
31
void
SetCTSIdleTime
(Double_t dVal) {
fdCTSIdleTime
= dVal; }
32
void
SetSubeventSizes
(
const
std::vector<UShort_t>& vuVal);
33
34
UInt_t
GetTriggerPattern
()
const
{
return
fuTriggerPattern
; }
35
UInt_t
GetTriggerType
()
const
{
return
fuTriggerType
; }
36
Double_t
GetTimeInSpill
()
const
{
return
fdTimeInSpill
; }
37
Double_t
GetTimeInRun
()
const
{
return
fdTimeInRun
; }
38
Int_t
GetSpillIndex
()
const
{
return
fiSpillIndex
; }
39
UInt_t
GetEventDAQDate
()
const
{
return
fuEventDAQDate
; }
40
UInt_t
GetEventDAQTime
()
const
{
return
fuEventDAQTime
; }
41
Int_t
GetTriggerIndex
()
const
{
return
fiTriggerIndex
; }
42
Double_t
GetCTSBusyTime
()
const
{
return
fdCTSBusyTime
; }
43
Double_t
GetCTSIdleTime
()
const
{
return
fdCTSIdleTime
; }
44
UShort_t
GetSubeventSize
(Int_t iSubevent)
const
;
45
Int_t
GetNSubevents
()
const
;
46
47
Bool_t
TriggerFired
(Int_t iTrg);
48
49
private
:
50
UInt_t
fuTriggerPattern
;
51
UInt_t
fuTriggerType
;
52
Double_t
fdTimeInSpill
;
// in [s]
53
Double_t
fdTimeInRun
;
// in [s]
54
Int_t
fiSpillIndex
;
55
UInt_t
fuEventDAQDate
;
56
UInt_t
fuEventDAQTime
;
57
Int_t
fiTriggerIndex
;
58
Double_t
fdCTSBusyTime
;
// in [us]
59
Double_t
fdCTSIdleTime
;
// in [us]
60
61
std::vector<UShort_t>
fuSubeventSizes
;
// in bytes
62
63
ClassDef(
TTrbHeader
, 3)
64
};
65
#endif
TTrbHeader
Definition
TTrbHeader.h:14
TTrbHeader::SetTimeInSpill
void SetTimeInSpill(Double_t dVal)
Definition
TTrbHeader.h:24
TTrbHeader::SetSubeventSizes
void SetSubeventSizes(const std::vector< UShort_t > &vuVal)
Definition
TTrbHeader.cxx:42
TTrbHeader::fdTimeInRun
Double_t fdTimeInRun
Definition
TTrbHeader.h:53
TTrbHeader::fiSpillIndex
Int_t fiSpillIndex
Definition
TTrbHeader.h:54
TTrbHeader::GetNSubevents
Int_t GetNSubevents() const
Definition
TTrbHeader.cxx:51
TTrbHeader::GetCTSIdleTime
Double_t GetCTSIdleTime() const
Definition
TTrbHeader.h:43
TTrbHeader::GetTriggerPattern
UInt_t GetTriggerPattern() const
Definition
TTrbHeader.h:34
TTrbHeader::GetTriggerType
UInt_t GetTriggerType() const
Definition
TTrbHeader.h:35
TTrbHeader::SetCTSBusyTime
void SetCTSBusyTime(Double_t dVal)
Definition
TTrbHeader.h:30
TTrbHeader::fuEventDAQTime
UInt_t fuEventDAQTime
Definition
TTrbHeader.h:56
TTrbHeader::SetCTSIdleTime
void SetCTSIdleTime(Double_t dVal)
Definition
TTrbHeader.h:31
TTrbHeader::fdCTSBusyTime
Double_t fdCTSBusyTime
Definition
TTrbHeader.h:58
TTrbHeader::fdCTSIdleTime
Double_t fdCTSIdleTime
Definition
TTrbHeader.h:59
TTrbHeader::GetCTSBusyTime
Double_t GetCTSBusyTime() const
Definition
TTrbHeader.h:42
TTrbHeader::GetEventDAQTime
UInt_t GetEventDAQTime() const
Definition
TTrbHeader.h:40
TTrbHeader::fuEventDAQDate
UInt_t fuEventDAQDate
Definition
TTrbHeader.h:55
TTrbHeader::SetSpillIndex
void SetSpillIndex(Int_t iVal)
Definition
TTrbHeader.h:26
TTrbHeader::SetTriggerIndex
void SetTriggerIndex(Int_t iVal)
Definition
TTrbHeader.h:29
TTrbHeader::Clear
virtual void Clear(Option_t *option="")
Definition
TTrbHeader.cxx:27
TTrbHeader::GetSpillIndex
Int_t GetSpillIndex() const
Definition
TTrbHeader.h:38
TTrbHeader::GetTriggerIndex
Int_t GetTriggerIndex() const
Definition
TTrbHeader.h:41
TTrbHeader::TTrbHeader
TTrbHeader()
Definition
TTrbHeader.cxx:11
TTrbHeader::SetTimeInRun
void SetTimeInRun(Double_t dVal)
Definition
TTrbHeader.h:25
TTrbHeader::GetSubeventSize
UShort_t GetSubeventSize(Int_t iSubevent) const
Definition
TTrbHeader.cxx:44
TTrbHeader::SetTriggerPattern
void SetTriggerPattern(UInt_t uVal)
Definition
TTrbHeader.h:22
TTrbHeader::SetEventDAQDate
void SetEventDAQDate(UInt_t uVal)
Definition
TTrbHeader.h:27
TTrbHeader::fdTimeInSpill
Double_t fdTimeInSpill
Definition
TTrbHeader.h:52
TTrbHeader::fuTriggerType
UInt_t fuTriggerType
Definition
TTrbHeader.h:51
TTrbHeader::GetTimeInSpill
Double_t GetTimeInSpill() const
Definition
TTrbHeader.h:36
TTrbHeader::fuTriggerPattern
UInt_t fuTriggerPattern
Definition
TTrbHeader.h:50
TTrbHeader::fuSubeventSizes
std::vector< UShort_t > fuSubeventSizes
Definition
TTrbHeader.h:61
TTrbHeader::TriggerFired
Bool_t TriggerFired(Int_t iTrg)
Definition
TTrbHeader.cxx:53
TTrbHeader::GetEventDAQDate
UInt_t GetEventDAQDate() const
Definition
TTrbHeader.h:39
TTrbHeader::SetTriggerType
void SetTriggerType(UInt_t uVal)
Definition
TTrbHeader.h:23
TTrbHeader::SetEventDAQTime
void SetEventDAQTime(UInt_t uVal)
Definition
TTrbHeader.h:28
TTrbHeader::~TTrbHeader
virtual ~TTrbHeader()
Definition
TTrbHeader.h:18
TTrbHeader::fiTriggerIndex
Int_t fiTriggerIndex
Definition
TTrbHeader.h:57
TTrbHeader::GetTimeInRun
Double_t GetTimeInRun() const
Definition
TTrbHeader.h:37
core
detectors
tof
TTrbHeader.h
Generated on Sun Dec 22 2024 23:04:09 for CbmRoot by
1.12.0