BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnRawSource Class Reference

#include <BmnRawSource.h>

Inheritance diagram for BmnRawSource:
Collaboration diagram for BmnRawSource:

Public Member Functions

 BmnRawSource (vector< TString > files, uint32_t period=8)
 BmnRawSource (TString file="", TString outfile="", uint32_t nEvents=0, uint32_t period=8, bool save=false)
virtual ~BmnRawSource () override
virtual bool Init () override
virtual Int_t ReadEvent (uint32_t i=0) override
virtual bool SpecifyRunId () override
virtual void Close () override
virtual void Reset () override
virtual Source_Type GetSourceType () override
virtual void SetParUnpackers () override
virtual bool InitUnpackers () override
virtual bool ReInitUnpackers () override
virtual void FillEventHeader (FairEventHeader *feh) override
BmnStatus ParseJsonTLV (const uint32_t *buf, uint32_t &len)
BmnStatus ConvertStatEvent (const uint32_t *buf, uint32_t &len)
BmnStatus ConvertRawToRoot ()
BmnStatus ConvertRawToRootIterate (const uint32_t *buf, uint32_t len)
BmnStatus ConvertRawToRootIterateFile (uint32_t limit=WAIT_LIMIT)
BmnStatus ConvertRawToRootIterateFileRead ()
void ClearRawArrays ()
void ClearRawSpillArrays ()
BmnStatus FinishRun ()
BmnStatus InitConverter (TString FileName)
BmnStatus InitConverter ()
void SetRunId (uint32_t v)
void SetPeriodId (uint32_t v)
uint32_t GetRunId () const
uint32_t GetPeriodId () const
uint32_t GetNevents () const
uint32_t GetEventId () const
TTimeStamp GetRunStartTime () const
TTimeStamp GetRunEndTime () const
TString GetRootFileName ()
void SetVerbose (Int_t v)
Int_t GetVerbose () const
uint32_t GetBoundaryRun (uint32_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, uint32_t period=8)
 BmnRawSource (TString file="", TString outfile="", uint32_t nEvents=0, uint32_t period=8, bool save=false)
virtual ~BmnRawSource () override
virtual bool Init () override
virtual Int_t ReadEvent (uint32_t i=0) override
virtual bool SpecifyRunId () override
virtual void Close () override
virtual void Reset () override
virtual Source_Type GetSourceType () override
virtual void SetParUnpackers () override
virtual bool InitUnpackers () override
virtual bool ReInitUnpackers () override
virtual void FillEventHeader (FairEventHeader *feh) override
BmnStatus ParseJsonTLV (const uint32_t *buf, uint32_t &len)
BmnStatus ConvertStatEvent (const uint32_t *buf, uint32_t &len)
BmnStatus ConvertRawToRoot ()
BmnStatus ConvertRawToRootIterate (const uint32_t *buf, uint32_t len)
BmnStatus ConvertRawToRootIterateFile (uint32_t limit=WAIT_LIMIT)
BmnStatus ConvertRawToRootIterateFileRead ()
void ClearRawArrays ()
void ClearRawSpillArrays ()
BmnStatus FinishRun ()
BmnStatus InitConverter (TString FileName)
BmnStatus InitConverter ()
void SetRunId (uint32_t v)
void SetPeriodId (uint32_t v)
uint32_t GetRunId () const
uint32_t GetPeriodId () const
uint32_t GetNevents () const
uint32_t GetEventId () const
TTimeStamp GetRunStartTime () const
TTimeStamp GetRunEndTime () const
TString GetRootFileName ()
void SetVerbose (Int_t v)
Int_t GetVerbose () const
uint32_t GetBoundaryRun (uint32_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

Private Member Functions

template<typename BrType>
void BranchRegFun (TString name, BrType **ar, TTree *tree=nullptr)
BmnStatus InitUTCShift ()
Int_t GetUTCShift (TTimeStamp t)
BmnStatus GetT0Info (Double_t &t0time, Double_t &t0width)
BmnStatus ProcessEvent (const uint32_t *data, uint32_t len)
void QuickProcessEvent (const uint32_t *d, uint32_t len)
void FinalizeStat ()
 Finishes the spill during raw conversion.
BmnStatus Process_FVME (const uint32_t *data, uint32_t len, uint32_t serial, BmnTrigInfo &spillInfo)
BmnStatus Process_HRB (const uint32_t *data, uint32_t len, uint32_t serial)
BmnStatus FillU40VE (const uint32_t *d, uint32_t slot, uint32_t &idx, BmnTrigInfo &spillInfo)
BmnStatus FillBlockTDC (const uint32_t *d, uint32_t serial, uint16_t &len, TClonesArray *ar, uint32_t modid)
BmnStatus FillBlockADC (const uint32_t *d, uint32_t serial, uint8_t channel, uint16_t &len, TClonesArray *ar)
BmnStatus FillTDC (const uint32_t *d, uint32_t serial, uint32_t slot, uint32_t modId, uint32_t &idx)
BmnStatus FillTQDC (const uint32_t *d, uint32_t serial, uint32_t slot, uint32_t modId, uint32_t &idx)
BmnStatus FillTQDC_E (const uint32_t *d, uint32_t serial, uint32_t &len)
 Parse TQDC16VS-E MStream data block https://afi.jinr.ru/DataFormatTQDC16VSE.
BmnStatus FillMSC16VE_E (const uint32_t *d, const DeviceHeader *dev_hdr)
 Parse MSC16VE-E MStream data block https://afi.jinr.ru/DataFormatMSC_ETH https://afi.jinr.ru/DataFormatMSC_ETH_V2.
BmnStatus FillTDC72VXS (const uint32_t *d, uint32_t serial, uint32_t &len, uint32_t modid)
 https://afi.jinr.ru/TDC72VXS_DataFormat
BmnStatus FillTTVXS (const uint32_t *d, uint32_t serial, uint32_t &len)
 https://afi.jinr.ru/TTVXS_DataFormat
BmnStatus ProcessGenericDevice (const uint32_t *d, const DeviceHeader *dev_hdr)
BmnStatus FillTDC250HGND (const uint32_t *d, uint32_t serial, uint32_t len)
 Parse custom HGND TDC data block.
BmnStatus MapVSP (const uint32_t *d, const DeviceHeader *dev_hdr)
 Parse VSP data block.
BmnStatus FillVSP (TClonesArray *ar)
BmnStatus FillUT24VE_TRC (const uint32_t *d, uint32_t &serial, uint32_t &len)
 Parse UT24VE-TRC MStream data block https://afi.jinr.ru/DataFormatUT24VE-TRC.
BmnStatus FillVirtualDevice (const uint32_t *d, const DeviceHeader *dh)
BmnStatus FillFVME2TMWR (const uint32_t *d, uint32_t serial, uint32_t &idx, uint32_t &len)
BmnSyncDigit * FillWR (uint32_t iSerial, uint64_t iEvent, int64_t t_sec, int64_t t_ns)
BmnStatus FillMSC (const uint32_t *d, uint32_t serial, uint32_t slot, uint32_t &idx)
 Old MSC format (periodId < 8, one record for spill).
BmnStatus LoadConfig ()
void RegisterBranches ()
void RegisterSpillBranches ()
template<typename BrType>
void BranchRegFun (TString name, BrType **ar, TTree *tree=nullptr)
BmnStatus InitUTCShift ()
Int_t GetUTCShift (TTimeStamp t)
BmnStatus GetT0Info (Double_t &t0time, Double_t &t0width)
BmnStatus ProcessEvent (const uint32_t *data, uint32_t len)
void QuickProcessEvent (const uint32_t *d, uint32_t len)
void FinalizeStat ()
 Finishes the spill during raw conversion.
BmnStatus Process_FVME (const uint32_t *data, uint32_t len, uint32_t serial, BmnTrigInfo &spillInfo)
BmnStatus Process_HRB (const uint32_t *data, uint32_t len, uint32_t serial)
BmnStatus FillU40VE (const uint32_t *d, uint32_t slot, uint32_t &idx, BmnTrigInfo &spillInfo)
BmnStatus FillBlockTDC (const uint32_t *d, uint32_t serial, uint16_t &len, TClonesArray *ar, uint32_t modid)
BmnStatus FillBlockADC (const uint32_t *d, uint32_t serial, uint8_t channel, uint16_t &len, TClonesArray *ar)
BmnStatus FillTDC (const uint32_t *d, uint32_t serial, uint32_t slot, uint32_t modId, uint32_t &idx)
BmnStatus FillTQDC (const uint32_t *d, uint32_t serial, uint32_t slot, uint32_t modId, uint32_t &idx)
BmnStatus FillTQDC_E (const uint32_t *d, uint32_t serial, uint32_t &len)
 Parse TQDC16VS-E MStream data block https://afi.jinr.ru/DataFormatTQDC16VSE.
BmnStatus FillMSC16VE_E (const uint32_t *d, const DeviceHeader *dev_hdr)
 Parse MSC16VE-E MStream data block https://afi.jinr.ru/DataFormatMSC_ETH https://afi.jinr.ru/DataFormatMSC_ETH_V2.
BmnStatus FillTDC72VXS (const uint32_t *d, uint32_t serial, uint32_t &len, uint32_t modid)
 https://afi.jinr.ru/TDC72VXS_DataFormat
BmnStatus FillTTVXS (const uint32_t *d, uint32_t serial, uint32_t &len)
 https://afi.jinr.ru/TTVXS_DataFormat
BmnStatus ProcessGenericDevice (const uint32_t *d, const DeviceHeader *dev_hdr)
BmnStatus FillTDC250HGND (const uint32_t *d, uint32_t serial, uint32_t len)
 Parse custom HGND TDC data block.
BmnStatus MapVSP (const uint32_t *d, const DeviceHeader *dev_hdr)
 Parse VSP data block.
BmnStatus FillVSP (TClonesArray *ar)
BmnStatus FillUT24VE_TRC (const uint32_t *d, uint32_t &serial, uint32_t &len)
 Parse UT24VE-TRC MStream data block https://afi.jinr.ru/DataFormatUT24VE-TRC.
BmnStatus FillVirtualDevice (const uint32_t *d, const DeviceHeader *dh)
BmnStatus FillFVME2TMWR (const uint32_t *d, uint32_t serial, uint32_t &idx, uint32_t &len)
BmnSyncDigit * FillWR (uint32_t iSerial, uint64_t iEvent, int64_t t_sec, int64_t t_ns)
BmnStatus FillMSC (const uint32_t *d, uint32_t serial, uint32_t slot, uint32_t &idx)
 Old MSC format (periodId < 8, one record for spill).
BmnStatus LoadConfig ()
void RegisterBranches ()
void RegisterSpillBranches ()

Private Attributes

BmnThreadManager< BmnConverterThread > * fThreads
const TTimeStamp TimeZero = TTimeStamp(time_t(0), 0)
Double_t workTime_cpu = 0.0
Double_t workTime_real = 0.0
pt::ptree conf
bool isSpillStart
bool isTaskMode
bool isForwardMode
uint32_t fSpillCntr
BmnEventType fCurEvType = kBMNPAYLOAD
BmnEventType fPrevEvType = kBMNPAYLOAD
bool isRawRootInputFile
uint32_t fRunId
uint32_t fPeriodId
uint32_t fEventId
uint32_t fNTotalEvents
uint32_t fNSignalEvents
uint32_t fStartEventId
int64_t fTime_s
int64_t fTime_ns
TTimeStamp fRunStartTime
TTimeStamp fRunEndTime
int64_t fLengthRawFile
int64_t fCurentPositionRawFile
TTree * fRawTree
TTree * fRawTreeSpills
string fDecoderConfigFileName
TString fRootFileName
TString fRawFileName
TString fSubName
TString fRawRunHdrName
TString fMetadataName
TFile * fRootFileOut
BmnIFileReader * fFileReader
TClonesArray * sync
TClonesArray * adc32
TClonesArray * adc64
TClonesArray * adc128
TClonesArray * adc
TClonesArray * vsp
TClonesArray * hrb
TClonesArray * tdc
TClonesArray * tqdc_tdc
TClonesArray * tqdc_adc
TClonesArray * tdc_hgnd
TClonesArray * msc
TClonesArray * t0raw
BmnEventHeader * eventHeaderDAQ
BmnSpillHeader * spillHeader
unique_ptr< DigiRunHeader > runHeader
unique_ptr< BmnMetadataRaw > metadata
uint32_t data [10000000]
uint32_t fMaxEvent
uint32_t fDat
uint32_t syncCounter
uint32_t nSpillEvents
Bool_t fExportJsonBlocks
Bool_t fExportExternalSpillStat
uint32_t n_msc_spill = 0
uint32_t n_msc_spill_ar [16] = {}
std::map< uint8_t, const uint32_t * > time_slice_map
map< TTimeStamp, Int_t > leaps
TTimeStamp utc_valid
Int_t tai_utc_dif
Int_t fVerbose
map< SysPoint, BmnSpillInfo > fSpillMap
Bool_t fSaveOutput

Detailed Description

Definition at line 51 of file BmnRawSource.h.

Constructor & Destructor Documentation

◆ BmnRawSource() [1/4]

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

References i.

Referenced by GetT0Info(), and RegisterSpillBranches().

Here is the caller graph for this function:

◆ BmnRawSource() [2/4]

◆ ~BmnRawSource() [1/2]

BmnRawSource::~BmnRawSource ( )
overridevirtual

Definition at line 111 of file BmnRawSource.cxx.

◆ BmnRawSource() [3/4]

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

◆ BmnRawSource() [4/4]

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

◆ ~BmnRawSource() [2/2]

virtual BmnRawSource::~BmnRawSource ( )
overridevirtual

Member Function Documentation

◆ BranchRegFun() [1/2]

template<typename BrType>
void BmnRawSource::BranchRegFun ( TString name,
BrType ** ar,
TTree * tree = nullptr )
inlineprivate

Definition at line 253 of file BmnRawSource.h.

References TString::Data(), fSaveOutput, and isTaskMode.

Referenced by RegisterBranches(), and RegisterSpillBranches().

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

◆ BranchRegFun() [2/2]

template<typename BrType>
void BmnRawSource::BranchRegFun ( TString name,
BrType ** ar,
TTree * tree = nullptr )
inlineprivate

Definition at line 253 of file BmnRawSource.h.

References TString::Data(), fSaveOutput, and isTaskMode.

Here is the call graph for this function:

◆ ClearRawArrays() [1/2]

void BmnRawSource::ClearRawArrays ( )

Definition at line 1789 of file BmnRawSource.cxx.

References adc, adc128, adc32, adc64, eventHeaderDAQ, hrb, sync, tdc, tdc_hgnd, tqdc_adc, tqdc_tdc, and vsp.

Referenced by ProcessEvent().

Here is the caller graph for this function:

◆ ClearRawArrays() [2/2]

void BmnRawSource::ClearRawArrays ( )

◆ ClearRawSpillArrays() [1/2]

void BmnRawSource::ClearRawSpillArrays ( )

Definition at line 1805 of file BmnRawSource.cxx.

References fRawTreeSpills, msc, and t0raw.

Referenced by ProcessEvent().

Here is the caller graph for this function:

◆ ClearRawSpillArrays() [2/2]

void BmnRawSource::ClearRawSpillArrays ( )

◆ Close() [1/2]

void BmnRawSource::Close ( )
overridevirtual

Definition at line 235 of file BmnRawSource.cxx.

References adc, adc128, adc32, adc64, eventHeaderDAQ, fFileReader, fRawTreeSpills, hrb, msc, sync, tdc, tdc_hgnd, tqdc_adc, tqdc_tdc, and vsp.

Referenced by ConvertRawToRoot().

Here is the caller graph for this function:

◆ Close() [2/2]

virtual void BmnRawSource::Close ( )
overridevirtual

◆ ConvertRawToRoot() [1/2]

◆ ConvertRawToRoot() [2/2]

BmnStatus BmnRawSource::ConvertRawToRoot ( )

◆ ConvertRawToRootIterate() [1/2]

BmnStatus BmnRawSource::ConvertRawToRootIterate ( const uint32_t * buf,
uint32_t len )

Definition at line 567 of file BmnRawSource.cxx.

References fEventId, and ProcessEvent().

Here is the call graph for this function:

◆ ConvertRawToRootIterate() [2/2]

BmnStatus BmnRawSource::ConvertRawToRootIterate ( const uint32_t * buf,
uint32_t len )

◆ ConvertRawToRootIterateFile() [1/2]

BmnStatus BmnRawSource::ConvertRawToRootIterateFile ( uint32_t limit = WAIT_LIMIT)

Definition at line 575 of file BmnRawSource.cxx.

References ConvertRawToRootIterateFileRead(), fCurentPositionRawFile, fFileReader, kBMNCONTINUE, kBMNERROR, and kBMNSUCCESS.

Here is the call graph for this function:

◆ ConvertRawToRootIterateFile() [2/2]

BmnStatus BmnRawSource::ConvertRawToRootIterateFile ( uint32_t limit = WAIT_LIMIT)

References WAIT_LIMIT.

◆ ConvertRawToRootIterateFileRead() [1/2]

BmnStatus BmnRawSource::ConvertRawToRootIterateFileRead ( )

Definition at line 594 of file BmnRawSource.cxx.

References ANSI_COLOR_BLUE, ANSI_COLOR_RESET, ConvertStatEvent(), data, fCurEvType, fDat, fEventId, fFileReader, fMaxEvent, fNSignalEvents, fPeriodId, fPrevEvType, fRawTree, fRunId, isSpillStart, isTaskMode, kBMNCONTINUE, kBMNEMPTY, kBMNEOS, kBMNERROR, kBMNPAYLOAD, kBMNSTAT, kBMNSUCCESS, kNBYTESINWORD, nSpillEvents, BmnConverterTools::ParseComplexTLV(), ParseJsonTLV(), ProcessEvent(), QuickProcessEvent(), 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().

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

◆ ConvertRawToRootIterateFileRead() [2/2]

BmnStatus BmnRawSource::ConvertRawToRootIterateFileRead ( )

◆ ConvertStatEvent() [1/2]

BmnStatus BmnRawSource::ConvertStatEvent ( const uint32_t * buf,
uint32_t & len )

Definition at line 415 of file BmnRawSource.cxx.

References d, eventHeaderDAQ, fCurEvType, FinalizeStat(), fPeriodId, fPrevEvType, fRawTreeSpills, fRunId, fSpillCntr, isForwardMode, isSpillStart, kBMNEOS, kBMNSUCCESS, nSpillEvents, and ProcessEvent().

Referenced by ConvertRawToRootIterateFileRead().

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

◆ ConvertStatEvent() [2/2]

BmnStatus BmnRawSource::ConvertStatEvent ( const uint32_t * buf,
uint32_t & len )

◆ FillBlockADC() [1/2]

BmnStatus BmnRawSource::FillBlockADC ( const uint32_t * d,
uint32_t serial,
uint8_t channel,
uint16_t & len,
TClonesArray * ar )
private

Definition at line 1108 of file BmnRawSource.cxx.

References d, TObjArray::GetEntriesFast(), kBMNERROR, kBMNSUCCESS, and kNBYTESINWORD.

Referenced by FillTQDC_E().

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

◆ FillBlockADC() [2/2]

BmnStatus BmnRawSource::FillBlockADC ( const uint32_t * d,
uint32_t serial,
uint8_t channel,
uint16_t & len,
TClonesArray * ar )
private

References d.

◆ FillBlockTDC() [1/2]

BmnStatus BmnRawSource::FillBlockTDC ( const uint32_t * d,
uint32_t serial,
uint16_t & len,
TClonesArray * ar,
uint32_t modid = 0 )
private

Definition at line 1142 of file BmnRawSource.cxx.

References d, fEventId, TObjArray::GetEntriesFast(), kBMNSUCCESS, TDC_ERROR, TDC_EV_HEADER, TDC_EV_TRAILER, TDC_LEADING, and TDC_TRAILING.

Referenced by FillTDC72VXS(), and FillTQDC_E().

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

◆ FillBlockTDC() [2/2]

BmnStatus BmnRawSource::FillBlockTDC ( const uint32_t * d,
uint32_t serial,
uint16_t & len,
TClonesArray * ar,
uint32_t modid )
private

References d.

◆ FillEventHeader() [1/2]

virtual void BmnRawSource::FillEventHeader ( FairEventHeader * feh)
inlineoverridevirtual

Definition at line 80 of file BmnRawSource.h.

◆ FillEventHeader() [2/2]

virtual void BmnRawSource::FillEventHeader ( FairEventHeader * feh)
inlineoverridevirtual

Definition at line 80 of file BmnRawSource.h.

◆ FillFVME2TMWR() [1/2]

BmnStatus BmnRawSource::FillFVME2TMWR ( const uint32_t * d,
uint32_t serial,
uint32_t & idx,
uint32_t & len )
private

Definition at line 1698 of file BmnRawSource.cxx.

References d, FillWR(), fPeriodId, fTime_ns, fTime_s, BmnSyncDigit::GetTime_ns(), BmnSyncDigit::GetTime_sec(), kBMNERROR, kBMNSUCCESS, kMODTRAILER, kPADDING, kSTATUS, TMWR_EOS_CNT, TMWR_EOS_CNT_MATCHED, TMWR_PULSE, TMWR_REL_TS, TMWR_REL_TS_TB, and TMWR_TAI.

Referenced by Process_FVME().

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

◆ FillFVME2TMWR() [2/2]

BmnStatus BmnRawSource::FillFVME2TMWR ( const uint32_t * d,
uint32_t serial,
uint32_t & idx,
uint32_t & len )
private

References d.

◆ FillMSC() [1/2]

BmnStatus BmnRawSource::FillMSC ( const uint32_t * d,
uint32_t serial,
uint32_t slot,
uint32_t & idx )
private

Definition at line 1762 of file BmnRawSource.cxx.

References d, fEventId, BmnMSCDigit< IntType >::GetValue(), kBMNSUCCESS, msc, MSC_N_COUNTERS, and slot.

Referenced by Process_FVME().

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

◆ FillMSC() [2/2]

BmnStatus BmnRawSource::FillMSC ( const uint32_t * d,
uint32_t serial,
uint32_t slot,
uint32_t & idx )
private

References d, and slot.

◆ FillMSC16VE_E() [1/2]

BmnStatus BmnRawSource::FillMSC16VE_E ( const uint32_t * d,
const DeviceHeader * dev_hdr )
private
Parameters
ddata pointer
dev_hdrdevice header (serial, payload length, device ID)
Returns
operation success

Definition at line 1542 of file BmnRawSource.cxx.

References d, fEventId, BmnMSCZSDigit< IntType >::GetExtCond(), BmnMSCZSDigit< IntType >::GetTimes(), BmnMSCZSDigit< IntType >::GetValues(), i, kBMNERROR, kBMNSUCCESS, kNBYTESINWORD, memset(), msc, MSC_N_COUNTERS, MSC_TIME_SLICE_INFO, tai_utc_dif, BmnFunctionSet::TimePoint2String(), and BmnFunctionSet::TimePoint2TS().

Referenced by ProcessEvent().

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

◆ FillMSC16VE_E() [2/2]

BmnStatus BmnRawSource::FillMSC16VE_E ( const uint32_t * d,
const DeviceHeader * dev_hdr )
private
Parameters
ddata pointer
dev_hdrdevice header (serial, payload length, device ID)
Returns
operation success

References d.

◆ FillTDC() [1/2]

BmnStatus BmnRawSource::FillTDC ( const uint32_t * d,
uint32_t serial,
uint32_t slot,
uint32_t modId,
uint32_t & idx )
private

Definition at line 1011 of file BmnRawSource.cxx.

References d, fCurEvType, fVerbose, kBMNERROR, kBMNSTAT, kBMNSUCCESS, kMODTRAILER, kTDC64V, slot, tdc, TDC_ERROR, TDC_LEADING, and TDC_TRAILING.

Referenced by Process_FVME().

Here is the caller graph for this function:

◆ FillTDC() [2/2]

BmnStatus BmnRawSource::FillTDC ( const uint32_t * d,
uint32_t serial,
uint32_t slot,
uint32_t modId,
uint32_t & idx )
private

References d, and slot.

◆ FillTDC250HGND() [1/2]

BmnStatus BmnRawSource::FillTDC250HGND ( const uint32_t * d,
uint32_t serial,
uint32_t len )
private

Definition at line 1308 of file BmnRawSource.cxx.

References d, BmnHgndRaw::Block::get_block_size(), BmnHgndRaw::Block::get_event_packet_version(), i, BmnHgndRaw::Block::is_word_event_header(), kBMNERROR, kBMNSUCCESS, tai_utc_dif, tdc_hgnd, and BmnHgndRaw::Event_type_2::TDC_rise_time.

Referenced by ProcessGenericDevice().

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

◆ FillTDC250HGND() [2/2]

BmnStatus BmnRawSource::FillTDC250HGND ( const uint32_t * d,
uint32_t serial,
uint32_t len )
private

References d.

◆ FillTDC72VXS() [1/2]

BmnStatus BmnRawSource::FillTDC72VXS ( const uint32_t * d,
uint32_t serial,
uint32_t & len,
uint32_t modid = 0 )
private

Definition at line 1225 of file BmnRawSource.cxx.

References d, fEventId, FillBlockTDC(), FillWR(), kBMNSUCCESS, kMSTREAM_TYPE_STAT, kMSTREAM_TYPE_TDC, kNBYTESINWORD, and tdc.

Referenced by ProcessEvent().

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

◆ FillTDC72VXS() [2/2]

BmnStatus BmnRawSource::FillTDC72VXS ( const uint32_t * d,
uint32_t serial,
uint32_t & len,
uint32_t modid )
private

References d.

◆ FillTQDC() [1/2]

BmnStatus BmnRawSource::FillTQDC ( const uint32_t * d,
uint32_t serial,
uint32_t slot,
uint32_t modId,
uint32_t & idx )
private

Definition at line 1043 of file BmnRawSource.cxx.

References d, fEventId, fVerbose, kBMNERROR, kBMNSUCCESS, kMODTRAILER, slot, TDC_ERROR, TDC_EV_HEADER, TDC_EV_TRAILER, TDC_LEADING, TDC_TRAILING, tqdc_adc, and tqdc_tdc.

Referenced by Process_FVME().

Here is the caller graph for this function:

◆ FillTQDC() [2/2]

BmnStatus BmnRawSource::FillTQDC ( const uint32_t * d,
uint32_t serial,
uint32_t slot,
uint32_t modId,
uint32_t & idx )
private

References d, and slot.

◆ FillTQDC_E() [1/2]

BmnStatus BmnRawSource::FillTQDC_E ( const uint32_t * d,
uint32_t serial,
uint32_t & len )
private
Parameters
ddata pointer
serialdevice serial
lenpayload length
Returns
operation success

Definition at line 1190 of file BmnRawSource.cxx.

References d, fEventId, FillBlockADC(), FillBlockTDC(), FillWR(), kBMNSUCCESS, kMSTREAM_TYPE_ADC, kMSTREAM_TYPE_TDC, kNBYTESINWORD, tqdc_adc, and tqdc_tdc.

Referenced by ProcessEvent().

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

◆ FillTQDC_E() [2/2]

BmnStatus BmnRawSource::FillTQDC_E ( const uint32_t * d,
uint32_t serial,
uint32_t & len )
private
Parameters
ddata pointer
serialdevice serial
lenpayload length
Returns
operation success

References d.

◆ FillTTVXS() [1/2]

BmnStatus BmnRawSource::FillTTVXS ( const uint32_t * d,
uint32_t serial,
uint32_t & len )
private

Definition at line 1258 of file BmnRawSource.cxx.

References d, fEventId, FillWR(), kBMNSUCCESS, kMSTREAM_TYPE_STAT, kMSTREAM_TYPE_TRIG, and kNBYTESINWORD.

Referenced by ProcessEvent().

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

◆ FillTTVXS() [2/2]

BmnStatus BmnRawSource::FillTTVXS ( const uint32_t * d,
uint32_t serial,
uint32_t & len )
private

References d.

◆ FillU40VE() [1/2]

BmnStatus BmnRawSource::FillU40VE ( const uint32_t * d,
uint32_t slot,
uint32_t & idx,
BmnTrigInfo & spillInfo )
private

Definition at line 978 of file BmnRawSource.cxx.

References d, fCurEvType, fPeriodId, kBMNPAYLOAD, kBMNPEDESTAL, kBMNSUCCESS, kEVENTTYPESLOT, kWORDAUX, kWORDTAI, kWORDTRIG, BmnTrigInfo::SetTrigAccepted(), BmnTrigInfo::SetTrigAfter(), BmnTrigInfo::SetTrigAll(), BmnTrigInfo::SetTrigAvail(), BmnTrigInfo::SetTrigBefo(), BmnTrigInfo::SetTrigCand(), BmnTrigInfo::SetTrigRjct(), and slot.

Referenced by Process_FVME().

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

◆ FillU40VE() [2/2]

BmnStatus BmnRawSource::FillU40VE ( const uint32_t * d,
uint32_t slot,
uint32_t & idx,
BmnTrigInfo & spillInfo )
private

References d, and slot.

◆ FillUT24VE_TRC() [1/2]

BmnStatus BmnRawSource::FillUT24VE_TRC ( const uint32_t * d,
uint32_t & serial,
uint32_t & len )
private
Parameters
ddata pointer
serialdevice serial
lenpayload length
Returns
operation success

Definition at line 1652 of file BmnRawSource.cxx.

References d, eventHeaderDAQ, fCurEvType, fEventId, FillWR(), fTime_ns, fTime_s, BmnSyncDigit::GetTime_ns(), BmnSyncDigit::GetTime_sec(), kBMNPAYLOAD, kBMNPEDESTAL, kBMNSUCCESS, and kNBYTESINWORD.

Referenced by ProcessEvent().

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

◆ FillUT24VE_TRC() [2/2]

BmnStatus BmnRawSource::FillUT24VE_TRC ( const uint32_t * d,
uint32_t & serial,
uint32_t & len )
private
Parameters
ddata pointer
serialdevice serial
lenpayload length
Returns
operation success

References d.

◆ FillVirtualDevice() [1/2]

BmnStatus BmnRawSource::FillVirtualDevice ( const uint32_t * d,
const DeviceHeader * dh )
private

Definition at line 1629 of file BmnRawSource.cxx.

References d, fExportExternalSpillStat, fRunId, fSubName, fTime_ns, fTime_s, BmnT0Raw::GetTime(), i, kBMNSUCCESS, kT0_BIN_BLOCK_BYTES, kT0_BIN_BLOCK_WORDS, BmnConverterTools::Process_T0Raw(), SERIAL_TO_CFG, BmnT0Raw::SetTimeSinceLastEvNs(), t0raw, and BmnFunctionSet::TimeStamp2TP().

Referenced by ProcessEvent().

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

◆ FillVirtualDevice() [2/2]

BmnStatus BmnRawSource::FillVirtualDevice ( const uint32_t * d,
const DeviceHeader * dh )
private

References d.

◆ FillVSP() [1/2]

BmnStatus BmnRawSource::FillVSP ( TClonesArray * ar)
private

◆ FillVSP() [2/2]

BmnStatus BmnRawSource::FillVSP ( TClonesArray * ar)
private

◆ FillWR() [1/2]

BmnSyncDigit * BmnRawSource::FillWR ( uint32_t iSerial,
uint64_t iEvent,
int64_t t_sec,
int64_t t_ns )
inlineprivate

Definition at line 1686 of file BmnRawSource.cxx.

References GetUTCShift(), sync, and tai_utc_dif.

Referenced by FillFVME2TMWR(), FillTDC72VXS(), FillTQDC_E(), FillTTVXS(), and FillUT24VE_TRC().

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

◆ FillWR() [2/2]

BmnSyncDigit * BmnRawSource::FillWR ( uint32_t iSerial,
uint64_t iEvent,
int64_t t_sec,
int64_t t_ns )
inlineprivate

◆ FinalizeStat() [1/2]

void BmnRawSource::FinalizeStat ( )
private

Definition at line 715 of file BmnRawSource.cxx.

References fRawTreeSpills, msc, and t0raw.

Referenced by ConvertStatEvent().

Here is the caller graph for this function:

◆ FinalizeStat() [2/2]

void BmnRawSource::FinalizeStat ( )
private

◆ FinishRun() [1/2]

BmnStatus BmnRawSource::FinishRun ( )

Definition at line 1813 of file BmnRawSource.cxx.

References kBMNSUCCESS.

◆ FinishRun() [2/2]

BmnStatus BmnRawSource::FinishRun ( )

◆ GetBoundaryRun() [1/2]

uint32_t BmnRawSource::GetBoundaryRun ( uint32_t nSmpl)
inline

Definition at line 120 of file BmnRawSource.h.

◆ GetBoundaryRun() [2/2]

uint32_t BmnRawSource::GetBoundaryRun ( uint32_t nSmpl)
inline

Definition at line 120 of file BmnRawSource.h.

◆ GetEventId() [1/2]

uint32_t BmnRawSource::GetEventId ( ) const
inline

Definition at line 108 of file BmnRawSource.h.

References fEventId.

◆ GetEventId() [2/2]

uint32_t BmnRawSource::GetEventId ( ) const
inline

Definition at line 108 of file BmnRawSource.h.

References fEventId.

◆ GetForwardMode() [1/2]

bool BmnRawSource::GetForwardMode ( ) const
inline

Definition at line 158 of file BmnRawSource.h.

References isForwardMode.

◆ GetForwardMode() [2/2]

bool BmnRawSource::GetForwardMode ( ) const
inline

Definition at line 158 of file BmnRawSource.h.

References isForwardMode.

◆ GetNevents() [1/2]

uint32_t BmnRawSource::GetNevents ( ) const
inline

Definition at line 106 of file BmnRawSource.h.

References fNTotalEvents.

◆ GetNevents() [2/2]

uint32_t BmnRawSource::GetNevents ( ) const
inline

Definition at line 106 of file BmnRawSource.h.

References fNTotalEvents.

◆ GetPeriodId() [1/2]

uint32_t BmnRawSource::GetPeriodId ( ) const
inline

Definition at line 104 of file BmnRawSource.h.

References fPeriodId.

◆ GetPeriodId() [2/2]

uint32_t BmnRawSource::GetPeriodId ( ) const
inline

Definition at line 104 of file BmnRawSource.h.

References fPeriodId.

◆ GetRawTree() [1/2]

TTree * BmnRawSource::GetRawTree ( )
inline

Definition at line 142 of file BmnRawSource.h.

References fRawTree.

◆ GetRawTree() [2/2]

TTree * BmnRawSource::GetRawTree ( )
inline

Definition at line 142 of file BmnRawSource.h.

References fRawTree.

◆ GetRawTreeSpills() [1/2]

TTree * BmnRawSource::GetRawTreeSpills ( )
inline

Definition at line 144 of file BmnRawSource.h.

References fRawTreeSpills.

◆ GetRawTreeSpills() [2/2]

TTree * BmnRawSource::GetRawTreeSpills ( )
inline

Definition at line 144 of file BmnRawSource.h.

References fRawTreeSpills.

◆ GetRootFileName() [1/2]

TString BmnRawSource::GetRootFileName ( )
inline

Definition at line 114 of file BmnRawSource.h.

References fRootFileName.

Referenced by BmnPreRunTester().

Here is the caller graph for this function:

◆ GetRootFileName() [2/2]

TString BmnRawSource::GetRootFileName ( )
inline

Definition at line 114 of file BmnRawSource.h.

References fRootFileName.

◆ GetRunEndTime() [1/2]

TTimeStamp BmnRawSource::GetRunEndTime ( ) const
inline

Definition at line 112 of file BmnRawSource.h.

References fRunEndTime.

◆ GetRunEndTime() [2/2]

TTimeStamp BmnRawSource::GetRunEndTime ( ) const
inline

Definition at line 112 of file BmnRawSource.h.

References fRunEndTime.

◆ GetRunId() [1/2]

uint32_t BmnRawSource::GetRunId ( ) const
inline

Definition at line 102 of file BmnRawSource.h.

References fRunId.

◆ GetRunId() [2/2]

uint32_t BmnRawSource::GetRunId ( ) const
inline

Definition at line 102 of file BmnRawSource.h.

References fRunId.

◆ GetRunIdFromFile() [1/2]

Int_t BmnRawSource::GetRunIdFromFile ( TString name)

Definition at line 1825 of file BmnRawSource.cxx.

References TString::Atoi(), TFile::Close(), TString::Data(), fRawRunHdrName, fRootFileName, fRunId, TDirectoryFile::Get(), TTree::GetEntriesFast(), TTree::GetEntry(), DigiRunHeader::GetRunId(), TFile::IsOpen(), isRawRootInputFile, kWORDSIZE, TPRegexp::MatchB(), RECORD_RUN_NUMBER, TTree::SetBranchAddress(), and TPRegexp::Substitute().

Referenced by BmnRawSource().

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

◆ 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.

References fRunStartTime.

◆ GetRunStartTime() [2/2]

TTimeStamp BmnRawSource::GetRunStartTime ( ) const
inline

Definition at line 110 of file BmnRawSource.h.

References fRunStartTime.

◆ GetSaveOutput() [1/2]

bool BmnRawSource::GetSaveOutput ( ) const
inline

Definition at line 150 of file BmnRawSource.h.

References fSaveOutput.

◆ GetSaveOutput() [2/2]

bool BmnRawSource::GetSaveOutput ( ) const
inline

Definition at line 150 of file BmnRawSource.h.

References fSaveOutput.

◆ GetSourceType() [1/2]

virtual Source_Type BmnRawSource::GetSourceType ( )
inlineoverridevirtual

Definition at line 64 of file BmnRawSource.h.

◆ GetSourceType() [2/2]

virtual Source_Type BmnRawSource::GetSourceType ( )
inlineoverridevirtual

Definition at line 64 of file BmnRawSource.h.

◆ GetT0Info() [1/2]

BmnStatus BmnRawSource::GetT0Info ( Double_t & t0time,
Double_t & t0width )
private

References BmnRawSource(), d, data, and slot.

Here is the call graph for this function:

◆ GetT0Info() [2/2]

BmnStatus BmnRawSource::GetT0Info ( Double_t & t0time,
Double_t & t0width )
private

◆ GetTaskMode() [1/2]

bool BmnRawSource::GetTaskMode ( ) const
inline

Definition at line 154 of file BmnRawSource.h.

References isTaskMode.

◆ GetTaskMode() [2/2]

bool BmnRawSource::GetTaskMode ( ) const
inline

Definition at line 154 of file BmnRawSource.h.

References isTaskMode.

◆ GetUTCShift() [1/2]

Int_t BmnRawSource::GetUTCShift ( TTimeStamp t)
private

Definition at line 1925 of file BmnRawSource.cxx.

References TTimeStamp::AsString(), leaps, and utc_valid.

Referenced by ConvertRawToRoot(), FillWR(), and ParseJsonTLV().

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

◆ GetUTCShift() [2/2]

Int_t BmnRawSource::GetUTCShift ( TTimeStamp t)
private

◆ GetVerbose() [1/2]

Int_t BmnRawSource::GetVerbose ( ) const
inline

Definition at line 118 of file BmnRawSource.h.

References fVerbose.

◆ GetVerbose() [2/2]

Int_t BmnRawSource::GetVerbose ( ) const
inline

Definition at line 118 of file BmnRawSource.h.

References fVerbose.

◆ Init() [1/2]

bool BmnRawSource::Init ( )
overridevirtual

Definition at line 117 of file BmnRawSource.cxx.

References ANSI_COLOR_BLUE, ANSI_COLOR_RED, ANSI_COLOR_RESET, BmnCompressionCreateNewSuitableReaderForAFile(), conf, fFileReader, fLengthRawFile, fRawFileName, fRawTreeSpills, isSpillStart, isTaskMode, kBMNERROR, LoadConfig(), RegisterBranches(), and RegisterSpillBranches().

Here is the call graph for this function:

◆ Init() [2/2]

virtual bool BmnRawSource::Init ( )
overridevirtual

◆ InitConverter() [1/4]

BmnStatus BmnRawSource::InitConverter ( )

Definition at line 201 of file BmnRawSource.cxx.

References ANSI_COLOR_BLUE, ANSI_COLOR_RESET, conf, fRawTree, fRawTreeSpills, fRootFileName, fThreads, fVerbose, i, kBMNSUCCESS, leaps, RegisterBranches(), RegisterSpillBranches(), tai_utc_dif, and utc_valid.

Referenced by ConvertRawToRoot(), and InitConverter().

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

◆ InitConverter() [2/4]

BmnStatus BmnRawSource::InitConverter ( )

◆ InitConverter() [3/4]

BmnStatus BmnRawSource::InitConverter ( TString FileName)

Definition at line 168 of file BmnRawSource.cxx.

References ANSI_COLOR_BLUE, ANSI_COLOR_RED, ANSI_COLOR_RESET, BmnCompressionCreateNewSuitableReaderForAFile(), fFileReader, fLengthRawFile, fRawFileName, fRootFileName, fRootFileOut, InitConverter(), isSpillStart, and kBMNERROR.

Here is the call graph for this function:

◆ InitConverter() [4/4]

BmnStatus BmnRawSource::InitConverter ( TString FileName)

◆ InitUnpackers() [1/2]

virtual bool BmnRawSource::InitUnpackers ( )
inlineoverridevirtual

Definition at line 68 of file BmnRawSource.h.

◆ InitUnpackers() [2/2]

virtual bool BmnRawSource::InitUnpackers ( )
inlineoverridevirtual

Definition at line 68 of file BmnRawSource.h.

◆ InitUTCShift() [1/2]

BmnStatus BmnRawSource::InitUTCShift ( )
private

Definition at line 1891 of file BmnRawSource.cxx.

References kBMNSUCCESS, leaps, and utc_valid.

Referenced by BmnRawSource().

Here is the caller graph for this function:

◆ InitUTCShift() [2/2]

BmnStatus BmnRawSource::InitUTCShift ( )
private

◆ LoadConfig() [1/2]

BmnStatus BmnRawSource::LoadConfig ( )
private

Definition at line 1943 of file BmnRawSource.cxx.

References conf, fDecoderConfigFileName, fExportExternalSpillStat, fExportJsonBlocks, and kBMNSUCCESS.

Referenced by Init(), and SetDecoderConfigFileName().

Here is the caller graph for this function:

◆ LoadConfig() [2/2]

BmnStatus BmnRawSource::LoadConfig ( )
private

◆ MapVSP() [1/2]

BmnStatus BmnRawSource::MapVSP ( const uint32_t * d,
const DeviceHeader * dev_hdr )
private

Definition at line 1398 of file BmnRawSource.cxx.

References d, kBMNERROR, kBMNSUCCESS, and time_slice_map.

Referenced by ProcessGenericDevice().

Here is the caller graph for this function:

◆ MapVSP() [2/2]

BmnStatus BmnRawSource::MapVSP ( const uint32_t * d,
const DeviceHeader * dev_hdr )
private

References d.

◆ ParseJsonTLV() [1/2]

BmnStatus BmnRawSource::ParseJsonTLV ( const uint32_t * buf,
uint32_t & len )

Definition at line 327 of file BmnRawSource.cxx.

References d, fExportJsonBlocks, fRunId, fSpillMap, fSubName, GetUTCShift(), kBMNERROR, kBMNSUCCESS, kNBYTESINWORD, metadata, BmnConverterTools::ParseJsonConfig(), BmnConverterTools::ParseJsonStatus(), runHeader, SpillStatus::start_ts, BmnSpillInfo::stop_ts, SpillStatus::stop_ts, tai_utc_dif, BmnFunctionSet::TimePoint2String(), and SpillStatus::times_valid.

Referenced by ConvertRawToRootIterateFileRead().

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

◆ ParseJsonTLV() [2/2]

BmnStatus BmnRawSource::ParseJsonTLV ( const uint32_t * buf,
uint32_t & len )

◆ Process_FVME() [1/2]

BmnStatus BmnRawSource::Process_FVME ( const uint32_t * data,
uint32_t len,
uint32_t serial,
BmnTrigInfo & spillInfo )
private

Definition at line 878 of file BmnRawSource.cxx.

References ANSI_COLOR_RED, ANSI_COLOR_RESET, d, fCurEvType, fEventId, FillFVME2TMWR(), FillMSC(), FillTDC(), FillTQDC(), FillU40VE(), i, kBMNEOS, kBMNSTAT, kBMNSUCCESS, kEVHEADER, kEVTRAILER, kMODHEADER, kMODTRAILER, kMSC16V, kPADDING, kSTATUS, kTDC32VL, kTDC64V, kTDC64VHLE, kTDC72VHL, kTQDC16, kTQDC16VS, kTRIG, kU40VE_RC, and slot.

Referenced by ProcessEvent().

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

◆ Process_FVME() [2/2]

BmnStatus BmnRawSource::Process_FVME ( const uint32_t * data,
uint32_t len,
uint32_t serial,
BmnTrigInfo & spillInfo )
private

References data.

◆ Process_HRB() [1/2]

BmnStatus BmnRawSource::Process_HRB ( const uint32_t * data,
uint32_t len,
uint32_t serial )
private

Definition at line 955 of file BmnRawSource.cxx.

References d, hrb, and kBMNSUCCESS.

Referenced by ProcessEvent().

Here is the caller graph for this function:

◆ Process_HRB() [2/2]

BmnStatus BmnRawSource::Process_HRB ( const uint32_t * data,
uint32_t len,
uint32_t serial )
private

References data.

◆ ProcessEvent() [1/2]

BmnStatus BmnRawSource::ProcessEvent ( const uint32_t * data,
uint32_t len )
private

◆ ProcessEvent() [2/2]

BmnStatus BmnRawSource::ProcessEvent ( const uint32_t * data,
uint32_t len )
private

References data.

◆ ProcessGenericDevice() [1/2]

BmnStatus BmnRawSource::ProcessGenericDevice ( const uint32_t * d,
const DeviceHeader * dev_hdr )
private

Definition at line 1295 of file BmnRawSource.cxx.

References d, FillTDC250HGND(), kBMNSUCCESS, kHGND_SERIALS, kVSP_SERIALS, and MapVSP().

Referenced by ProcessEvent().

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

◆ ProcessGenericDevice() [2/2]

BmnStatus BmnRawSource::ProcessGenericDevice ( const uint32_t * d,
const DeviceHeader * dev_hdr )
private

References d.

◆ QuickProcessEvent() [1/2]

void BmnRawSource::QuickProcessEvent ( const uint32_t * d,
uint32_t len )
private

Definition at line 725 of file BmnRawSource.cxx.

References d, BmnAbstractThread::Execute(), and fThreads.

Referenced by ConvertRawToRootIterateFileRead().

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

◆ QuickProcessEvent() [2/2]

void BmnRawSource::QuickProcessEvent ( const uint32_t * d,
uint32_t len )
private

References d.

◆ ReadEvent() [1/2]

Int_t BmnRawSource::ReadEvent ( uint32_t i = 0)
overridevirtual

Definition at line 275 of file BmnRawSource.cxx.

References ConvertRawToRootIterateFileRead(), fCurEvType, i, kBMNPAYLOAD, kBMNPEDESTAL, and kBMNSUCCESS.

Here is the call graph for this function:

◆ ReadEvent() [2/2]

virtual Int_t BmnRawSource::ReadEvent ( uint32_t i = 0)
overridevirtual

References i.

◆ RegisterBranches() [1/2]

void BmnRawSource::RegisterBranches ( )
private

Definition at line 285 of file BmnRawSource.cxx.

References adc, adc128, adc32, adc64, BranchRegFun(), TObject::Class(), eventHeaderDAQ, fRawTree, hrb, sync, tdc, tdc_hgnd, tqdc_adc, tqdc_tdc, and vsp.

Referenced by Init(), and InitConverter().

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

◆ RegisterBranches() [2/2]

void BmnRawSource::RegisterBranches ( )
private

◆ RegisterSpillBranches() [1/2]

void BmnRawSource::RegisterSpillBranches ( )
private

Definition at line 315 of file BmnRawSource.cxx.

References BranchRegFun(), TObject::Class(), fPeriodId, fRawTreeSpills, msc, and t0raw.

Referenced by Init(), and InitConverter().

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

◆ RegisterSpillBranches() [2/2]

void BmnRawSource::RegisterSpillBranches ( )
private

References BmnRawSource().

Here is the call graph for this function:

◆ ReInitUnpackers() [1/2]

virtual bool BmnRawSource::ReInitUnpackers ( )
inlineoverridevirtual

Definition at line 74 of file BmnRawSource.h.

◆ ReInitUnpackers() [2/2]

virtual bool BmnRawSource::ReInitUnpackers ( )
inlineoverridevirtual

Definition at line 74 of file BmnRawSource.h.

◆ Reset() [1/2]

void BmnRawSource::Reset ( )
overridevirtual

Definition at line 273 of file BmnRawSource.cxx.

◆ Reset() [2/2]

virtual void BmnRawSource::Reset ( )
overridevirtual

◆ SetDecoderConfigFileName() [1/2]

void BmnRawSource::SetDecoderConfigFileName ( string FileName)
inline

Definition at line 136 of file BmnRawSource.h.

References fDecoderConfigFileName, and LoadConfig().

Referenced by BmnDataToRaw().

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

◆ SetDecoderConfigFileName() [2/2]

void BmnRawSource::SetDecoderConfigFileName ( string FileName)
inline

Definition at line 136 of file BmnRawSource.h.

References fDecoderConfigFileName, and LoadConfig().

Here is the call graph for this function:

◆ SetForwardMode() [1/2]

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

Definition at line 156 of file BmnRawSource.h.

References isForwardMode, and v.

◆ SetForwardMode() [2/2]

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

Definition at line 156 of file BmnRawSource.h.

References isForwardMode, and v.

◆ SetParUnpackers() [1/2]

virtual void BmnRawSource::SetParUnpackers ( )
inlineoverridevirtual

Definition at line 66 of file BmnRawSource.h.

◆ SetParUnpackers() [2/2]

virtual void BmnRawSource::SetParUnpackers ( )
inlineoverridevirtual

Definition at line 66 of file BmnRawSource.h.

◆ SetPeriodId() [1/2]

void BmnRawSource::SetPeriodId ( uint32_t v)
inline

Definition at line 100 of file BmnRawSource.h.

References fPeriodId, and v.

◆ SetPeriodId() [2/2]

void BmnRawSource::SetPeriodId ( uint32_t v)
inline

Definition at line 100 of file BmnRawSource.h.

References fPeriodId, and v.

◆ SetRawEventStat() [1/2]

void BmnRawSource::SetRawEventStat ( )
inline

Definition at line 130 of file BmnRawSource.h.

References eventHeaderDAQ, fCurEvType, and kBMNSTAT.

◆ SetRawEventStat() [2/2]

void BmnRawSource::SetRawEventStat ( )
inline

Definition at line 130 of file BmnRawSource.h.

References eventHeaderDAQ, fCurEvType, and kBMNSTAT.

◆ SetRawRootFile() [1/2]

void BmnRawSource::SetRawRootFile ( TString filename)
inline

Definition at line 128 of file BmnRawSource.h.

References fRootFileName.

◆ SetRawRootFile() [2/2]

void BmnRawSource::SetRawRootFile ( TString filename)
inline

Definition at line 128 of file BmnRawSource.h.

References fRootFileName.

◆ SetRunId() [1/2]

void BmnRawSource::SetRunId ( uint32_t v)
inline

Definition at line 98 of file BmnRawSource.h.

References fRunId, and v.

◆ SetRunId() [2/2]

void BmnRawSource::SetRunId ( uint32_t v)
inline

Definition at line 98 of file BmnRawSource.h.

References fRunId, and v.

◆ SetSaveOutput() [1/2]

void BmnRawSource::SetSaveOutput ( bool v)
inline

Definition at line 148 of file BmnRawSource.h.

References fSaveOutput, and v.

◆ SetSaveOutput() [2/2]

void BmnRawSource::SetSaveOutput ( bool v)
inline

Definition at line 148 of file BmnRawSource.h.

References fSaveOutput, and v.

◆ SetTaskMode() [1/2]

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

Definition at line 152 of file BmnRawSource.h.

References isTaskMode, and v.

◆ SetTaskMode() [2/2]

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

Definition at line 152 of file BmnRawSource.h.

References isTaskMode, and v.

◆ SetVerbose() [1/2]

void BmnRawSource::SetVerbose ( Int_t v)
inline

Definition at line 116 of file BmnRawSource.h.

References fVerbose, and v.

Referenced by BmnDataToRaw().

Here is the caller graph for this function:

◆ SetVerbose() [2/2]

void BmnRawSource::SetVerbose ( Int_t v)
inline

Definition at line 116 of file BmnRawSource.h.

References fVerbose, and v.

◆ SpecifyRunId() [1/2]

virtual bool BmnRawSource::SpecifyRunId ( )
inlineoverridevirtual

Definition at line 60 of file BmnRawSource.h.

◆ SpecifyRunId() [2/2]

virtual bool BmnRawSource::SpecifyRunId ( )
inlineoverridevirtual

Definition at line 60 of file BmnRawSource.h.

Member Data Documentation

◆ adc

TClonesArray * BmnRawSource::adc
private

Definition at line 210 of file BmnRawSource.h.

Referenced by BmnRawSource(), ClearRawArrays(), Close(), ProcessEvent(), and RegisterBranches().

◆ adc128

TClonesArray * BmnRawSource::adc128
private

Definition at line 209 of file BmnRawSource.h.

Referenced by BmnRawSource(), ClearRawArrays(), Close(), ProcessEvent(), and RegisterBranches().

◆ adc32

TClonesArray * BmnRawSource::adc32
private

Definition at line 207 of file BmnRawSource.h.

Referenced by BmnRawSource(), ClearRawArrays(), Close(), ProcessEvent(), and RegisterBranches().

◆ adc64

TClonesArray * BmnRawSource::adc64
private

Definition at line 208 of file BmnRawSource.h.

Referenced by BmnRawSource(), ClearRawArrays(), Close(), ProcessEvent(), and RegisterBranches().

◆ conf

pt::ptree BmnRawSource::conf
private

Definition at line 167 of file BmnRawSource.h.

Referenced by Init(), InitConverter(), and LoadConfig().

◆ data

uint32_t BmnRawSource::data
private

◆ eventHeaderDAQ

BmnEventHeader * BmnRawSource::eventHeaderDAQ
private

◆ fCurentPositionRawFile

int64_t BmnRawSource::fCurentPositionRawFile
private

Definition at line 191 of file BmnRawSource.h.

Referenced by ConvertRawToRoot(), and ConvertRawToRootIterateFile().

◆ fCurEvType

◆ fDat

uint32_t BmnRawSource::fDat
private

Definition at line 232 of file BmnRawSource.h.

Referenced by BmnRawSource(), and ConvertRawToRootIterateFileRead().

◆ fDecoderConfigFileName

string BmnRawSource::fDecoderConfigFileName
private

Definition at line 195 of file BmnRawSource.h.

Referenced by LoadConfig(), and SetDecoderConfigFileName().

◆ fEventId

◆ fExportExternalSpillStat

Bool_t BmnRawSource::fExportExternalSpillStat
private

Definition at line 237 of file BmnRawSource.h.

Referenced by BmnRawSource(), FillVirtualDevice(), and LoadConfig().

◆ fExportJsonBlocks

Bool_t BmnRawSource::fExportJsonBlocks
private

Definition at line 236 of file BmnRawSource.h.

Referenced by BmnRawSource(), LoadConfig(), and ParseJsonTLV().

◆ fFileReader

◆ fLengthRawFile

int64_t BmnRawSource::fLengthRawFile
private

Definition at line 190 of file BmnRawSource.h.

Referenced by ConvertRawToRoot(), Init(), and InitConverter().

◆ fMaxEvent

uint32_t BmnRawSource::fMaxEvent
private

Definition at line 230 of file BmnRawSource.h.

Referenced by BmnRawSource(), and ConvertRawToRootIterateFileRead().

◆ fMetadataName

TString BmnRawSource::fMetadataName
private

Definition at line 200 of file BmnRawSource.h.

Referenced by BmnRawSource(), and ConvertRawToRoot().

◆ fNSignalEvents

uint32_t BmnRawSource::fNSignalEvents
private

◆ fNTotalEvents

uint32_t BmnRawSource::fNTotalEvents
private

Definition at line 180 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertRawToRoot(), GetNevents(), and ProcessEvent().

◆ fPeriodId

◆ fPrevEvType

BmnEventType BmnRawSource::fPrevEvType = kBMNPAYLOAD
private

Definition at line 173 of file BmnRawSource.h.

Referenced by ConvertRawToRootIterateFileRead(), and ConvertStatEvent().

◆ fRawFileName

TString BmnRawSource::fRawFileName
private

Definition at line 197 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertRawToRoot(), Init(), and InitConverter().

◆ fRawRunHdrName

TString BmnRawSource::fRawRunHdrName
private

Definition at line 199 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertRawToRoot(), and GetRunIdFromFile().

◆ fRawTree

TTree * BmnRawSource::fRawTree
private

◆ fRawTreeSpills

TTree * BmnRawSource::fRawTreeSpills
private

◆ fRootFileName

TString BmnRawSource::fRootFileName
private

◆ fRootFileOut

TFile * BmnRawSource::fRootFileOut
private

Definition at line 202 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertRawToRoot(), and InitConverter().

◆ fRunEndTime

TTimeStamp BmnRawSource::fRunEndTime
private

Definition at line 188 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertRawToRoot(), and GetRunEndTime().

◆ fRunId

◆ fRunStartTime

TTimeStamp BmnRawSource::fRunStartTime
private

Definition at line 187 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertRawToRoot(), GetRunStartTime(), and ProcessEvent().

◆ fSaveOutput

Bool_t BmnRawSource::fSaveOutput
private

Definition at line 250 of file BmnRawSource.h.

Referenced by BmnRawSource(), BranchRegFun(), GetSaveOutput(), and SetSaveOutput().

◆ fSpillCntr

uint32_t BmnRawSource::fSpillCntr
private

Definition at line 171 of file BmnRawSource.h.

Referenced by BmnRawSource(), and ConvertStatEvent().

◆ fSpillMap

map< SysPoint, BmnSpillInfo > BmnRawSource::fSpillMap
private

Definition at line 248 of file BmnRawSource.h.

Referenced by ConvertRawToRoot(), and ParseJsonTLV().

◆ fStartEventId

uint32_t BmnRawSource::fStartEventId
private

Definition at line 182 of file BmnRawSource.h.

Referenced by BmnRawSource(), and ConvertRawToRoot().

◆ fSubName

TString BmnRawSource::fSubName
private

Definition at line 198 of file BmnRawSource.h.

Referenced by BmnRawSource(), FillVirtualDevice(), and ParseJsonTLV().

◆ fThreads

BmnThreadManager< BmnConverterThread > * BmnRawSource::fThreads
private

Definition at line 162 of file BmnRawSource.h.

Referenced by ConvertRawToRoot(), InitConverter(), and QuickProcessEvent().

◆ fTime_ns

int64_t BmnRawSource::fTime_ns
private

◆ fTime_s

int64_t BmnRawSource::fTime_s
private

◆ fVerbose

Int_t BmnRawSource::fVerbose
private

Definition at line 247 of file BmnRawSource.h.

Referenced by BmnRawSource(), FillTDC(), FillTQDC(), GetVerbose(), InitConverter(), and SetVerbose().

◆ hrb

TClonesArray * BmnRawSource::hrb
private

Definition at line 212 of file BmnRawSource.h.

Referenced by BmnRawSource(), ClearRawArrays(), Close(), Process_HRB(), and RegisterBranches().

◆ isForwardMode

bool BmnRawSource::isForwardMode
private

Definition at line 170 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertStatEvent(), GetForwardMode(), and SetForwardMode().

◆ isRawRootInputFile

bool BmnRawSource::isRawRootInputFile
private

Definition at line 174 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertRawToRoot(), and GetRunIdFromFile().

◆ isSpillStart

bool BmnRawSource::isSpillStart
private

◆ isTaskMode

bool BmnRawSource::isTaskMode
private

◆ leaps

map< TTimeStamp, Int_t > BmnRawSource::leaps
private

Definition at line 244 of file BmnRawSource.h.

Referenced by GetUTCShift(), InitConverter(), and InitUTCShift().

◆ metadata

unique_ptr< BmnMetadataRaw > BmnRawSource::metadata
private

Definition at line 227 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertRawToRoot(), and ParseJsonTLV().

◆ msc

◆ n_msc_spill

uint32_t BmnRawSource::n_msc_spill = 0
private

Definition at line 239 of file BmnRawSource.h.

◆ n_msc_spill_ar

uint32_t BmnRawSource::n_msc_spill_ar = {}
private

Definition at line 240 of file BmnRawSource.h.

◆ nSpillEvents

uint32_t BmnRawSource::nSpillEvents
private

Definition at line 235 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertRawToRootIterateFileRead(), and ConvertStatEvent().

◆ runHeader

unique_ptr< DigiRunHeader > BmnRawSource::runHeader
private

Definition at line 225 of file BmnRawSource.h.

Referenced by BmnRawSource(), ConvertRawToRoot(), and ParseJsonTLV().

◆ spillHeader

BmnSpillHeader * BmnRawSource::spillHeader
private

Definition at line 223 of file BmnRawSource.h.

Referenced by BmnRawSource().

◆ sync

TClonesArray * BmnRawSource::sync
private

Definition at line 206 of file BmnRawSource.h.

Referenced by BmnRawSource(), ClearRawArrays(), Close(), FillWR(), and RegisterBranches().

◆ syncCounter

uint32_t BmnRawSource::syncCounter
private

Definition at line 233 of file BmnRawSource.h.

Referenced by BmnRawSource().

◆ t0raw

TClonesArray * BmnRawSource::t0raw
private

◆ tai_utc_dif

Int_t BmnRawSource::tai_utc_dif
private

◆ tdc

TClonesArray * BmnRawSource::tdc
private

◆ tdc_hgnd

TClonesArray * BmnRawSource::tdc_hgnd
private

Definition at line 216 of file BmnRawSource.h.

Referenced by BmnRawSource(), ClearRawArrays(), Close(), FillTDC250HGND(), and RegisterBranches().

◆ time_slice_map

std::map< uint8_t, const uint32_t * > BmnRawSource::time_slice_map
private

Definition at line 242 of file BmnRawSource.h.

Referenced by FillVSP(), MapVSP(), and ProcessEvent().

◆ TimeZero

const TTimeStamp BmnRawSource::TimeZero = TTimeStamp(time_t(0), 0)
private

Definition at line 163 of file BmnRawSource.h.

Referenced by BmnRawSource(), and ProcessEvent().

◆ tqdc_adc

TClonesArray * BmnRawSource::tqdc_adc
private

◆ tqdc_tdc

TClonesArray * BmnRawSource::tqdc_tdc
private

◆ utc_valid

TTimeStamp BmnRawSource::utc_valid
private

Definition at line 245 of file BmnRawSource.h.

Referenced by GetUTCShift(), InitConverter(), and InitUTCShift().

◆ vsp

TClonesArray * BmnRawSource::vsp
private

Definition at line 211 of file BmnRawSource.h.

Referenced by BmnRawSource(), ClearRawArrays(), Close(), FillVSP(), and RegisterBranches().

◆ workTime_cpu

Double_t BmnRawSource::workTime_cpu = 0.0
private

Definition at line 164 of file BmnRawSource.h.

Referenced by ConvertRawToRoot(), and ProcessEvent().

◆ workTime_real

Double_t BmnRawSource::workTime_real = 0.0
private

Definition at line 165 of file BmnRawSource.h.

Referenced by ConvertRawToRoot(), and ProcessEvent().


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