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