CbmRoot
CbmTofStarSubevent2019 Class Reference

#include <CbmTofStarData2019.h>

Collaboration diagram for CbmTofStarSubevent2019:
[legend]

Public Member Functions

 CbmTofStarSubevent2019 ()
 
 CbmTofStarSubevent2019 (CbmTofStarTrigger2019 triggerIn, UShort_t sourceIdIn)
 
 CbmTofStarSubevent2019 (const CbmTofStarSubevent2019 &)
 
CbmTofStarSubevent2019 operator= (const CbmTofStarSubevent2019 &)
 
 ~CbmTofStarSubevent2019 ()
 
void SetTrigger (CbmTofStarTrigger2019 triggerIn)
 
void SetSource (UShort_t sourceIdIn)
 
void SetBadEventFlag (Bool_t bFlagState=kTRUE)
 
void SetOverlapEventFlag (Bool_t bFlagState=kTRUE)
 
void SetEmptyEventFlag (Bool_t bFlagState=kTRUE)
 
void SetStartBorderEventFlag (Bool_t bFlagState=kTRUE)
 
void SetEndBorderEventFlag (Bool_t bFlagState=kTRUE)
 
void SetIncompleteEventFlag (Bool_t bFlagState=kTRUE)
 
void AddMsg (const gdpbv100::FullMessage &msgIn)
 
CbmTofStarTrigger2019 GetTrigger () const
 
UShort_t GetSource () const
 
Bool_t GetBadEventFlag () const
 
Bool_t GetOverlapEventFlag () const
 
Bool_t GetEmptyEventFlag () const
 
Bool_t GetStartBorderEventFlag () const
 
Bool_t GetEndBorderEventFlag () const
 
Bool_t GetIncompleteEventFlag () const
 
Int_t GetEventSize () const
 
gdpbv100::Message GetMsg (UInt_t uMsgIdx) const
 
UInt_t GetMsgBuffSize () const
 
Double_t GetEventTimeSec () const
 
void ClearSubEvent ()
 
void SortMessages ()
 
void * BuildOutput (Int_t &iOutputSizeBytes)
 
Bool_t LoadInput (void *pBuff, Int_t iInputSizeBytes)
 
void PrintSubEvent ()
 

Static Public Member Functions

static uint32_t GetMaxOutputSize ()
 

Private Attributes

Bool_t fbTriggerSet
 
CbmTofStarTrigger2019 fTrigger
 
UShort_t fusSourceId
 
ULong64_t fulEventStatusFlags
 
UInt_t fuEventSizeBytes
 
std::vector< gdpbv100::FullMessagefvMsgBuffer
 
ULong64_t fpulBuff [kuMaxOutputSize]
 

Static Private Attributes

static const uint32_t kuMaxOutputSize = 131072
 
static const uint32_t kuMaxNbMsgs
 
static const uint64_t kulFlagBadEvt
 
static const uint64_t kulFlagOverlapEvt
 General flag for bad event. More...
 
static const uint64_t kulFlagEmptyEvt = 0x1 << 2
 Event in overlap with the previous event. More...
 
static const uint64_t kulFlagStartBorderEvt
 Empty event. More...
 
static const uint64_t kulFlagEndBorderEvt
 Event containing data from previous overlap MS. More...
 
static const uint64_t kulFlagIncompleteEvt
 Event containing data from following overlap MS. More...
 
static const uint64_t kulSourceIdOffset = 16
 Incomplete event: at least one gDPB missed the trigger signal. More...
 
static const uint64_t kulSourceIdMask = 0xFFFF
 
static const uint64_t kulEventSizeOffset = 32
 
static const uint64_t kulEventSizeMask = 0xFFFFFFFF
 

Detailed Description

Definition at line 72 of file CbmTofStarData2019.h.

Constructor & Destructor Documentation

◆ CbmTofStarSubevent2019() [1/3]

CbmTofStarSubevent2019::CbmTofStarSubevent2019 ( )

Definition at line 85 of file CbmTofStarData2019.cxx.

◆ CbmTofStarSubevent2019() [2/3]

CbmTofStarSubevent2019::CbmTofStarSubevent2019 ( CbmTofStarTrigger2019  triggerIn,
UShort_t  sourceIdIn 
)

Definition at line 92 of file CbmTofStarData2019.cxx.

References SetSource().

◆ CbmTofStarSubevent2019() [3/3]

CbmTofStarSubevent2019::CbmTofStarSubevent2019 ( const CbmTofStarSubevent2019 eventIn)

Buffer ignored as always refilled when accessed with BuildOutput

Definition at line 102 of file CbmTofStarData2019.cxx.

◆ ~CbmTofStarSubevent2019()

CbmTofStarSubevent2019::~CbmTofStarSubevent2019 ( )

Definition at line 125 of file CbmTofStarData2019.cxx.

References ClearSubEvent().

Member Function Documentation

◆ AddMsg()

void CbmTofStarSubevent2019::AddMsg ( const gdpbv100::FullMessage msgIn)
inline

Definition at line 119 of file CbmTofStarData2019.h.

References fuEventSizeBytes, and fvMsgBuffer.

Referenced by CbmStar2019EventBuilderEtofAlgo::BuildEvents().

◆ BuildOutput()

◆ ClearSubEvent()

void CbmTofStarSubevent2019::ClearSubEvent ( )

Definition at line 126 of file CbmTofStarData2019.cxx.

References fbTriggerSet, fulEventStatusFlags, and fvMsgBuffer.

Referenced by LoadInput(), and ~CbmTofStarSubevent2019().

◆ GetBadEventFlag()

Bool_t CbmTofStarSubevent2019::GetBadEventFlag ( ) const
inline

Definition at line 127 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagBadEvt.

◆ GetEmptyEventFlag()

Bool_t CbmTofStarSubevent2019::GetEmptyEventFlag ( ) const
inline

Definition at line 133 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagEmptyEvt.

◆ GetEndBorderEventFlag()

Bool_t CbmTofStarSubevent2019::GetEndBorderEventFlag ( ) const
inline

Definition at line 139 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagEndBorderEvt.

◆ GetEventSize()

Int_t CbmTofStarSubevent2019::GetEventSize ( ) const
inline

Definition at line 145 of file CbmTofStarData2019.h.

References fuEventSizeBytes.

◆ GetEventTimeSec()

Double_t CbmTofStarSubevent2019::GetEventTimeSec ( ) const
inline

◆ GetIncompleteEventFlag()

Bool_t CbmTofStarSubevent2019::GetIncompleteEventFlag ( ) const
inline

Definition at line 142 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagIncompleteEvt.

◆ GetMaxOutputSize()

static uint32_t CbmTofStarSubevent2019::GetMaxOutputSize ( )
inlinestatic

Definition at line 148 of file CbmTofStarData2019.h.

References kuMaxOutputSize.

Referenced by CbmStar2019EventBuilderEtofAlgo::CreateHistograms().

◆ GetMsg()

gdpbv100::Message CbmTofStarSubevent2019::GetMsg ( UInt_t  uMsgIdx) const
inline

◆ GetMsgBuffSize()

UInt_t CbmTofStarSubevent2019::GetMsgBuffSize ( ) const
inline

Definition at line 147 of file CbmTofStarData2019.h.

References fvMsgBuffer.

◆ GetOverlapEventFlag()

Bool_t CbmTofStarSubevent2019::GetOverlapEventFlag ( ) const
inline

Definition at line 130 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagOverlapEvt.

◆ GetSource()

UShort_t CbmTofStarSubevent2019::GetSource ( ) const
inline

Definition at line 126 of file CbmTofStarData2019.h.

References fusSourceId.

◆ GetStartBorderEventFlag()

Bool_t CbmTofStarSubevent2019::GetStartBorderEventFlag ( ) const
inline

Definition at line 136 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagStartBorderEvt.

◆ GetTrigger()

CbmTofStarTrigger2019 CbmTofStarSubevent2019::GetTrigger ( ) const
inline

Definition at line 125 of file CbmTofStarData2019.h.

References fTrigger.

◆ LoadInput()

◆ operator=()

CbmTofStarSubevent2019 CbmTofStarSubevent2019::operator= ( const CbmTofStarSubevent2019 eventIn)

Buffer ignored as always refilled when accessed with BuildOutput

Definition at line 113 of file CbmTofStarData2019.cxx.

References fbTriggerSet, fTrigger, fuEventSizeBytes, fulEventStatusFlags, fusSourceId, and fvMsgBuffer.

◆ PrintSubEvent()

◆ SetBadEventFlag()

void CbmTofStarSubevent2019::SetBadEventFlag ( Bool_t  bFlagState = kTRUE)
inline

Definition at line 95 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagBadEvt.

◆ SetEmptyEventFlag()

void CbmTofStarSubevent2019::SetEmptyEventFlag ( Bool_t  bFlagState = kTRUE)
inline

Definition at line 103 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagEmptyEvt.

◆ SetEndBorderEventFlag()

void CbmTofStarSubevent2019::SetEndBorderEventFlag ( Bool_t  bFlagState = kTRUE)
inline

Definition at line 111 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagEndBorderEvt.

◆ SetIncompleteEventFlag()

void CbmTofStarSubevent2019::SetIncompleteEventFlag ( Bool_t  bFlagState = kTRUE)
inline

◆ SetOverlapEventFlag()

void CbmTofStarSubevent2019::SetOverlapEventFlag ( Bool_t  bFlagState = kTRUE)
inline

Definition at line 99 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagOverlapEvt.

◆ SetSource()

void CbmTofStarSubevent2019::SetSource ( UShort_t  sourceIdIn)
inline

◆ SetStartBorderEventFlag()

void CbmTofStarSubevent2019::SetStartBorderEventFlag ( Bool_t  bFlagState = kTRUE)
inline

Definition at line 107 of file CbmTofStarData2019.h.

References fulEventStatusFlags, and kulFlagStartBorderEvt.

◆ SetTrigger()

void CbmTofStarSubevent2019::SetTrigger ( CbmTofStarTrigger2019  triggerIn)
inline

Definition at line 85 of file CbmTofStarData2019.h.

References fbTriggerSet, and fTrigger.

Referenced by CbmStar2019EventBuilderEtofAlgo::BuildEvents().

◆ SortMessages()

void CbmTofStarSubevent2019::SortMessages ( )

Definition at line 131 of file CbmTofStarData2019.cxx.

References fvMsgBuffer.

Member Data Documentation

◆ fbTriggerSet

Bool_t CbmTofStarSubevent2019::fbTriggerSet
private

Definition at line 188 of file CbmTofStarData2019.h.

Referenced by BuildOutput(), ClearSubEvent(), operator=(), and SetTrigger().

◆ fpulBuff

ULong64_t CbmTofStarSubevent2019::fpulBuff[kuMaxOutputSize]
private

Definition at line 194 of file CbmTofStarData2019.h.

Referenced by BuildOutput().

◆ fTrigger

CbmTofStarTrigger2019 CbmTofStarSubevent2019::fTrigger
private

◆ fuEventSizeBytes

UInt_t CbmTofStarSubevent2019::fuEventSizeBytes
private

Definition at line 192 of file CbmTofStarData2019.h.

Referenced by AddMsg(), BuildOutput(), GetEventSize(), LoadInput(), and operator=().

◆ fulEventStatusFlags

◆ fusSourceId

UShort_t CbmTofStarSubevent2019::fusSourceId
private

Definition at line 190 of file CbmTofStarData2019.h.

Referenced by GetSource(), LoadInput(), operator=(), and SetSource().

◆ fvMsgBuffer

std::vector<gdpbv100::FullMessage> CbmTofStarSubevent2019::fvMsgBuffer
private

◆ kulEventSizeMask

const uint64_t CbmTofStarSubevent2019::kulEventSizeMask = 0xFFFFFFFF
staticprivate

Definition at line 186 of file CbmTofStarData2019.h.

Referenced by BuildOutput(), and LoadInput().

◆ kulEventSizeOffset

const uint64_t CbmTofStarSubevent2019::kulEventSizeOffset = 32
staticprivate

Definition at line 185 of file CbmTofStarData2019.h.

Referenced by BuildOutput(), and LoadInput().

◆ kulFlagBadEvt

const uint64_t CbmTofStarSubevent2019::kulFlagBadEvt
staticprivate
Initial value:
= 0x1
<< 0

Definition at line 172 of file CbmTofStarData2019.h.

Referenced by BuildOutput(), GetBadEventFlag(), and SetBadEventFlag().

◆ kulFlagEmptyEvt

const uint64_t CbmTofStarSubevent2019::kulFlagEmptyEvt = 0x1 << 2
staticprivate

Event in overlap with the previous event.

Definition at line 176 of file CbmTofStarData2019.h.

Referenced by GetEmptyEventFlag(), and SetEmptyEventFlag().

◆ kulFlagEndBorderEvt

const uint64_t CbmTofStarSubevent2019::kulFlagEndBorderEvt
staticprivate
Initial value:
=
0x1 << 4

Event containing data from previous overlap MS.

Definition at line 179 of file CbmTofStarData2019.h.

Referenced by GetEndBorderEventFlag(), and SetEndBorderEventFlag().

◆ kulFlagIncompleteEvt

const uint64_t CbmTofStarSubevent2019::kulFlagIncompleteEvt
staticprivate
Initial value:
=
0x1 << 5

Event containing data from following overlap MS.

Definition at line 181 of file CbmTofStarData2019.h.

Referenced by GetIncompleteEventFlag(), and SetIncompleteEventFlag().

◆ kulFlagOverlapEvt

const uint64_t CbmTofStarSubevent2019::kulFlagOverlapEvt
staticprivate
Initial value:
=
0x1 << 1

General flag for bad event.

Definition at line 174 of file CbmTofStarData2019.h.

Referenced by GetOverlapEventFlag(), and SetOverlapEventFlag().

◆ kulFlagStartBorderEvt

const uint64_t CbmTofStarSubevent2019::kulFlagStartBorderEvt
staticprivate
Initial value:
=
0x1 << 3

Empty event.

Definition at line 177 of file CbmTofStarData2019.h.

Referenced by GetStartBorderEventFlag(), and SetStartBorderEventFlag().

◆ kulSourceIdMask

const uint64_t CbmTofStarSubevent2019::kulSourceIdMask = 0xFFFF
staticprivate

Definition at line 184 of file CbmTofStarData2019.h.

Referenced by LoadInput(), and SetSource().

◆ kulSourceIdOffset

const uint64_t CbmTofStarSubevent2019::kulSourceIdOffset = 16
staticprivate

Incomplete event: at least one gDPB missed the trigger signal.

Definition at line 183 of file CbmTofStarData2019.h.

Referenced by LoadInput(), and SetSource().

◆ kuMaxNbMsgs

const uint32_t CbmTofStarSubevent2019::kuMaxNbMsgs
staticprivate
Initial value:
=
8190

Definition at line 170 of file CbmTofStarData2019.h.

Referenced by BuildOutput().

◆ kuMaxOutputSize

const uint32_t CbmTofStarSubevent2019::kuMaxOutputSize = 131072
staticprivate

Definition at line 169 of file CbmTofStarData2019.h.

Referenced by BuildOutput(), and GetMaxOutputSize().


The documentation for this class was generated from the following files: