|
BmnRoot
|
#include <BmnConverter.h>
Public Member Functions | |
| BmnConverter (uint32_t threadCount=0, uint32_t period=8, TString outDir=".", bool tempFileOnDisk=false) | |
| virtual | ~BmnConverter () |
| BmnStatus | ParseJsonTLV (UInt_t *buf, UInt_t &len) |
| void | OutputSpills () |
| BmnStatus | FeedFile (TString name, Bool_t getRunId=kTRUE, Bool_t getSubName=kTRUE) |
| BmnStatus | FeedEvent (UInt_t *buf, UInt_t len, Int_t type) |
| void | SeparateEventsBySpills () |
| void | SeparateEventsBySpillsTM () |
| void | ReproduceBranches (TTree *inTree, TTree *outTree) |
| void | SetRunId (uint32_t v) |
| void | SetPeriod (uint32_t v) |
| void | SetSubName (TString v) |
| void | SetSpillMap (map< SysPoint, BmnSpillInfo > spillMap) |
| map< SysPoint, BmnSpillInfo > | GetSpillMap () |
| bool | GetTempFileOnDisk () |
| void | Close () |
| void | SetDecoderConfigFileName (string FileName) |
| void | OutputTrees () |
| BmnConverter (uint32_t threadCount=0, uint32_t period=8, TString outDir=".", bool tempFileOnDisk=false) | |
| virtual | ~BmnConverter () |
| BmnStatus | ParseJsonTLV (UInt_t *buf, UInt_t &len) |
| void | OutputSpills () |
| BmnStatus | FeedFile (TString name, Bool_t getRunId=kTRUE, Bool_t getSubName=kTRUE) |
| BmnStatus | FeedEvent (UInt_t *buf, UInt_t len, Int_t type) |
| void | SeparateEventsBySpills () |
| void | SeparateEventsBySpillsTM () |
| void | ReproduceBranches (TTree *inTree, TTree *outTree) |
| void | SetRunId (uint32_t v) |
| void | SetPeriod (uint32_t v) |
| void | SetSubName (TString v) |
| void | SetSpillMap (map< SysPoint, BmnSpillInfo > spillMap) |
| map< SysPoint, BmnSpillInfo > | GetSpillMap () |
| bool | GetTempFileOnDisk () |
| void | Close () |
| void | SetDecoderConfigFileName (string FileName) |
| void | OutputTrees () |
Static Public Member Functions | |
| static BmnStatus | ParseComplexTLV (UInt_t *buf, UInt_t &len, UInt_t &runId) |
| static BmnStatus | ParseComplexTLV (UInt_t *buf, UInt_t &len, UInt_t &runId) |
Public Attributes | |
| vector< pair< int, pair< int, int > > > | vecTree |
| vector< pair< int, pair< int, int > > > | vecTreeSpills |
| map< int32_t, map< int32_t, TreePos > > | treeMap |
| map< int32_t, multimap< SysPoint, TreePos > > | treeMapSpills |
| multimap< SysPoint, TreePE > | treeTimeMap |
| map< int32_t, MapTP2TreePE > | treeTimeMapDiv |
| BmnThreadManager< BmnConverterThread > * | fThreads |
| uint32_t | fThreadCnt |
Definition at line 61 of file BmnConverter.h.
| BmnConverter::BmnConverter | ( | uint32_t | threadCount = 0, |
| uint32_t | period = 8, |
||
| TString | outDir = ".", |
||
| bool | tempFileOnDisk = false |
||
| ) |
Definition at line 28 of file BmnConverter.cxx.
References BmnThreadManager< T >::Add(), ANSI_COLOR_BLUE, ANSI_COLOR_RESET, BmnConverterThread::CreateTrees(), fThreadCnt, fThreads, i, BmnConverterThread::RegisterBranches(), BmnConverterThread::RegisterSpillBranches(), BmnConverterThread::SetMerger(), and BmnConverterThread::SetPeriod().
|
inlinevirtual |
Definition at line 75 of file BmnConverter.h.
| BmnConverter::BmnConverter | ( | uint32_t | threadCount = 0, |
| uint32_t | period = 8, |
||
| TString | outDir = ".", |
||
| bool | tempFileOnDisk = false |
||
| ) |
|
inlinevirtual |
Definition at line 75 of file BmnConverter.h.
|
inline |
Definition at line 103 of file BmnConverter.h.
References fThreads, and BmnThreadManager< T >::Terminate().
Referenced by OutputSpills(), and SeparateEventsBySpillsTM().
|
inline |
Definition at line 103 of file BmnConverter.h.
References fThreads, and BmnThreadManager< T >::Terminate().
| BmnStatus BmnConverter::FeedEvent | ( | UInt_t * | buf, |
| UInt_t | len, | ||
| Int_t | type | ||
| ) |
Definition at line 422 of file BmnConverter.cxx.
References kBMNERROR, kBMNPAYLOAD, kBMNSTAT, and kBMNSUCCESS.
| BmnStatus BmnConverter::FeedEvent | ( | UInt_t * | buf, |
| UInt_t | len, | ||
| Int_t | type | ||
| ) |
| BmnStatus BmnConverter::FeedFile | ( | TString | name, |
| Bool_t | getRunId = kTRUE, |
||
| Bool_t | getSubName = kTRUE |
||
| ) |
Definition at line 437 of file BmnConverter.cxx.
References ANSI_COLOR_BLUE, ANSI_COLOR_RESET, BmnAbstractThread::CancelReady(), BmnThreadManager< T >::Finish(), fThreadCnt, fThreads, BmnRawDataDecoder::GetRunIdFromFile(), BmnConverterTools::GetSubNameAfterRunId(), BmnThreadManager< T >::GetThread(), i, kBMNERROR, kBMNSUCCESS, BmnConverterThread::SetInitData(), vecTree, and vecTreeSpills.
| BmnStatus BmnConverter::FeedFile | ( | TString | name, |
| Bool_t | getRunId = kTRUE, |
||
| Bool_t | getSubName = kTRUE |
||
| ) |
|
inline |
Definition at line 99 of file BmnConverter.h.
|
inline |
Definition at line 99 of file BmnConverter.h.
|
inline |
Definition at line 101 of file BmnConverter.h.
|
inline |
Definition at line 101 of file BmnConverter.h.
| void BmnConverter::OutputSpills | ( | ) |
Definition at line 175 of file BmnConverter.cxx.
References ANSI_COLOR_BLUE, ANSI_COLOR_RESET, Close(), BmnAbstractThread::Execute(), BmnThreadManager< T >::Finish(), fThreadCnt, fThreads, BmnThreadManager< T >::GetThread(), BmnThreadManager< T >::GetWaitingThread(), i, OutputTrees(), BmnConverterThread::SetData(), BmnConverterThread::SetMerger(), BmnConverterThread::SetTrees(), vecTree, and vecTreeSpills.
| void BmnConverter::OutputSpills | ( | ) |
| void BmnConverter::OutputTrees | ( | ) |
Definition at line 141 of file BmnConverter.cxx.
References BmnConverterThread::FinalizeFile(), BmnThreadManager< T >::Finish(), fThreadCnt, fThreads, BmnThreadManager< T >::GetThread(), and i.
Referenced by OutputSpills().
| void BmnConverter::OutputTrees | ( | ) |
|
static |
|
static |
| BmnStatus BmnConverter::ParseJsonTLV | ( | UInt_t * | buf, |
| UInt_t & | len | ||
| ) |
Definition at line 672 of file BmnConverter.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.
| BmnStatus BmnConverter::ParseJsonTLV | ( | UInt_t * | buf, |
| UInt_t & | len | ||
| ) |
| void BmnConverter::ReproduceBranches | ( | TTree * | inTree, |
| TTree * | outTree | ||
| ) |
Definition at line 371 of file BmnConverter.cxx.
References i.
| void BmnConverter::ReproduceBranches | ( | TTree * | inTree, |
| TTree * | outTree | ||
| ) |
| void BmnConverter::SeparateEventsBySpills | ( | ) |
Definition at line 230 of file BmnConverter.cxx.
References ANSI_COLOR_BLUE, ANSI_COLOR_RESET, BmnConverterThread::eventHeaderDAQ, BmnThreadManager< T >::Finish(), BmnConverterThread::fRawTree, BmnConverterThread::fRawTreeSpills, fThreadCnt, fThreads, BmnEventHeader::GetEventTimeTS(), BmnThreadManager< T >::GetThread(), i, BmnConverterThread::msc, BmnConverterThread::RegisterBranches(), BmnConverterThread::RegisterSpillBranches(), BmnConverterThread::t0raw, BmnFunctionSet::TimePoint2String(), vecTree, and vecTreeSpills.
| void BmnConverter::SeparateEventsBySpills | ( | ) |
| void BmnConverter::SeparateEventsBySpillsTM | ( | ) |
Definition at line 300 of file BmnConverter.cxx.
References ANSI_COLOR_BLUE, ANSI_COLOR_RESET, Close(), BmnConverterThread::eventHeaderDAQ, BmnThreadManager< T >::Finish(), BmnConverterThread::fRawTree, fThreadCnt, fThreads, BmnEventHeader::GetEventTimeTP(), BmnThreadManager< T >::GetThread(), i, BmnFunctionSet::TimePoint2String(), treeTimeMap, and treeTimeMapDiv.
| void BmnConverter::SeparateEventsBySpillsTM | ( | ) |
|
inline |
Definition at line 110 of file BmnConverter.h.
|
inline |
Definition at line 110 of file BmnConverter.h.
|
inline |
Definition at line 93 of file BmnConverter.h.
References v.
|
inline |
Definition at line 93 of file BmnConverter.h.
References v.
|
inline |
Definition at line 91 of file BmnConverter.h.
References v.
|
inline |
Definition at line 91 of file BmnConverter.h.
References v.
|
inline |
Definition at line 97 of file BmnConverter.h.
|
inline |
Definition at line 97 of file BmnConverter.h.
|
inline |
Definition at line 95 of file BmnConverter.h.
References v.
|
inline |
Definition at line 95 of file BmnConverter.h.
References v.
| uint32_t BmnConverter::fThreadCnt |
Definition at line 73 of file BmnConverter.h.
Referenced by BmnConverter(), FeedFile(), OutputSpills(), OutputTrees(), SeparateEventsBySpills(), and SeparateEventsBySpillsTM().
| BmnThreadManager< BmnConverterThread > * BmnConverter::fThreads |
Definition at line 72 of file BmnConverter.h.
Referenced by BmnConverter(), Close(), FeedFile(), OutputSpills(), OutputTrees(), SeparateEventsBySpills(), and SeparateEventsBySpillsTM().
| map< int32_t, map< int32_t, TreePos > > BmnConverter::treeMap |
Definition at line 68 of file BmnConverter.h.
Definition at line 69 of file BmnConverter.h.
Definition at line 70 of file BmnConverter.h.
Referenced by SeparateEventsBySpillsTM().
| map< int32_t, MapTP2TreePE > BmnConverter::treeTimeMapDiv |
Definition at line 71 of file BmnConverter.h.
Referenced by SeparateEventsBySpillsTM().
| vector< pair< int, pair< int, int > > > BmnConverter::vecTree |
Definition at line 64 of file BmnConverter.h.
Referenced by FeedFile(), OutputSpills(), and SeparateEventsBySpills().
| vector< pair< int, pair< int, int > > > BmnConverter::vecTreeSpills |
Definition at line 65 of file BmnConverter.h.
Referenced by FeedFile(), OutputSpills(), and SeparateEventsBySpills().