GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
TRlmdEvent Class Reference

RLMD event.

C++ class representing one RLMD file.

Definition at line 22 of file TRlmdEvent.h.

Public Member Functions

 TRlmdEvent ()
 
 TRlmdEvent (const TRlmdEvent &)
 
 ~TRlmdEvent () override
 
void Clear (Option_t *opt="") override
 
void Copy (TObject &) const override
 
char * GetData () override
 
uint32_t GetDataSize () const override
 
virtual uint32_t GetTimeStamp () const
 
virtual int GoodFrags ()
 
virtual void IncrementGoodFrags ()
 
TRlmdEventoperator= (const TRlmdEvent &)
 
void Print (const char *option="") const override
 
void SetData (std::vector< char > &buffer)
 
int SwapBytes (bool) override
 

Protected Attributes

std::vector< char > fData
 
int fGoodFrags {0}
 

#include <TRlmdEvent.h>

+ Inheritance diagram for TRlmdEvent:
+ Collaboration diagram for TRlmdEvent:

Constructor & Destructor Documentation

◆ TRlmdEvent() [1/2]

TRlmdEvent::TRlmdEvent ( )

default constructor

Definition at line 13 of file TRlmdEvent.cxx.

◆ TRlmdEvent() [2/2]

TRlmdEvent::TRlmdEvent ( const TRlmdEvent rhs)

copy constructor

Definition at line 25 of file TRlmdEvent.cxx.

References Copy().

◆ ~TRlmdEvent()

TRlmdEvent::~TRlmdEvent ( )
override

destructor

Definition at line 31 of file TRlmdEvent.cxx.

References Clear().

Member Function Documentation

◆ Clear()

void TRlmdEvent::Clear ( Option_t *  opt = "")
override

clear event for reuse

Definition at line 46 of file TRlmdEvent.cxx.

References fData.

Referenced by operator=(), TRlmdFile::Read(), and ~TRlmdEvent().

◆ Copy()

void TRlmdEvent::Copy ( TObject &  rhs) const
override

copy helper

Definition at line 19 of file TRlmdEvent.cxx.

References fData.

Referenced by operator=(), and TRlmdEvent().

◆ GetData()

char * TRlmdEvent::GetData ( )
overridevirtual

return pointer to the data buffer

Reimplemented from TRawEvent.

Definition at line 65 of file TRlmdEvent.cxx.

References fData.

◆ GetDataSize()

uint32_t TRlmdEvent::GetDataSize ( ) const
overridevirtual

return the event size

Reimplemented from TRawEvent.

Definition at line 60 of file TRlmdEvent.cxx.

References fData.

Referenced by THILDataParser::Process().

◆ GetTimeStamp()

virtual uint32_t TRawEvent::GetTimeStamp ( ) const
inlinevirtualinherited

return the event size

Reimplemented in TMidasEvent.

Definition at line 36 of file TRawEvent.h.

◆ GoodFrags()

virtual int TRawEvent::GoodFrags ( )
inlinevirtualinherited

returns number of good fragments parsed

Definition at line 48 of file TRawEvent.h.

References TRawEvent::fGoodFrags.

◆ IncrementGoodFrags()

virtual void TRawEvent::IncrementGoodFrags ( )
inlinevirtualinherited

increments the number of good fragments parsed

Definition at line 49 of file TRawEvent.h.

References TRawEvent::fGoodFrags.

◆ operator=()

TRlmdEvent & TRlmdEvent::operator= ( const TRlmdEvent rhs)

assignement operator

Definition at line 36 of file TRlmdEvent.cxx.

References Clear(), and Copy().

◆ Print()

void TRlmdEvent::Print ( const char *  option = "") const
override

show all event information

Print data held in this class.

Parameters
[in]optionIf 'a' (for "all") then the raw data will be printed out too.

Definition at line 71 of file TRlmdEvent.cxx.

References fData, and hex().

◆ SetData()

void TRlmdEvent::SetData ( std::vector< char > &  buffer)

set an externally allocated data buffer

Definition at line 52 of file TRlmdEvent.cxx.

References fData, and SwapBytes().

◆ SwapBytes()

int TRlmdEvent::SwapBytes ( bool  )
overridevirtual

convert event data between little-endian (Linux-x86) and big endian (MacOS-PPC)

Reimplemented from TRawEvent.

Definition at line 91 of file TRlmdEvent.cxx.

Referenced by SetData().

Member Data Documentation

◆ fData

std::vector<char> TRlmdEvent::fData
protected

event data buffer

Definition at line 45 of file TRlmdEvent.h.

Referenced by Clear(), Copy(), GetData(), GetDataSize(), Print(), and SetData().

◆ fGoodFrags

int TRawEvent::fGoodFrags {0}
protectedinherited

number of good fragments parsed

Definition at line 52 of file TRawEvent.h.

Referenced by TMidasEvent::Clear(), TRawEvent::GoodFrags(), and TRawEvent::IncrementGoodFrags().