BmnRoot
Loading...
Searching...
No Matches
BmnRawSource Class Reference

#include <BmnRawSource.h>

Inheritance diagram for BmnRawSource:
[legend]
Collaboration diagram for BmnRawSource:
[legend]

Public Member Functions

 BmnRawSource (vector< TString > files, ULong_t period=8)
 
 BmnRawSource (TString file="", TString outfile="", ULong_t nEvents=0, ULong_t period=8, bool save=false)
 
virtual ~BmnRawSource ()
 
bool Init ()
 
Int_t ReadEvent (UInt_t i=0)
 
void Close ()
 
void Reset ()
 
Bool_t SpecifyRunId ()
 
virtual Source_Type GetSourceType ()
 
virtual void SetParUnpackers ()
 
virtual Bool_t InitUnpackers ()
 
virtual Bool_t ReInitUnpackers ()
 
void FillEventHeader (FairEventHeader *feh)
 
BmnStatus ParseJsonTLV (UInt_t *buf, UInt_t &len)
 
BmnStatus ConvertStatEvent (UInt_t *buf, UInt_t &len)
 
BmnStatus ConvertRawToRoot ()
 
BmnStatus ConvertRawToRootIterate (UInt_t *buf, UInt_t len)
 
BmnStatus ConvertRawToRootIterateFile (UInt_t limit=WAIT_LIMIT)
 
BmnStatus ConvertRawToRootIterateFileRead ()
 
void ClearRawArrays ()
 
void ClearRawSpillArrays ()
 
BmnStatus FinishRun ()
 
BmnStatus InitConverter (TString FileName)
 
BmnStatus InitConverter ()
 
BmnStatus wait_file (Int_t len, UInt_t limit=WAIT_LIMIT)
 
void SetRunId (UInt_t v)
 
void SetPeriodId (UInt_t v)
 
UInt_t GetRunId () const
 
UInt_t GetPeriodId () const
 
UInt_t GetNevents () const
 
UInt_t GetEventId () const
 
TTimeStamp GetRunStartTime () const
 
TTimeStamp GetRunEndTime () const
 
TString GetRootFileName ()
 
void SetVerbose (Int_t v)
 
Int_t GetVerbose () const
 
UInt_t GetBoundaryRun (UInt_t nSmpl)
 
void SetRawRootFile (TString filename)
 
void SetRawEventStat ()
 
void SetDecoderConfigFileName (string FileName)
 
TTree * GetRawTree ()
 
TTree * GetRawTreeSpills ()
 
Int_t GetRunIdFromFile (TString name)
 
void SetSaveOutput (bool v)
 
bool GetSaveOutput () const
 
void SetTaskMode (bool v=true)
 
bool GetTaskMode () const
 
void SetForwardMode (bool v=true)
 
bool GetForwardMode () const
 
 BmnRawSource (vector< TString > files, ULong_t period=8)
 
 BmnRawSource (TString file="", TString outfile="", ULong_t nEvents=0, ULong_t period=8, bool save=false)
 
virtual ~BmnRawSource ()
 
bool Init ()
 
Int_t ReadEvent (UInt_t i=0)
 
void Close ()
 
void Reset ()
 
Bool_t SpecifyRunId ()
 
virtual Source_Type GetSourceType ()
 
virtual void SetParUnpackers ()
 
virtual Bool_t InitUnpackers ()
 
virtual Bool_t ReInitUnpackers ()
 
void FillEventHeader (FairEventHeader *feh)
 
BmnStatus ParseJsonTLV (UInt_t *buf, UInt_t &len)
 
BmnStatus ConvertStatEvent (UInt_t *buf, UInt_t &len)
 
BmnStatus ConvertRawToRoot ()
 
BmnStatus ConvertRawToRootIterate (UInt_t *buf, UInt_t len)
 
BmnStatus ConvertRawToRootIterateFile (UInt_t limit=WAIT_LIMIT)
 
BmnStatus ConvertRawToRootIterateFileRead ()
 
void ClearRawArrays ()
 
void ClearRawSpillArrays ()
 
BmnStatus FinishRun ()
 
BmnStatus InitConverter (TString FileName)
 
BmnStatus InitConverter ()
 
BmnStatus wait_file (Int_t len, UInt_t limit=WAIT_LIMIT)
 
void SetRunId (UInt_t v)
 
void SetPeriodId (UInt_t v)
 
UInt_t GetRunId () const
 
UInt_t GetPeriodId () const
 
UInt_t GetNevents () const
 
UInt_t GetEventId () const
 
TTimeStamp GetRunStartTime () const
 
TTimeStamp GetRunEndTime () const
 
TString GetRootFileName ()
 
void SetVerbose (Int_t v)
 
Int_t GetVerbose () const
 
UInt_t GetBoundaryRun (UInt_t nSmpl)
 
void SetRawRootFile (TString filename)
 
void SetRawEventStat ()
 
void SetDecoderConfigFileName (string FileName)
 
TTree * GetRawTree ()
 
TTree * GetRawTreeSpills ()
 
Int_t GetRunIdFromFile (TString name)
 
void SetSaveOutput (bool v)
 
bool GetSaveOutput () const
 
void SetTaskMode (bool v=true)
 
bool GetTaskMode () const
 
void SetForwardMode (bool v=true)
 
bool GetForwardMode () const
 

Detailed Description

Definition at line 49 of file BmnRawSource.h.

Constructor & Destructor Documentation

◆ BmnRawSource() [1/4]

BmnRawSource::BmnRawSource ( vector< TString >  files,
ULong_t  period = 8 
)

◆ BmnRawSource() [2/4]

BmnRawSource::BmnRawSource ( TString  file = "",
TString  outfile = "",
ULong_t  nEvents = 0,
ULong_t  period = 8,
bool  save = false 
)

◆ ~BmnRawSource() [1/2]

BmnRawSource::~BmnRawSource ( )
virtual

Definition at line 108 of file BmnRawSource.cxx.

◆ BmnRawSource() [3/4]

BmnRawSource::BmnRawSource ( vector< TString >  files,
ULong_t  period = 8 
)

◆ BmnRawSource() [4/4]

BmnRawSource::BmnRawSource ( TString  file = "",
TString  outfile = "",
ULong_t  nEvents = 0,
ULong_t  period = 8,
bool  save = false 
)

◆ ~BmnRawSource() [2/2]

virtual BmnRawSource::~BmnRawSource ( )
virtual

Member Function Documentation

◆ ClearRawArrays() [1/2]

void BmnRawSource::ClearRawArrays ( )

Definition at line 1843 of file BmnRawSource.cxx.

References BmnEventHeader::Clear().

◆ ClearRawArrays() [2/2]

void BmnRawSource::ClearRawArrays ( )

◆ ClearRawSpillArrays() [1/2]

void BmnRawSource::ClearRawSpillArrays ( )

Definition at line 1859 of file BmnRawSource.cxx.

◆ ClearRawSpillArrays() [2/2]

void BmnRawSource::ClearRawSpillArrays ( )

◆ Close() [1/2]

void BmnRawSource::Close ( )

Definition at line 215 of file BmnRawSource.cxx.

◆ Close() [2/2]

void BmnRawSource::Close ( )

◆ ConvertRawToRoot() [1/2]

◆ ConvertRawToRoot() [2/2]

BmnStatus BmnRawSource::ConvertRawToRoot ( )

◆ ConvertRawToRootIterate() [1/2]

BmnStatus BmnRawSource::ConvertRawToRootIterate ( UInt_t *  buf,
UInt_t  len 
)

Definition at line 567 of file BmnRawSource.cxx.

Referenced by BmnRawDataDecoder::ConvertRawToRootIterate().

◆ ConvertRawToRootIterate() [2/2]

BmnStatus BmnRawSource::ConvertRawToRootIterate ( UInt_t *  buf,
UInt_t  len 
)

◆ ConvertRawToRootIterateFile() [1/2]

BmnStatus BmnRawSource::ConvertRawToRootIterateFile ( UInt_t  limit = WAIT_LIMIT)

◆ ConvertRawToRootIterateFile() [2/2]

BmnStatus BmnRawSource::ConvertRawToRootIterateFile ( UInt_t  limit = WAIT_LIMIT)

◆ ConvertRawToRootIterateFileRead() [1/2]

◆ ConvertRawToRootIterateFileRead() [2/2]

BmnStatus BmnRawSource::ConvertRawToRootIterateFileRead ( )

◆ ConvertStatEvent() [1/2]

BmnStatus BmnRawSource::ConvertStatEvent ( UInt_t *  buf,
UInt_t &  len 
)

Definition at line 381 of file BmnRawSource.cxx.

References d, kBMNEOS, kBMNSUCCESS, and BmnEventHeader::SetEventType().

Referenced by ConvertRawToRootIterateFileRead().

◆ ConvertStatEvent() [2/2]

BmnStatus BmnRawSource::ConvertStatEvent ( UInt_t *  buf,
UInt_t &  len 
)

◆ FillEventHeader() [1/2]

void BmnRawSource::FillEventHeader ( FairEventHeader *  feh)
inline

Definition at line 79 of file BmnRawSource.h.

◆ FillEventHeader() [2/2]

void BmnRawSource::FillEventHeader ( FairEventHeader *  feh)
inline

Definition at line 79 of file BmnRawSource.h.

◆ FinishRun() [1/2]

BmnStatus BmnRawSource::FinishRun ( )

Definition at line 1867 of file BmnRawSource.cxx.

References kBMNSUCCESS.

◆ FinishRun() [2/2]

BmnStatus BmnRawSource::FinishRun ( )

◆ GetBoundaryRun() [1/2]

UInt_t BmnRawSource::GetBoundaryRun ( UInt_t  nSmpl)
inline

Definition at line 120 of file BmnRawSource.h.

◆ GetBoundaryRun() [2/2]

UInt_t BmnRawSource::GetBoundaryRun ( UInt_t  nSmpl)
inline

Definition at line 120 of file BmnRawSource.h.

◆ GetEventId() [1/2]

UInt_t BmnRawSource::GetEventId ( ) const
inline

Definition at line 108 of file BmnRawSource.h.

Referenced by BmnRawDataDecoder::GetEventId().

◆ GetEventId() [2/2]

UInt_t BmnRawSource::GetEventId ( ) const
inline

Definition at line 108 of file BmnRawSource.h.

◆ GetForwardMode() [1/2]

bool BmnRawSource::GetForwardMode ( ) const
inline

Definition at line 158 of file BmnRawSource.h.

◆ GetForwardMode() [2/2]

bool BmnRawSource::GetForwardMode ( ) const
inline

Definition at line 158 of file BmnRawSource.h.

◆ GetNevents() [1/2]

UInt_t BmnRawSource::GetNevents ( ) const
inline

Definition at line 106 of file BmnRawSource.h.

◆ GetNevents() [2/2]

UInt_t BmnRawSource::GetNevents ( ) const
inline

Definition at line 106 of file BmnRawSource.h.

◆ GetPeriodId() [1/2]

UInt_t BmnRawSource::GetPeriodId ( ) const
inline

Definition at line 104 of file BmnRawSource.h.

◆ GetPeriodId() [2/2]

UInt_t BmnRawSource::GetPeriodId ( ) const
inline

Definition at line 104 of file BmnRawSource.h.

◆ GetRawTree() [1/2]

TTree * BmnRawSource::GetRawTree ( )
inline

Definition at line 142 of file BmnRawSource.h.

Referenced by BmnRawDataDecoder::ConnectForward().

◆ GetRawTree() [2/2]

TTree * BmnRawSource::GetRawTree ( )
inline

Definition at line 142 of file BmnRawSource.h.

◆ GetRawTreeSpills() [1/2]

TTree * BmnRawSource::GetRawTreeSpills ( )
inline

Definition at line 144 of file BmnRawSource.h.

Referenced by BmnRawDataDecoder::ConnectForward().

◆ GetRawTreeSpills() [2/2]

TTree * BmnRawSource::GetRawTreeSpills ( )
inline

Definition at line 144 of file BmnRawSource.h.

◆ GetRootFileName() [1/2]

TString BmnRawSource::GetRootFileName ( )
inline

Definition at line 114 of file BmnRawSource.h.

◆ GetRootFileName() [2/2]

TString BmnRawSource::GetRootFileName ( )
inline

Definition at line 114 of file BmnRawSource.h.

◆ GetRunEndTime() [1/2]

TTimeStamp BmnRawSource::GetRunEndTime ( ) const
inline

Definition at line 112 of file BmnRawSource.h.

Referenced by BmnRawDataDecoder::GetRunEndTime().

◆ GetRunEndTime() [2/2]

TTimeStamp BmnRawSource::GetRunEndTime ( ) const
inline

Definition at line 112 of file BmnRawSource.h.

◆ GetRunId() [1/2]

UInt_t BmnRawSource::GetRunId ( ) const
inline

Definition at line 102 of file BmnRawSource.h.

◆ GetRunId() [2/2]

UInt_t BmnRawSource::GetRunId ( ) const
inline

Definition at line 102 of file BmnRawSource.h.

◆ GetRunIdFromFile() [1/2]

Int_t BmnRawSource::GetRunIdFromFile ( TString  name)

Definition at line 1879 of file BmnRawSource.cxx.

References kWORDSIZE, and RECORD_RUN_NUMBER.

Referenced by BmnRawSource().

◆ GetRunIdFromFile() [2/2]

Int_t BmnRawSource::GetRunIdFromFile ( TString  name)

◆ GetRunStartTime() [1/2]

TTimeStamp BmnRawSource::GetRunStartTime ( ) const
inline

Definition at line 110 of file BmnRawSource.h.

Referenced by BmnRawDataDecoder::GetRunStartTime().

◆ GetRunStartTime() [2/2]

TTimeStamp BmnRawSource::GetRunStartTime ( ) const
inline

Definition at line 110 of file BmnRawSource.h.

◆ GetSaveOutput() [1/2]

bool BmnRawSource::GetSaveOutput ( ) const
inline

Definition at line 150 of file BmnRawSource.h.

◆ GetSaveOutput() [2/2]

bool BmnRawSource::GetSaveOutput ( ) const
inline

Definition at line 150 of file BmnRawSource.h.

◆ GetSourceType() [1/2]

virtual Source_Type BmnRawSource::GetSourceType ( )
inlinevirtual

Definition at line 63 of file BmnRawSource.h.

◆ GetSourceType() [2/2]

virtual Source_Type BmnRawSource::GetSourceType ( )
inlinevirtual

Definition at line 63 of file BmnRawSource.h.

◆ GetTaskMode() [1/2]

bool BmnRawSource::GetTaskMode ( ) const
inline

Definition at line 154 of file BmnRawSource.h.

◆ GetTaskMode() [2/2]

bool BmnRawSource::GetTaskMode ( ) const
inline

Definition at line 154 of file BmnRawSource.h.

◆ GetVerbose() [1/2]

Int_t BmnRawSource::GetVerbose ( ) const
inline

Definition at line 118 of file BmnRawSource.h.

◆ GetVerbose() [2/2]

Int_t BmnRawSource::GetVerbose ( ) const
inline

Definition at line 118 of file BmnRawSource.h.

◆ Init() [1/2]

bool BmnRawSource::Init ( )

Definition at line 110 of file BmnRawSource.cxx.

References ANSI_COLOR_BLUE, ANSI_COLOR_RED, and ANSI_COLOR_RESET.

◆ Init() [2/2]

bool BmnRawSource::Init ( )

◆ InitConverter() [1/4]

BmnStatus BmnRawSource::InitConverter ( )

◆ InitConverter() [2/4]

BmnStatus BmnRawSource::InitConverter ( )

◆ InitConverter() [3/4]

BmnStatus BmnRawSource::InitConverter ( TString  FileName)

◆ InitConverter() [4/4]

BmnStatus BmnRawSource::InitConverter ( TString  FileName)

◆ InitUnpackers() [1/2]

virtual Bool_t BmnRawSource::InitUnpackers ( )
inlinevirtual

Definition at line 67 of file BmnRawSource.h.

◆ InitUnpackers() [2/2]

virtual Bool_t BmnRawSource::InitUnpackers ( )
inlinevirtual

Definition at line 67 of file BmnRawSource.h.

◆ ParseJsonTLV() [1/2]

◆ ParseJsonTLV() [2/2]

BmnStatus BmnRawSource::ParseJsonTLV ( UInt_t *  buf,
UInt_t &  len 
)

◆ ReadEvent() [1/2]

Int_t BmnRawSource::ReadEvent ( UInt_t  i = 0)

◆ ReadEvent() [2/2]

Int_t BmnRawSource::ReadEvent ( UInt_t  i = 0)

◆ ReInitUnpackers() [1/2]

virtual Bool_t BmnRawSource::ReInitUnpackers ( )
inlinevirtual

Definition at line 73 of file BmnRawSource.h.

◆ ReInitUnpackers() [2/2]

virtual Bool_t BmnRawSource::ReInitUnpackers ( )
inlinevirtual

Definition at line 73 of file BmnRawSource.h.

◆ Reset() [1/2]

void BmnRawSource::Reset ( )

Definition at line 239 of file BmnRawSource.cxx.

◆ Reset() [2/2]

void BmnRawSource::Reset ( )

◆ SetDecoderConfigFileName() [1/2]

void BmnRawSource::SetDecoderConfigFileName ( string  FileName)
inline

◆ SetDecoderConfigFileName() [2/2]

void BmnRawSource::SetDecoderConfigFileName ( string  FileName)
inline

Definition at line 136 of file BmnRawSource.h.

◆ SetForwardMode() [1/2]

void BmnRawSource::SetForwardMode ( bool  v = true)
inline

Definition at line 156 of file BmnRawSource.h.

References v.

Referenced by BmnRawDataDecoder::CreateConverter(), and BmnRawDataDecoder::SetForwardMode().

◆ SetForwardMode() [2/2]

void BmnRawSource::SetForwardMode ( bool  v = true)
inline

Definition at line 156 of file BmnRawSource.h.

References v.

◆ SetParUnpackers() [1/2]

virtual void BmnRawSource::SetParUnpackers ( )
inlinevirtual

Definition at line 65 of file BmnRawSource.h.

◆ SetParUnpackers() [2/2]

virtual void BmnRawSource::SetParUnpackers ( )
inlinevirtual

Definition at line 65 of file BmnRawSource.h.

◆ SetPeriodId() [1/2]

void BmnRawSource::SetPeriodId ( UInt_t  v)
inline

Definition at line 100 of file BmnRawSource.h.

References v.

Referenced by BmnRawDataDecoder::SetPeriodId().

◆ SetPeriodId() [2/2]

void BmnRawSource::SetPeriodId ( UInt_t  v)
inline

Definition at line 100 of file BmnRawSource.h.

References v.

◆ SetRawEventStat() [1/2]

void BmnRawSource::SetRawEventStat ( )
inline

Definition at line 130 of file BmnRawSource.h.

References kBMNSTAT, and BmnEventHeader::SetEventType().

Referenced by BmnOnlineDecoder::ProcessStream().

◆ SetRawEventStat() [2/2]

void BmnRawSource::SetRawEventStat ( )
inline

Definition at line 130 of file BmnRawSource.h.

References kBMNSTAT, and BmnEventHeader::SetEventType().

◆ SetRawRootFile() [1/2]

void BmnRawSource::SetRawRootFile ( TString  filename)
inline

Definition at line 128 of file BmnRawSource.h.

◆ SetRawRootFile() [2/2]

void BmnRawSource::SetRawRootFile ( TString  filename)
inline

Definition at line 128 of file BmnRawSource.h.

◆ SetRunId() [1/2]

void BmnRawSource::SetRunId ( UInt_t  v)
inline

Definition at line 98 of file BmnRawSource.h.

References v.

Referenced by BmnRawDataDecoder::CreateConverter(), and BmnRawDataDecoder::SetRunId().

◆ SetRunId() [2/2]

void BmnRawSource::SetRunId ( UInt_t  v)
inline

Definition at line 98 of file BmnRawSource.h.

References v.

◆ SetSaveOutput() [1/2]

void BmnRawSource::SetSaveOutput ( bool  v)
inline

Definition at line 148 of file BmnRawSource.h.

References v.

◆ SetSaveOutput() [2/2]

void BmnRawSource::SetSaveOutput ( bool  v)
inline

Definition at line 148 of file BmnRawSource.h.

References v.

◆ SetTaskMode() [1/2]

void BmnRawSource::SetTaskMode ( bool  v = true)
inline

Definition at line 152 of file BmnRawSource.h.

References v.

Referenced by BmnRawDataDecoder::SetTaskMode().

◆ SetTaskMode() [2/2]

void BmnRawSource::SetTaskMode ( bool  v = true)
inline

Definition at line 152 of file BmnRawSource.h.

References v.

◆ SetVerbose() [1/2]

void BmnRawSource::SetVerbose ( Int_t  v)
inline

Definition at line 116 of file BmnRawSource.h.

References v.

Referenced by BmnRawDataDecoder::CreateConverter().

◆ SetVerbose() [2/2]

void BmnRawSource::SetVerbose ( Int_t  v)
inline

Definition at line 116 of file BmnRawSource.h.

References v.

◆ SpecifyRunId() [1/2]

Bool_t BmnRawSource::SpecifyRunId ( )
inline

Definition at line 61 of file BmnRawSource.h.

◆ SpecifyRunId() [2/2]

Bool_t BmnRawSource::SpecifyRunId ( )
inline

Definition at line 61 of file BmnRawSource.h.

◆ wait_file() [1/2]

BmnStatus BmnRawSource::wait_file ( Int_t  len,
UInt_t  limit = WAIT_LIMIT 
)

Definition at line 549 of file BmnRawSource.cxx.

References kBMNERROR, and kBMNSUCCESS.

◆ wait_file() [2/2]

BmnStatus BmnRawSource::wait_file ( Int_t  len,
UInt_t  limit = WAIT_LIMIT 
)

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