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

#include <BmnMetadataDecoder.h>

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

Public Member Functions

 BmnMetadataDecoder (vector< string > file={}, string outfile="", ULong_t period=8, BmnSetup setup=kBMNSETUP)
 
virtual ~BmnMetadataDecoder ()
 
void ClearDigiArrays ()
 
void ClearSpillDigiArrays ()
 
BmnStatus ProcessStatusBlocks ()
 
BmnStatus ProcessSpillTree ()
 
void GatherStatusBlocksFromDigis ()
 
void GatherStatusBlocksFromTars ()
 
BmnStatus DecodeDataToDigiIterate ()
 
BmnStatus InitDecoder ()
 
void ResetDecoder (TString file)
 
BmnStatus SaveData ()
 
BmnStatus DisposeDecoder ()
 
void SetRawTree (TTree *tree)
 
TTree * GetDigiTree ()
 
void SetRunId (UInt_t v)
 
void SetPeriodId (UInt_t v)
 
UInt_t GetRunId () const
 
UInt_t GetPeriodId () const
 
void SetBmnSetup (BmnSetup v)
 
BmnSetup GetBmnSetup () const
 
void SetMSCMapping (TString map)
 
void SetRawRootFile (TString filename)
 
void SetOutFileName (string filename)
 
void SetDecoderConfigFileName (string FileName)
 
BmnStatus SetDigiDirectory (string fDigiDir)
 
BmnStatus SetTarDirectory (string DirName)
 
void SetTarFileNames (vector< string > FileNames)
 
TString GetSubNameAfterRunId (TString name)
 
 BmnMetadataDecoder (vector< string > file={}, string outfile="", ULong_t period=8, BmnSetup setup=kBMNSETUP)
 
virtual ~BmnMetadataDecoder ()
 
void ClearDigiArrays ()
 
void ClearSpillDigiArrays ()
 
BmnStatus ProcessStatusBlocks ()
 
BmnStatus ProcessSpillTree ()
 
void GatherStatusBlocksFromDigis ()
 
void GatherStatusBlocksFromTars ()
 
BmnStatus DecodeDataToDigiIterate ()
 
BmnStatus InitDecoder ()
 
void ResetDecoder (TString file)
 
BmnStatus SaveData ()
 
BmnStatus DisposeDecoder ()
 
void SetRawTree (TTree *tree)
 
TTree * GetDigiTree ()
 
void SetRunId (UInt_t v)
 
void SetPeriodId (UInt_t v)
 
UInt_t GetRunId () const
 
UInt_t GetPeriodId () const
 
void SetBmnSetup (BmnSetup v)
 
BmnSetup GetBmnSetup () const
 
void SetMSCMapping (TString map)
 
void SetRawRootFile (TString filename)
 
void SetOutFileName (string filename)
 
void SetDecoderConfigFileName (string FileName)
 
BmnStatus SetDigiDirectory (string fDigiDir)
 
BmnStatus SetTarDirectory (string DirName)
 
void SetTarFileNames (vector< string > FileNames)
 
TString GetSubNameAfterRunId (TString name)
 

Detailed Description

Definition at line 29 of file BmnMetadataDecoder.h.

Constructor & Destructor Documentation

◆ BmnMetadataDecoder() [1/2]

BmnMetadataDecoder::BmnMetadataDecoder ( vector< string >  file = {},
string  outfile = "",
ULong_t  period = 8,
BmnSetup  setup = kBMNSETUP 
)

Definition at line 37 of file BmnMetadataDecoder.cxx.

◆ ~BmnMetadataDecoder() [1/2]

BmnMetadataDecoder::~BmnMetadataDecoder ( )
virtual

Definition at line 69 of file BmnMetadataDecoder.cxx.

References DisposeDecoder().

◆ BmnMetadataDecoder() [2/2]

BmnMetadataDecoder::BmnMetadataDecoder ( vector< string >  file = {},
string  outfile = "",
ULong_t  period = 8,
BmnSetup  setup = kBMNSETUP 
)

◆ ~BmnMetadataDecoder() [2/2]

virtual BmnMetadataDecoder::~BmnMetadataDecoder ( )
virtual

Member Function Documentation

◆ ClearDigiArrays() [1/2]

void BmnMetadataDecoder::ClearDigiArrays ( )

Definition at line 942 of file BmnMetadataDecoder.cxx.

References BmnEventHeader::Clear().

◆ ClearDigiArrays() [2/2]

void BmnMetadataDecoder::ClearDigiArrays ( )

◆ ClearSpillDigiArrays() [1/2]

void BmnMetadataDecoder::ClearSpillDigiArrays ( )

Definition at line 949 of file BmnMetadataDecoder.cxx.

References BmnSpillHeader::Clear().

Referenced by ProcessSpillTree().

◆ ClearSpillDigiArrays() [2/2]

void BmnMetadataDecoder::ClearSpillDigiArrays ( )

◆ DecodeDataToDigiIterate() [1/2]

BmnStatus BmnMetadataDecoder::DecodeDataToDigiIterate ( )

◆ DecodeDataToDigiIterate() [2/2]

BmnStatus BmnMetadataDecoder::DecodeDataToDigiIterate ( )

◆ DisposeDecoder() [1/2]

BmnStatus BmnMetadataDecoder::DisposeDecoder ( )

Definition at line 1009 of file BmnMetadataDecoder.cxx.

References kBMNSUCCESS.

Referenced by ~BmnMetadataDecoder().

◆ DisposeDecoder() [2/2]

BmnStatus BmnMetadataDecoder::DisposeDecoder ( )

◆ GatherStatusBlocksFromDigis() [1/2]

void BmnMetadataDecoder::GatherStatusBlocksFromDigis ( )

◆ GatherStatusBlocksFromDigis() [2/2]

void BmnMetadataDecoder::GatherStatusBlocksFromDigis ( )

◆ GatherStatusBlocksFromTars() [1/2]

void BmnMetadataDecoder::GatherStatusBlocksFromTars ( )

Definition at line 254 of file BmnMetadataDecoder.cxx.

◆ GatherStatusBlocksFromTars() [2/2]

void BmnMetadataDecoder::GatherStatusBlocksFromTars ( )

◆ GetBmnSetup() [1/2]

BmnSetup BmnMetadataDecoder::GetBmnSetup ( ) const
inline

Definition at line 61 of file BmnMetadataDecoder.h.

◆ GetBmnSetup() [2/2]

BmnSetup BmnMetadataDecoder::GetBmnSetup ( ) const
inline

Definition at line 61 of file BmnMetadataDecoder.h.

◆ GetDigiTree() [1/2]

TTree * BmnMetadataDecoder::GetDigiTree ( )
inline

Definition at line 49 of file BmnMetadataDecoder.h.

◆ GetDigiTree() [2/2]

TTree * BmnMetadataDecoder::GetDigiTree ( )
inline

Definition at line 49 of file BmnMetadataDecoder.h.

◆ GetPeriodId() [1/2]

UInt_t BmnMetadataDecoder::GetPeriodId ( ) const
inline

Definition at line 57 of file BmnMetadataDecoder.h.

◆ GetPeriodId() [2/2]

UInt_t BmnMetadataDecoder::GetPeriodId ( ) const
inline

Definition at line 57 of file BmnMetadataDecoder.h.

◆ GetRunId() [1/2]

UInt_t BmnMetadataDecoder::GetRunId ( ) const
inline

Definition at line 55 of file BmnMetadataDecoder.h.

◆ GetRunId() [2/2]

UInt_t BmnMetadataDecoder::GetRunId ( ) const
inline

Definition at line 55 of file BmnMetadataDecoder.h.

◆ GetSubNameAfterRunId() [1/2]

TString BmnMetadataDecoder::GetSubNameAfterRunId ( TString  name)

Definition at line 1029 of file BmnMetadataDecoder.cxx.

◆ GetSubNameAfterRunId() [2/2]

TString BmnMetadataDecoder::GetSubNameAfterRunId ( TString  name)

◆ InitDecoder() [1/2]

BmnStatus BmnMetadataDecoder::InitDecoder ( )

Definition at line 935 of file BmnMetadataDecoder.cxx.

References kBMNSUCCESS.

◆ InitDecoder() [2/2]

BmnStatus BmnMetadataDecoder::InitDecoder ( )

◆ ProcessSpillTree() [1/2]

BmnStatus BmnMetadataDecoder::ProcessSpillTree ( )

Start reading

General time map (high memory usage)

Local time map (longer calculation, less memory use)

Definition at line 256 of file BmnMetadataDecoder.cxx.

References ClearSpillDigiArrays(), BmnT0Raw< counters_cnt >::Counters(), BmnSpillHeader::EventTriggerCnt(), BmnMSCZSDigit< IntType >::GetChannel(), BmnMSCMatrix< IntType >::GetCount(), BmnEventHeader::GetEventId(), BmnEventHeader::GetEventTimeTP(), BmnMSCZSDigit< IntType >::GetExtCond(), BmnEventHeader::GetInputSignalsAR(), BmnMSCZSDigit< IntType >::GetNVals(), BmnMSCDigit< IntType >::GetSerial(), BmnMSCZSDigit< IntType >::GetSerial(), BmnSpillHeader::GetSpillId(), BmnT0Raw< counters_cnt >::GetTime(), BmnMSCDigit< IntType >::GetTime(), BmnMSCZSDigit< IntType >::GetTime(), BmnMSCZSDigit< IntType >::GetTimes(), BmnMSCDigit< IntType >::GetValue(), BmnMSCZSDigit< IntType >::GetValues(), i, BmnMSCDigit< IntType >::IsBusy(), BmnMSCMatrix< IntType >::IsBusyBitVec(), BmnMSCDigit< IntType >::IsSpill(), BmnMSCMatrix< IntType >::IsSpillBitVec(), kBMNSUCCESS, kT0_BIN_BLOCK_WORDS, MSC_EC_BUSY, MSC_EC_SPILL, MSC_N_COUNTERS, BmnSpillHeader::RawT0Counters(), BmnMetadataRaw::RawT0Map(), BmnSpillHeader::Scalers(), BmnMetadataRaw::ScalersMap(), BmnSpillHeader::ScalersVec(), BmnMSCMatrix< IntType >::SetCount(), BmnSpillHeader::SetFirstEventId(), BmnSpillHeader::SetLastEventId(), BmnSpillHeader::SetNEvents(), BmnSpillHeader::SetSpillId(), BmnSpillHeader::SetStartTime(), BmnSpillHeader::SetStopTime(), BmnMetadataRaw::SpillMap(), BmnSpillInfo::start_ts, BmnSpillInfo::stop_ts, BmnMSCMatrix< IntType >::Time(), BmnFunctionSet::TimePoint2String(), and BmnMetadataRaw::TrcMap().

◆ ProcessSpillTree() [2/2]

BmnStatus BmnMetadataDecoder::ProcessSpillTree ( )

◆ ProcessStatusBlocks() [1/2]

◆ ProcessStatusBlocks() [2/2]

BmnStatus BmnMetadataDecoder::ProcessStatusBlocks ( )

◆ ResetDecoder() [1/2]

void BmnMetadataDecoder::ResetDecoder ( TString  file)

Definition at line 959 of file BmnMetadataDecoder.cxx.

◆ ResetDecoder() [2/2]

void BmnMetadataDecoder::ResetDecoder ( TString  file)

◆ SaveData() [1/2]

◆ SaveData() [2/2]

BmnStatus BmnMetadataDecoder::SaveData ( )

◆ SetBmnSetup() [1/2]

void BmnMetadataDecoder::SetBmnSetup ( BmnSetup  v)
inline

Definition at line 59 of file BmnMetadataDecoder.h.

References v.

◆ SetBmnSetup() [2/2]

void BmnMetadataDecoder::SetBmnSetup ( BmnSetup  v)
inline

Definition at line 59 of file BmnMetadataDecoder.h.

References v.

◆ SetDecoderConfigFileName() [1/2]

void BmnMetadataDecoder::SetDecoderConfigFileName ( string  FileName)
inline

Definition at line 69 of file BmnMetadataDecoder.h.

◆ SetDecoderConfigFileName() [2/2]

void BmnMetadataDecoder::SetDecoderConfigFileName ( string  FileName)
inline

Definition at line 69 of file BmnMetadataDecoder.h.

◆ SetDigiDirectory() [1/2]

BmnStatus BmnMetadataDecoder::SetDigiDirectory ( string  fDigiDir)

◆ SetDigiDirectory() [2/2]

BmnStatus BmnMetadataDecoder::SetDigiDirectory ( string  fDigiDir)

◆ SetMSCMapping() [1/2]

void BmnMetadataDecoder::SetMSCMapping ( TString  map)
inline

Definition at line 63 of file BmnMetadataDecoder.h.

◆ SetMSCMapping() [2/2]

void BmnMetadataDecoder::SetMSCMapping ( TString  map)
inline

Definition at line 63 of file BmnMetadataDecoder.h.

◆ SetOutFileName() [1/2]

void BmnMetadataDecoder::SetOutFileName ( string  filename)
inline

Definition at line 67 of file BmnMetadataDecoder.h.

◆ SetOutFileName() [2/2]

void BmnMetadataDecoder::SetOutFileName ( string  filename)
inline

Definition at line 67 of file BmnMetadataDecoder.h.

◆ SetPeriodId() [1/2]

void BmnMetadataDecoder::SetPeriodId ( UInt_t  v)
inline

Definition at line 53 of file BmnMetadataDecoder.h.

References v.

◆ SetPeriodId() [2/2]

void BmnMetadataDecoder::SetPeriodId ( UInt_t  v)
inline

Definition at line 53 of file BmnMetadataDecoder.h.

References v.

◆ SetRawRootFile() [1/2]

void BmnMetadataDecoder::SetRawRootFile ( TString  filename)
inline

Definition at line 65 of file BmnMetadataDecoder.h.

◆ SetRawRootFile() [2/2]

void BmnMetadataDecoder::SetRawRootFile ( TString  filename)
inline

Definition at line 65 of file BmnMetadataDecoder.h.

◆ SetRawTree() [1/2]

void BmnMetadataDecoder::SetRawTree ( TTree *  tree)
inline

Definition at line 47 of file BmnMetadataDecoder.h.

◆ SetRawTree() [2/2]

void BmnMetadataDecoder::SetRawTree ( TTree *  tree)
inline

Definition at line 47 of file BmnMetadataDecoder.h.

◆ SetRunId() [1/2]

void BmnMetadataDecoder::SetRunId ( UInt_t  v)
inline

Definition at line 51 of file BmnMetadataDecoder.h.

References v.

◆ SetRunId() [2/2]

void BmnMetadataDecoder::SetRunId ( UInt_t  v)
inline

Definition at line 51 of file BmnMetadataDecoder.h.

References v.

◆ SetTarDirectory() [1/2]

BmnStatus BmnMetadataDecoder::SetTarDirectory ( string  DirName)

Definition at line 130 of file BmnMetadataDecoder.cxx.

References kBMNERROR, and kBMNSUCCESS.

◆ SetTarDirectory() [2/2]

BmnStatus BmnMetadataDecoder::SetTarDirectory ( string  DirName)

◆ SetTarFileNames() [1/2]

void BmnMetadataDecoder::SetTarFileNames ( vector< string >  FileNames)
inline

Definition at line 75 of file BmnMetadataDecoder.h.

◆ SetTarFileNames() [2/2]

void BmnMetadataDecoder::SetTarFileNames ( vector< string >  FileNames)
inline

Definition at line 75 of file BmnMetadataDecoder.h.


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