|
BmnRoot
|
#include <BmnRawSource.h>
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 |
Definition at line 49 of file BmnRawSource.h.
| BmnRawSource::BmnRawSource | ( | vector< TString > | files, |
| ULong_t | period = 8 |
||
| ) |
| BmnRawSource::BmnRawSource | ( | TString | file = "", |
| TString | outfile = "", |
||
| ULong_t | nEvents = 0, |
||
| ULong_t | period = 8, |
||
| bool | save = false |
||
| ) |
Definition at line 39 of file BmnRawSource.cxx.
References BmnFileProp::GetRunId(), GetRunIdFromFile(), BmnConverterTools::GetSubNameAfterRunId(), and BmnConverterTools::ParseRawFileName().
|
virtual |
Definition at line 108 of file BmnRawSource.cxx.
| BmnRawSource::BmnRawSource | ( | vector< TString > | files, |
| ULong_t | period = 8 |
||
| ) |
| BmnRawSource::BmnRawSource | ( | TString | file = "", |
| TString | outfile = "", |
||
| ULong_t | nEvents = 0, |
||
| ULong_t | period = 8, |
||
| bool | save = false |
||
| ) |
|
virtual |
| void BmnRawSource::ClearRawArrays | ( | ) |
Definition at line 1843 of file BmnRawSource.cxx.
References BmnEventHeader::Clear().
| void BmnRawSource::ClearRawArrays | ( | ) |
| void BmnRawSource::ClearRawSpillArrays | ( | ) |
Definition at line 1859 of file BmnRawSource.cxx.
| void BmnRawSource::ClearRawSpillArrays | ( | ) |
| void BmnRawSource::Close | ( | ) |
Definition at line 215 of file BmnRawSource.cxx.
| void BmnRawSource::Close | ( | ) |
| BmnStatus BmnRawSource::ConvertRawToRoot | ( | ) |
Definition at line 406 of file BmnRawSource.cxx.
References UniRawFile::CalculateFileHash(), UniRawFile::CheckRawFileExists(), ConvertRawToRootIterateFileRead(), UniRawFile::CreateRawFile(), UniRawFile::GetEndEvent(), UniRawFile::GetRawFiles(), UniRawFile::GetStartEvent(), InitConverter(), kBMNERROR, kBMNSUCCESS, BmnSpillInfo::start_ts, BmnSpillInfo::stop_ts, BmnThreadManager< T >::Terminate(), and BmnFunctionSet::TimePoint2String().
Referenced by BmnRawDataDecoder::ConvertRawToRoot().
| BmnStatus BmnRawSource::ConvertRawToRoot | ( | ) |
| BmnStatus BmnRawSource::ConvertRawToRootIterate | ( | UInt_t * | buf, |
| UInt_t | len | ||
| ) |
Definition at line 567 of file BmnRawSource.cxx.
Referenced by BmnRawDataDecoder::ConvertRawToRootIterate().
| BmnStatus BmnRawSource::ConvertRawToRootIterate | ( | UInt_t * | buf, |
| UInt_t | len | ||
| ) |
| BmnStatus BmnRawSource::ConvertRawToRootIterateFile | ( | UInt_t | limit = WAIT_LIMIT | ) |
Definition at line 575 of file BmnRawSource.cxx.
References ConvertRawToRootIterateFileRead(), kBMNCONTINUE, kBMNERROR, and kBMNSUCCESS.
| BmnStatus BmnRawSource::ConvertRawToRootIterateFile | ( | UInt_t | limit = WAIT_LIMIT | ) |
| BmnStatus BmnRawSource::ConvertRawToRootIterateFileRead | ( | ) |
Definition at line 594 of file BmnRawSource.cxx.
References ANSI_COLOR_BLUE, ANSI_COLOR_RESET, ConvertStatEvent(), kBMNCONTINUE, kBMNEMPTY, kBMNEOS, kBMNERROR, kBMNPAYLOAD, kBMNSTAT, kBMNSUCCESS, kNBYTESINWORD, kWORDSIZE, BmnConverterTools::ParseComplexTLV(), ParseJsonTLV(), SYNC_EOS, SYNC_EVENT, SYNC_EVENT_OLD, SYNC_FILE_BEGIN, SYNC_FILE_END, SYNC_JSON, SYNC_RUN_START, SYNC_RUN_STOP, and SYNC_STAT.
Referenced by ConvertRawToRoot(), ConvertRawToRootIterateFile(), and ReadEvent().
| BmnStatus BmnRawSource::ConvertRawToRootIterateFileRead | ( | ) |
| 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().
| BmnStatus BmnRawSource::ConvertStatEvent | ( | UInt_t * | buf, |
| UInt_t & | len | ||
| ) |
|
inline |
Definition at line 79 of file BmnRawSource.h.
|
inline |
Definition at line 79 of file BmnRawSource.h.
| BmnStatus BmnRawSource::FinishRun | ( | ) |
Definition at line 1867 of file BmnRawSource.cxx.
References kBMNSUCCESS.
| BmnStatus BmnRawSource::FinishRun | ( | ) |
|
inline |
Definition at line 120 of file BmnRawSource.h.
|
inline |
Definition at line 120 of file BmnRawSource.h.
|
inline |
Definition at line 108 of file BmnRawSource.h.
Referenced by BmnRawDataDecoder::GetEventId().
|
inline |
Definition at line 108 of file BmnRawSource.h.
|
inline |
Definition at line 158 of file BmnRawSource.h.
|
inline |
Definition at line 158 of file BmnRawSource.h.
|
inline |
Definition at line 106 of file BmnRawSource.h.
|
inline |
Definition at line 106 of file BmnRawSource.h.
|
inline |
Definition at line 104 of file BmnRawSource.h.
|
inline |
Definition at line 104 of file BmnRawSource.h.
|
inline |
Definition at line 142 of file BmnRawSource.h.
Referenced by BmnRawDataDecoder::ConnectForward().
|
inline |
Definition at line 142 of file BmnRawSource.h.
|
inline |
Definition at line 144 of file BmnRawSource.h.
Referenced by BmnRawDataDecoder::ConnectForward().
|
inline |
Definition at line 144 of file BmnRawSource.h.
|
inline |
Definition at line 114 of file BmnRawSource.h.
|
inline |
Definition at line 114 of file BmnRawSource.h.
|
inline |
Definition at line 112 of file BmnRawSource.h.
Referenced by BmnRawDataDecoder::GetRunEndTime().
|
inline |
Definition at line 112 of file BmnRawSource.h.
|
inline |
Definition at line 102 of file BmnRawSource.h.
|
inline |
Definition at line 102 of file BmnRawSource.h.
| Int_t BmnRawSource::GetRunIdFromFile | ( | TString | name | ) |
Definition at line 1879 of file BmnRawSource.cxx.
References kWORDSIZE, and RECORD_RUN_NUMBER.
Referenced by BmnRawSource().
| Int_t BmnRawSource::GetRunIdFromFile | ( | TString | name | ) |
|
inline |
Definition at line 110 of file BmnRawSource.h.
Referenced by BmnRawDataDecoder::GetRunStartTime().
|
inline |
Definition at line 110 of file BmnRawSource.h.
|
inline |
Definition at line 150 of file BmnRawSource.h.
|
inline |
Definition at line 150 of file BmnRawSource.h.
|
inlinevirtual |
Definition at line 63 of file BmnRawSource.h.
|
inlinevirtual |
Definition at line 63 of file BmnRawSource.h.
|
inline |
Definition at line 154 of file BmnRawSource.h.
|
inline |
Definition at line 154 of file BmnRawSource.h.
|
inline |
Definition at line 118 of file BmnRawSource.h.
|
inline |
Definition at line 118 of file BmnRawSource.h.
| bool BmnRawSource::Init | ( | ) |
Definition at line 110 of file BmnRawSource.cxx.
References ANSI_COLOR_BLUE, ANSI_COLOR_RED, and ANSI_COLOR_RESET.
| bool BmnRawSource::Init | ( | ) |
| BmnStatus BmnRawSource::InitConverter | ( | ) |
Definition at line 181 of file BmnRawSource.cxx.
References BmnThreadManager< T >::Add(), ANSI_COLOR_BLUE, ANSI_COLOR_RESET, i, and kBMNSUCCESS.
Referenced by ConvertRawToRoot(), and InitConverter().
| BmnStatus BmnRawSource::InitConverter | ( | ) |
| BmnStatus BmnRawSource::InitConverter | ( | TString | FileName | ) |
Definition at line 154 of file BmnRawSource.cxx.
References ANSI_COLOR_BLUE, ANSI_COLOR_RED, ANSI_COLOR_RESET, InitConverter(), and kBMNERROR.
Referenced by BmnRawDataDecoder::InitConverter(), and BmnRawDataDecoder::InitConverter().
| BmnStatus BmnRawSource::InitConverter | ( | TString | FileName | ) |
|
inlinevirtual |
Definition at line 67 of file BmnRawSource.h.
|
inlinevirtual |
Definition at line 67 of file BmnRawSource.h.
| BmnStatus BmnRawSource::ParseJsonTLV | ( | UInt_t * | buf, |
| UInt_t & | len | ||
| ) |
Definition at line 293 of file BmnRawSource.cxx.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::begin(), d, nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::end(), kBMNERROR, kBMNSUCCESS, kNBYTESINWORD, nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::parse(), BmnConverterTools::ParseJsonConfig(), BmnConverterTools::ParseJsonStatus(), SpillStatus::start_ts, BmnSpillInfo::stop_ts, SpillStatus::stop_ts, BmnFunctionSet::TimePoint2String(), and SpillStatus::times_valid.
Referenced by ConvertRawToRootIterateFileRead(), and BmnOnlineDecoder::ProcessStream().
| BmnStatus BmnRawSource::ParseJsonTLV | ( | UInt_t * | buf, |
| UInt_t & | len | ||
| ) |
| Int_t BmnRawSource::ReadEvent | ( | UInt_t | i = 0 | ) |
Definition at line 241 of file BmnRawSource.cxx.
References ConvertRawToRootIterateFileRead(), kBMNPAYLOAD, kBMNPEDESTAL, and kBMNSUCCESS.
| Int_t BmnRawSource::ReadEvent | ( | UInt_t | i = 0 | ) |
|
inlinevirtual |
Definition at line 73 of file BmnRawSource.h.
|
inlinevirtual |
Definition at line 73 of file BmnRawSource.h.
| void BmnRawSource::Reset | ( | ) |
Definition at line 239 of file BmnRawSource.cxx.
| void BmnRawSource::Reset | ( | ) |
|
inline |
Definition at line 136 of file BmnRawSource.h.
Referenced by BmnRawDataDecoder::CreateConverter(), and BmnRawDataDecoder::SetDecoderConfigFileName().
|
inline |
Definition at line 136 of file BmnRawSource.h.
|
inline |
Definition at line 156 of file BmnRawSource.h.
References v.
Referenced by BmnRawDataDecoder::CreateConverter(), and BmnRawDataDecoder::SetForwardMode().
|
inline |
Definition at line 156 of file BmnRawSource.h.
References v.
|
inlinevirtual |
Definition at line 65 of file BmnRawSource.h.
|
inlinevirtual |
Definition at line 65 of file BmnRawSource.h.
|
inline |
Definition at line 100 of file BmnRawSource.h.
References v.
Referenced by BmnRawDataDecoder::SetPeriodId().
|
inline |
Definition at line 100 of file BmnRawSource.h.
References v.
|
inline |
Definition at line 130 of file BmnRawSource.h.
References kBMNSTAT, and BmnEventHeader::SetEventType().
Referenced by BmnOnlineDecoder::ProcessStream().
|
inline |
Definition at line 130 of file BmnRawSource.h.
References kBMNSTAT, and BmnEventHeader::SetEventType().
|
inline |
Definition at line 128 of file BmnRawSource.h.
|
inline |
Definition at line 128 of file BmnRawSource.h.
|
inline |
Definition at line 98 of file BmnRawSource.h.
References v.
Referenced by BmnRawDataDecoder::CreateConverter(), and BmnRawDataDecoder::SetRunId().
|
inline |
Definition at line 98 of file BmnRawSource.h.
References v.
|
inline |
Definition at line 148 of file BmnRawSource.h.
References v.
|
inline |
Definition at line 148 of file BmnRawSource.h.
References v.
|
inline |
Definition at line 152 of file BmnRawSource.h.
References v.
Referenced by BmnRawDataDecoder::SetTaskMode().
|
inline |
Definition at line 152 of file BmnRawSource.h.
References v.
|
inline |
Definition at line 116 of file BmnRawSource.h.
References v.
Referenced by BmnRawDataDecoder::CreateConverter().
|
inline |
Definition at line 116 of file BmnRawSource.h.
References v.
|
inline |
Definition at line 61 of file BmnRawSource.h.
|
inline |
Definition at line 61 of file BmnRawSource.h.
| BmnStatus BmnRawSource::wait_file | ( | Int_t | len, |
| UInt_t | limit = WAIT_LIMIT |
||
| ) |
Definition at line 549 of file BmnRawSource.cxx.
References kBMNERROR, and kBMNSUCCESS.
| BmnStatus BmnRawSource::wait_file | ( | Int_t | len, |
| UInt_t | limit = WAIT_LIMIT |
||
| ) |