|
BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
|
#include <BmnConverterTools.h>
Static Public Member Functions | |
| static BmnStatus | ParseComplexTLV (const uint32_t *buf, UInt_t &len, UInt_t &runId) |
| static SpillStatus | ParseJsonStatus (json &j, Int_t tai_utc_dif=0) |
| static BmnStatus | ParseJsonConfig (json &j, BmnTrigConfig &trig_conf) |
| static SysPoint | ParseTAI (json &j, Int_t tai_utc_dif=0) |
| static BmnStatus | ParseRawT0TextConfig (string &s, BmnT0Raw *rt0dig) |
| static BmnStatus | ParseRawFileName (const TString &s, BmnFileProp &prop) |
| static BmnStatus | ParseRawFileName (const string &s, BmnFileProp &prop) |
| static TString | GetSubNameAfterRunId (TString name) |
| static BmnT0Raw * | Process_T0Raw (const uint32_t *d, uint32_t len, TClonesArray *t0raw=nullptr) |
| template<typename IntType, typename LamType> | |
| static BmnStatus | Process_ADC64 (const uint32_t *d, UInt_t len, UInt_t serial, LamType arr_selector) |
| Parse ADC64 format Mstream Waveform V2 from https://afi.jinr.ru/MStreamWaveformDigitizer. | |
Private Types | |
| enum | T0Config { Comment , Discriminators , DelayLines , Switches , LV , BDMult , ExtraDelaysMask , Undefined } |
Static Private Member Functions | |
| template<typename ArrType> | |
| static void | TakeDataWords (UInt_t n, const uint32_t *d, ArrType &valI) |
| static T0Config | GetT0Cfg (string str) |
Definition at line 33 of file BmnConverterTools.h.
|
private |
| Enumerator | |
|---|---|
| Comment | |
| Discriminators | |
| DelayLines | |
| Switches | |
| LV | |
| BDMult | |
| ExtraDelaysMask | |
| Undefined | |
Definition at line 116 of file BmnConverterTools.h.
Definition at line 488 of file BmnConverterTools.cxx.
References TPRegexp::MatchB(), and TPRegexp::Substitute().
Referenced by BmnRawDataDecoder::BmnRawDataDecoder(), BmnRawSource::BmnRawSource(), and BmnConverter::FeedFile().
|
staticprivate |
Definition at line 18 of file BmnConverterTools.cxx.
References BDMult, Comment, DelayLines, Discriminators, ExtraDelaysMask, LV, Switches, and Undefined.
Referenced by ParseRawT0TextConfig().
|
static |
Definition at line 432 of file BmnConverterTools.cxx.
References d, TString::Data(), kBMNERROR, kBMNSUCCESS, kNBYTESINWORD, RECORD_EVENT_ORDER, RECORD_FILE_ID, RECORD_RUN_INDEX, and RECORD_RUN_NUMBER.
Referenced by BmnConverter::ConvertRawToRootIterateFileRead(), BmnRawSource::ConvertRawToRootIterateFileRead(), and BmnOnlineDecoder::ProcessStream().
|
static |
Definition at line 388 of file BmnConverterTools.cxx.
References BmnTrigChannelConfig::after_protect_en, BmnTrigChannelConfig::after_protect_time, BmnTrigChannelConfig::before_protect_en, BmnTrigChannelConfig::before_protect_time, BmnTrigChannelConfig::delay, kBMNERROR, kBMNSUCCESS, BmnTrigChannelConfig::reduction_en, BmnTrigChannelConfig::reduction_factor, BmnTrigConfig::SetCalibCount(), BmnTrigConfig::SetCalibEn(), BmnTrigConfig::SetMatchWindow(), BmnTrigConfig::SetReadChannelMask(), BmnTrigConfig::SetStartChannelMask(), BmnTrigConfig::SetTrigDelay(), TRC_CLOCK_NS, and BmnTrigConfig::TrigChannelConfig().
Referenced by BmnConverter::ParseJsonTLV(), and BmnRawSource::ParseJsonTLV().
|
static |
Definition at line 304 of file BmnConverterTools.cxx.
References SpillStatus::app_ts, SpillStatus::CheckTimes(), SpillCntrs< counters_count >::cntr_after_err, SpillCntrs< counters_count >::cntr_befor_err, SpillCntrs< counters_count >::cntr_input, SpillCntrs< counters_count >::cntr_input_after_red, SpillStatus::counters, SpillStatus::counters_cnt, SpillStatus::cur_spill_time_ms, SpillStatus::device_ts, i, min(), ParseTAI(), SpillStatus::phase, SpillStatus::spill_cnt, SpillStatus::start_ts, SpillStatus::stop_ts, and BmnFunctionSet::TimePoint2String().
Referenced by BmnConverter::ParseJsonTLV(), and BmnRawSource::ParseJsonTLV().
|
static |
Definition at line 511 of file BmnConverterTools.cxx.
References BmnFileProp::GetEventOrder(), BmnFileProp::GetFileId(), BmnFileProp::GetRunId(), kBMNERROR, kBMNSUCCESS, BmnFileProp::SetEventOrder(), BmnFileProp::SetFileId(), BmnFileProp::SetRunId(), and BmnFileProp::SetRunIndex().
|
static |
Definition at line 506 of file BmnConverterTools.cxx.
References TString::Data(), and ParseRawFileName().
Referenced by BmnRawDataDecoder::BmnRawDataDecoder(), BmnRawSource::BmnRawSource(), BmnOnlineDecoder::BatchDirectory(), BmnOnlineDecoder::BatchDirectoryToSocket(), BmnConverter::FeedFile(), BmnOnlineDecoder::InitDecoder(), and ParseRawFileName().
Definition at line 130 of file BmnConverterTools.cxx.
References BDMult, IndentedConfigParser::Node::children, Comment, DelayLines, BmnT0Raw::DelayLines(), Discriminators, BmnT0Raw::Discriminators(), ExtraDelaysMask, GetT0Cfg(), kBMNERROR, kBMNSUCCESS, LV, BmnT0Raw::LVChannelConfig(), IndentedConfigParser::ParseIStringStream(), BmnT0Raw::SetBDMultH(), BmnT0Raw::SetBDMultL(), BmnT0Raw::SetComment(), BmnT0Raw::SetExtraDelaysMask(), Switches, BmnT0Raw::Switches(), and thr.
Referenced by Process_T0Raw().
Definition at line 37 of file BmnConverterTools.cxx.
Referenced by ParseJsonStatus().
|
inlinestatic |
| d | Data array ptr |
| len | payload length |
| serial | Serial number |
| arr_selector | Function for appropriate TClonesArray selection |
Definition at line 57 of file BmnConverterTools.h.
References TTimeStamp::AsString(), d, TObjArray::GetEntriesFast(), kBMNERROR, kBMNSUCCESS, kNBYTESINWORD, and TakeDataWords().
Referenced by BmnConverterThread::ProcessEvent(), and BmnRawSource::ProcessEvent().
|
static |
Definition at line 45 of file BmnConverterTools.cxx.
References TTimeStamp::AsString(), d, TObjArray::GetEntriesFast(), TTimeStamp::GetNanoSec(), TTimeStamp::GetSec(), i, kBMNERROR, kT0_BIN_BLOCK_2020_SEC, kT0_BIN_BLOCK_BYTES, kT0_BIN_BLOCK_TIME_TXT, kT0_BIN_BLOCK_UNIX_SEC, kT0_BIN_BLOCK_WORDS, kWORDSIZE, ParseRawT0TextConfig(), TClonesArray::Remove(), BmnT0Raw::SetTime(), BmnT0Raw::SetTriggerMask(), BmnT0Raw::SetTS(), and BmnFunctionSet::TimePoint2String().
Referenced by BmnConverterThread::FillVirtualDevice(), BmnRawSource::FillVirtualDevice(), and BmnT0RawReader::ParseFile().
|
inlinestaticprivate |
Definition at line 129 of file BmnConverterTools.h.
References d.
Referenced by Process_ADC64().