CbmRoot
|
#include <CbmMcbm2018Source.h>
Public Member Functions | |
CbmMcbm2018Source () | |
CbmMcbm2018Source (const CbmMcbm2018Source &source)=delete | |
CbmMcbm2018Source | operator= (const CbmMcbm2018Source &)=delete |
virtual | ~CbmMcbm2018Source () |
Bool_t | Init () |
Int_t | ReadEvent (UInt_t) |
Source_Type | GetSourceType () |
virtual void | SetParUnpackers () |
virtual Bool_t | InitUnpackers () |
virtual Bool_t | ReInitUnpackers () |
void | Close () |
void | Reset () |
void | SetFileName (TString name) |
void | SetInputDir (TString name) |
void | SetHostName (TString name) |
void | AddUnpacker (CbmMcbmUnpack *unpacker, Int_t flibId, ECbmModuleId) |
void | AddFile (const char *name) |
UInt_t | GetTsCount () |
UInt_t | GetNofTSSinceLastTS () |
void | SetDataReductionMuch (UInt_t uTsReduction=15) |
void | SetSubscriberHwm (UInt_t val=1) |
void | SetWriteOutputFlag (Bool_t bFlagIn) |
Private Member Functions | |
Bool_t | CheckTimeslice (const fles::Timeslice &ts) |
void | PrintMicroSliceDescriptor (const fles::MicrosliceDescriptor &mdsc) |
Int_t | FillBuffer () |
Private Attributes | |
TString | fFileName |
TString | fDirName |
TList | fInputFileList |
List of input files. More... | |
TString | fHost |
std::multimap< Int_t, CbmMcbmUnpack * > | fUnpackers |
std::unordered_set< CbmMcbmUnpack * > | fUnpackersToRun |
List pairs of system ID and unpacker pointer (unpacker can appear multiple times) More... | |
UInt_t | fTSNumber |
List of all unpackers for which at least one matching container was found. More... | |
UInt_t | fTSCounter |
TStopwatch | fTimer |
TH1I * | fHistoMissedTS |
TProfile * | fHistoMissedTSEvo |
Int_t | fNofTSSinceLastTS |
UInt_t | fuTsReduction |
std::unique_ptr< fles::TimesliceSource > | fSource |
UInt_t | fuSubscriberHwm |
Bool_t | fbWriteOutput |
Output ClonesArray. More... | |
TClonesArray * | fTimeSliceMetaDataArray |
If ON the output TClonesArray of meta-data is written to disk. More... | |
Definition at line 34 of file CbmMcbm2018Source.h.
CbmMcbm2018Source::CbmMcbm2018Source | ( | ) |
Definition at line 32 of file CbmMcbm2018Source.cxx.
|
delete |
|
virtual |
Definition at line 52 of file CbmMcbm2018Source.cxx.
|
inline |
Definition at line 69 of file CbmMcbm2018Source.h.
References fInputFileList.
|
inline |
Definition at line 65 of file CbmMcbm2018Source.h.
References fUnpackers.
|
private |
Definition at line 177 of file CbmMcbm2018Source.cxx.
void CbmMcbm2018Source::Close | ( | ) |
Definition at line 187 of file CbmMcbm2018Source.cxx.
References fUnpackersToRun.
|
private |
Get range of all unpackers matching this system ID <= Trick for STS + MUCH
Apply TS throttling as set by user (default = 1 => no throttling)
Save the TimeSlice meta-data for access by higher level tasks TODO: do not hard-code the duration here!
Definition at line 206 of file CbmMcbm2018Source.cxx.
References fHistoMissedTS, fHistoMissedTSEvo, fNofTSSinceLastTS, fSource, fTimeSliceMetaDataArray, fTSCounter, fTSNumber, fUnpackers, fUnpackersToRun, and fuTsReduction.
Referenced by ReadEvent().
|
inline |
Definition at line 72 of file CbmMcbm2018Source.h.
References fNofTSSinceLastTS.
|
inline |
Definition at line 46 of file CbmMcbm2018Source.h.
|
inline |
Definition at line 71 of file CbmMcbm2018Source.h.
References fTSCounter.
Bool_t CbmMcbm2018Source::Init | ( | ) |
Build list of unpackers without multiples from unpacker dealing with 2 or more detectors
Prepare output of TS meta-data
Definition at line 54 of file CbmMcbm2018Source.cxx.
References fbWriteOutput, fDirName, fFileName, fHistoMissedTS, fHistoMissedTSEvo, fHost, fInputFileList, fSource, fTimeSliceMetaDataArray, fUnpackers, fUnpackersToRun, and fuSubscriberHwm.
|
virtual |
Definition at line 131 of file CbmMcbm2018Source.cxx.
References fUnpackersToRun.
|
delete |
|
private |
Definition at line 159 of file CbmMcbm2018Source.cxx.
Int_t CbmMcbm2018Source::ReadEvent | ( | UInt_t | ) |
Definition at line 151 of file CbmMcbm2018Source.cxx.
References FillBuffer().
|
virtual |
Definition at line 141 of file CbmMcbm2018Source.cxx.
References fUnpackersToRun.
void CbmMcbm2018Source::Reset | ( | ) |
Definition at line 199 of file CbmMcbm2018Source.cxx.
References fTimeSliceMetaDataArray, and fUnpackers.
|
inline |
Definition at line 74 of file CbmMcbm2018Source.h.
References fuTsReduction.
|
inline |
Definition at line 57 of file CbmMcbm2018Source.h.
References fFileName, and fInputFileList.
|
inline |
Definition at line 62 of file CbmMcbm2018Source.h.
References fHost.
|
inline |
Definition at line 61 of file CbmMcbm2018Source.h.
References fDirName.
|
virtual |
Definition at line 123 of file CbmMcbm2018Source.cxx.
References fUnpackersToRun.
|
inline |
Definition at line 78 of file CbmMcbm2018Source.h.
References fuSubscriberHwm.
|
inline |
Definition at line 80 of file CbmMcbm2018Source.h.
References fbWriteOutput.
|
private |
Output ClonesArray.
Definition at line 114 of file CbmMcbm2018Source.h.
Referenced by Init(), and SetWriteOutputFlag().
|
private |
Definition at line 84 of file CbmMcbm2018Source.h.
Referenced by Init(), and SetInputDir().
|
private |
Definition at line 83 of file CbmMcbm2018Source.h.
Referenced by Init(), and SetFileName().
|
private |
Definition at line 97 of file CbmMcbm2018Source.h.
Referenced by FillBuffer(), and Init().
|
private |
Definition at line 98 of file CbmMcbm2018Source.h.
Referenced by FillBuffer(), and Init().
|
private |
Definition at line 86 of file CbmMcbm2018Source.h.
Referenced by Init(), and SetHostName().
|
private |
List of input files.
Definition at line 85 of file CbmMcbm2018Source.h.
Referenced by AddFile(), Init(), and SetFileName().
|
private |
Definition at line 99 of file CbmMcbm2018Source.h.
Referenced by FillBuffer(), and GetNofTSSinceLastTS().
|
private |
Definition at line 103 of file CbmMcbm2018Source.h.
Referenced by FillBuffer(), and Init().
|
private |
Definition at line 95 of file CbmMcbm2018Source.h.
|
private |
If ON the output TClonesArray of meta-data is written to disk.
Definition at line 115 of file CbmMcbm2018Source.h.
Referenced by FillBuffer(), Init(), and Reset().
|
private |
Definition at line 94 of file CbmMcbm2018Source.h.
Referenced by FillBuffer(), and GetTsCount().
|
private |
List of all unpackers for which at least one matching container was found.
Definition at line 93 of file CbmMcbm2018Source.h.
Referenced by FillBuffer().
|
private |
Definition at line 89 of file CbmMcbm2018Source.h.
Referenced by AddUnpacker(), FillBuffer(), Init(), and Reset().
|
private |
List pairs of system ID and unpacker pointer (unpacker can appear multiple times)
Definition at line 91 of file CbmMcbm2018Source.h.
Referenced by Close(), FillBuffer(), Init(), InitUnpackers(), ReInitUnpackers(), and SetParUnpackers().
|
private |
Definition at line 105 of file CbmMcbm2018Source.h.
Referenced by Init(), and SetSubscriberHwm().
|
private |
Definition at line 101 of file CbmMcbm2018Source.h.
Referenced by FillBuffer(), and SetDataReductionMuch().