BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnConverterTools Class Reference

#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)

Detailed Description

Definition at line 33 of file BmnConverterTools.h.

Member Enumeration Documentation

◆ T0Config

Enumerator
Comment 
Discriminators 
DelayLines 
Switches 
LV 
BDMult 
ExtraDelaysMask 
Undefined 

Definition at line 116 of file BmnConverterTools.h.

Member Function Documentation

◆ GetSubNameAfterRunId()

TString BmnConverterTools::GetSubNameAfterRunId ( TString name)
static

Definition at line 488 of file BmnConverterTools.cxx.

References TPRegexp::MatchB(), and TPRegexp::Substitute().

Referenced by BmnRawDataDecoder::BmnRawDataDecoder(), BmnRawSource::BmnRawSource(), and BmnConverter::FeedFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetT0Cfg()

BmnConverterTools::T0Config BmnConverterTools::GetT0Cfg ( string str)
staticprivate

Definition at line 18 of file BmnConverterTools.cxx.

References BDMult, Comment, DelayLines, Discriminators, ExtraDelaysMask, LV, Switches, and Undefined.

Referenced by ParseRawT0TextConfig().

Here is the caller graph for this function:

◆ ParseComplexTLV()

BmnStatus BmnConverterTools::ParseComplexTLV ( const uint32_t * buf,
UInt_t & len,
UInt_t & runId )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseJsonConfig()

BmnStatus BmnConverterTools::ParseJsonConfig ( json & j,
BmnTrigConfig & trig_conf )
static

◆ ParseJsonStatus()

SpillStatus BmnConverterTools::ParseJsonStatus ( json & j,
Int_t tai_utc_dif = 0 )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseRawFileName() [1/2]

BmnStatus BmnConverterTools::ParseRawFileName ( const string & s,
BmnFileProp & prop )
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().

Here is the call graph for this function:

◆ ParseRawFileName() [2/2]

BmnStatus BmnConverterTools::ParseRawFileName ( const TString & s,
BmnFileProp & prop )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseRawT0TextConfig()

BmnStatus BmnConverterTools::ParseRawT0TextConfig ( string & s,
BmnT0Raw * rt0dig )
static

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseTAI()

SysPoint BmnConverterTools::ParseTAI ( json & j,
Int_t tai_utc_dif = 0 )
static

Definition at line 37 of file BmnConverterTools.cxx.

Referenced by ParseJsonStatus().

Here is the caller graph for this function:

◆ Process_ADC64()

template<typename IntType, typename LamType>
BmnStatus BmnConverterTools::Process_ADC64 ( const uint32_t * d,
UInt_t len,
UInt_t serial,
LamType arr_selector )
inlinestatic
Parameters
dData array ptr
lenpayload length
serialSerial number
arr_selectorFunction for appropriate TClonesArray selection
Returns
kBMNSUCCESS

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Process_T0Raw()

BmnT0Raw * BmnConverterTools::Process_T0Raw ( const uint32_t * d,
uint32_t len,
TClonesArray * t0raw = nullptr )
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TakeDataWords()

template<typename ArrType>
void BmnConverterTools::TakeDataWords ( UInt_t n,
const uint32_t * d,
ArrType & valI )
inlinestaticprivate

Definition at line 129 of file BmnConverterTools.h.

References d.

Referenced by Process_ADC64().

Here is the caller graph for this function:

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