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
14class 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:
52 Double_t fdTimeInSpill; // in [s]
53 Double_t fdTimeInRun; // in [s]
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
void SetTimeInSpill(Double_t dVal)
Definition TTrbHeader.h:24
void SetSubeventSizes(const std::vector< UShort_t > &vuVal)
Double_t fdTimeInRun
Definition TTrbHeader.h:53
Int_t fiSpillIndex
Definition TTrbHeader.h:54
Int_t GetNSubevents() const
Double_t GetCTSIdleTime() const
Definition TTrbHeader.h:43
UInt_t GetTriggerPattern() const
Definition TTrbHeader.h:34
UInt_t GetTriggerType() const
Definition TTrbHeader.h:35
void SetCTSBusyTime(Double_t dVal)
Definition TTrbHeader.h:30
UInt_t fuEventDAQTime
Definition TTrbHeader.h:56
void SetCTSIdleTime(Double_t dVal)
Definition TTrbHeader.h:31
Double_t fdCTSBusyTime
Definition TTrbHeader.h:58
Double_t fdCTSIdleTime
Definition TTrbHeader.h:59
Double_t GetCTSBusyTime() const
Definition TTrbHeader.h:42
UInt_t GetEventDAQTime() const
Definition TTrbHeader.h:40
UInt_t fuEventDAQDate
Definition TTrbHeader.h:55
void SetSpillIndex(Int_t iVal)
Definition TTrbHeader.h:26
void SetTriggerIndex(Int_t iVal)
Definition TTrbHeader.h:29
virtual void Clear(Option_t *option="")
Int_t GetSpillIndex() const
Definition TTrbHeader.h:38
Int_t GetTriggerIndex() const
Definition TTrbHeader.h:41
void SetTimeInRun(Double_t dVal)
Definition TTrbHeader.h:25
UShort_t GetSubeventSize(Int_t iSubevent) const
void SetTriggerPattern(UInt_t uVal)
Definition TTrbHeader.h:22
void SetEventDAQDate(UInt_t uVal)
Definition TTrbHeader.h:27
Double_t fdTimeInSpill
Definition TTrbHeader.h:52
UInt_t fuTriggerType
Definition TTrbHeader.h:51
Double_t GetTimeInSpill() const
Definition TTrbHeader.h:36
UInt_t fuTriggerPattern
Definition TTrbHeader.h:50
std::vector< UShort_t > fuSubeventSizes
Definition TTrbHeader.h:61
Bool_t TriggerFired(Int_t iTrg)
UInt_t GetEventDAQDate() const
Definition TTrbHeader.h:39
void SetTriggerType(UInt_t uVal)
Definition TTrbHeader.h:23
void SetEventDAQTime(UInt_t uVal)
Definition TTrbHeader.h:28
virtual ~TTrbHeader()
Definition TTrbHeader.h:18
Int_t fiTriggerIndex
Definition TTrbHeader.h:57
Double_t GetTimeInRun() const
Definition TTrbHeader.h:37