CbmRoot
|
#include <CbmMcbm2018MonitorDataRates.h>
Public Member Functions | |
CbmMcbm2018MonitorDataRates () | |
virtual | ~CbmMcbm2018MonitorDataRates () |
virtual Bool_t | Init () |
virtual Bool_t | DoUnpack (const fles::Timeslice &ts, size_t component) |
virtual void | Reset () |
virtual void | Finish () |
void | SetParContainers () |
Bool_t | InitContainers () |
Bool_t | ReInitContainers () |
void | SetMsLimitLevel (size_t uAcceptBoundaryPct=100) |
size_t | GetMsLimitLevel () |
virtual void | AddMsComponentToList (size_t component, UShort_t usDetectorId) |
virtual void | SetNbMsInTs (size_t uCoreMsNb, size_t uOverlapMsNb) |
void | SetIgnoreOverlapMs (Bool_t bEnaFlag=kTRUE) |
void | SetMsOverlap (size_t uOverlapMsNb=1) |
size_t | GetMsOverlap () |
void | SetHistoFilename (TString sNameIn) |
void | SetHistoryHistoSize (UInt_t inHistorySizeSec=1800) |
void | AddEqIdChannelNumber (UInt_t uEqId, UInt_t uNbCh) |
void | SaveAllHistos (TString sFileName="") |
void | ResetAllHistos () |
void | ResetEvolutionHistograms () |
void | UseDaqBuffer (Bool_t) |
Private Member Functions | |
void | CreateHistograms () |
CbmMcbm2018MonitorDataRates (const CbmMcbm2018MonitorDataRates &) | |
CbmMcbm2018MonitorDataRates | operator= (const CbmMcbm2018MonitorDataRates &) |
Private Attributes | |
std::vector< size_t > | fvMsComponentsList |
FLES containers. | |
size_t | fuNbCoreMsPerTs |
size_t | fuNbOverMsPerTs |
Bool_t | fbIgnoreOverlapMs |
size_t | fuMsAcceptsPercent |
/** Ignore Overlap Ms: all fuOverlapMsNb MS at the end of timeslice **/ | |
size_t | fuTotalMsNb |
size_t | fuOverlapMsNb |
size_t | fuCoreMs |
Double_t | fdMsSizeInNs |
Double_t | fdTsCoreSizeInNs |
TString | fsHistoFilename |
UInt_t | fuNbFlimLinks |
std::map< UInt_t, UInt_t > | fmChannelsPerEqId |
Parameters. | |
uint64_t | fulCurrentTsIndex |
size_t | fuCurrentMs |
size_t | fuCurrentMsSysId |
Double_t | fdMsIndex |
Int_t | fiEquipmentId |
Double_t | fdStartTimeMsSz |
Histograms and histogram control variables. | |
UInt_t | fuHistoryHistoSize |
std::vector< UInt_t > | fvuTsSzLink |
TCanvas * | fcDataRateTimeAll |
TCanvas * | fcTsSizeAll |
TCanvas * | fcTsSizeTimeAll |
TCanvas * | fcMsSizeAll |
TCanvas * | fcMsSizeTimeAll |
TCanvas * | fcMsMessAll |
TCanvas * | fcMsMessTimeAll |
TCanvas * | fcMsDataChAll |
TCanvas * | fcMsDataChTimeAll |
TH1 * | fhDataRateTimeAllLinks |
std::vector< TH1 * > | fvhDataRateTimePerLink |
std::vector< TH1 * > | fvhTsSzPerLink |
std::vector< TProfile * > | fvhTsSzTimePerLink |
std::vector< TH1 * > | fvhMsSzPerLink |
std::vector< TProfile * > | fvhMsSzTimePerLink |
std::vector< TH1 * > | fvhMsMessPerLink |
std::vector< TProfile * > | fvhMsMessTimePerLink |
std::vector< TH1 * > | fvhMsMeanChDataPerLink |
std::vector< TH1 * > | fvhMsMeanChDataTimePerLink |
Static Private Attributes | |
static const UInt_t | kuSysIdSts = 10 |
Constants. | |
static const UInt_t | kuSysIdRich = 30 |
static const UInt_t | kuSysIdMuch = 40 |
static const UInt_t | kuSysIdTof = 60 |
static const UInt_t | kuSysIdBmon = 90 |
static const UInt_t | kuBytesPerMessageSts = 4 |
static const UInt_t | kuBytesPerMessageRich = 4 |
static const UInt_t | kuBytesPerMessageMuch = 4 |
static const UInt_t | kuBytesPerMessageTof = 8 |
static const UInt_t | kuBytesPerMessageBmon = 8 |
Definition at line 34 of file CbmMcbm2018MonitorDataRates.h.
CbmMcbm2018MonitorDataRates::CbmMcbm2018MonitorDataRates | ( | ) |
Definition at line 50 of file CbmMcbm2018MonitorDataRates.cxx.
|
virtual |
Definition at line 86 of file CbmMcbm2018MonitorDataRates.cxx.
|
private |
|
inline |
Definition at line 65 of file CbmMcbm2018MonitorDataRates.h.
References fmChannelsPerEqId.
|
virtual |
Check for duplicates and ignore if it is the case
Add to list
Logarithmic bining
Parameters are NbDecadesLog, NbStepsDecade, NbSubStepsInStep
Create Data Rate monitoring histo
Create TS size monitoring histos
Cleanup array of log bins
Implements CbmMcbmUnpack.
Definition at line 117 of file CbmMcbm2018MonitorDataRates.cxx.
References fuHistoryHistoSize, fuNbFlimLinks, fvhDataRateTimePerLink, fvhMsMeanChDataPerLink, fvhMsMeanChDataTimePerLink, fvhMsMessPerLink, fvhMsMessTimePerLink, fvhMsSzPerLink, fvhMsSzTimePerLink, fvhTsSzPerLink, fvhTsSzTimePerLink, fvMsComponentsList, and GenerateLogBinArray().
|
private |
Logarithmic bining
Parameters are NbDecadesLog, NbStepsDecade, NbSubStepsInStep
Create Data Rate monitoring histo
Create TS size monitoring histos
Create MS size monitoring histos
Cleanup array of log bins
Create Ms Size Canvas
Definition at line 207 of file CbmMcbm2018MonitorDataRates.cxx.
References fcDataRateTimeAll, fcMsDataChAll, fcMsDataChTimeAll, fcMsMessAll, fcMsMessTimeAll, fcMsSizeAll, fcMsSizeTimeAll, fcTsSizeAll, fcTsSizeTimeAll, fhDataRateTimeAllLinks, fuHistoryHistoSize, fuNbFlimLinks, fvhDataRateTimePerLink, fvhMsMeanChDataPerLink, fvhMsMeanChDataTimePerLink, fvhMsMessPerLink, fvhMsMessTimePerLink, fvhMsSzPerLink, fvhMsSzTimePerLink, fvhTsSzPerLink, fvhTsSzTimePerLink, and GenerateLogBinArray().
Referenced by InitContainers().
|
virtual |
Ignore First TS as first MS is typically corrupt
Ignore overlap ms if flag set by user
Reset counters
Loop over core microslices (and overlap ones if chosen)
Loop over registered components
Normalize data size with number of channels
Fill TS plots
Implements CbmMcbmUnpack.
Definition at line 395 of file CbmMcbm2018MonitorDataRates.cxx.
References bMcbmMoniDataRateResetHistos, bMcbmMoniDataRateSaveHistos, fbIgnoreOverlapMs, fdMsIndex, fdStartTimeMsSz, fhDataRateTimeAllLinks, fiEquipmentId, fmChannelsPerEqId, FormatMsHeaderPrintout(), fuCurrentMs, fuCurrentMsSysId, fuHistoryHistoSize, fulCurrentTsIndex, fuMsAcceptsPercent, fuNbCoreMsPerTs, fuNbFlimLinks, fuNbOverMsPerTs, fvhDataRateTimePerLink, fvhMsMeanChDataPerLink, fvhMsMeanChDataTimePerLink, fvhMsMessPerLink, fvhMsMessTimePerLink, fvhMsSzPerLink, fvhMsSzTimePerLink, fvhTsSzPerLink, fvhTsSzTimePerLink, fvMsComponentsList, fvuTsSzLink, kuBytesPerMessageBmon, kuBytesPerMessageMuch, kuBytesPerMessageRich, kuBytesPerMessageSts, kuBytesPerMessageTof, kuSysIdBmon, kuSysIdMuch, kuSysIdRich, kuSysIdSts, kuSysIdTof, ResetAllHistos(), SaveAllHistos(), and size().
|
virtual |
Implements CbmMcbmUnpack.
Definition at line 515 of file CbmMcbm2018MonitorDataRates.cxx.
References fsHistoFilename, and SaveAllHistos().
|
inline |
Definition at line 54 of file CbmMcbm2018MonitorDataRates.h.
References fuMsAcceptsPercent.
|
inline |
Definition at line 60 of file CbmMcbm2018MonitorDataRates.h.
References fuOverlapMsNb.
|
virtual |
Implements CbmMcbmUnpack.
Definition at line 88 of file CbmMcbm2018MonitorDataRates.cxx.
|
virtual |
Reimplemented from CbmMcbmUnpack.
Definition at line 100 of file CbmMcbm2018MonitorDataRates.cxx.
References CreateHistograms(), and ReInitContainers().
|
private |
|
virtual |
Reimplemented from CbmMcbmUnpack.
Definition at line 110 of file CbmMcbm2018MonitorDataRates.cxx.
Referenced by InitContainers().
|
virtual |
Implements CbmMcbmUnpack.
Definition at line 513 of file CbmMcbm2018MonitorDataRates.cxx.
void CbmMcbm2018MonitorDataRates::ResetAllHistos | ( | ) |
Definition at line 571 of file CbmMcbm2018MonitorDataRates.cxx.
References fdStartTimeMsSz, fhDataRateTimeAllLinks, fuNbFlimLinks, fvhDataRateTimePerLink, fvhMsMeanChDataPerLink, fvhMsMeanChDataTimePerLink, fvhMsMessPerLink, fvhMsMessTimePerLink, fvhMsSzPerLink, fvhMsSzTimePerLink, fvhTsSzPerLink, and fvhTsSzTimePerLink.
Referenced by DoUnpack().
void CbmMcbm2018MonitorDataRates::ResetEvolutionHistograms | ( | ) |
void CbmMcbm2018MonitorDataRates::SaveAllHistos | ( | TString | sFileName = "" | ) |
Save old global file and folder pointer to avoid messing with FairRoot
Restore old global file and folder pointer to avoid messing with FairRoot
Definition at line 517 of file CbmMcbm2018MonitorDataRates.cxx.
References fcMsDataChAll, fcMsDataChTimeAll, fcMsMessAll, fcMsMessTimeAll, fcMsSizeAll, fcMsSizeTimeAll, fhDataRateTimeAllLinks, fuNbFlimLinks, fvhDataRateTimePerLink, fvhMsMeanChDataPerLink, fvhMsMeanChDataTimePerLink, fvhMsMessPerLink, fvhMsMessTimePerLink, fvhMsSzPerLink, fvhMsSzTimePerLink, fvhTsSzPerLink, and fvhTsSzTimePerLink.
Referenced by DoUnpack(), and Finish().
|
inline |
Definition at line 62 of file CbmMcbm2018MonitorDataRates.h.
References fsHistoFilename.
|
inline |
Definition at line 63 of file CbmMcbm2018MonitorDataRates.h.
References fuHistoryHistoSize.
|
inline |
Definition at line 58 of file CbmMcbm2018MonitorDataRates.h.
References fbIgnoreOverlapMs.
|
inline |
Definition at line 53 of file CbmMcbm2018MonitorDataRates.h.
References fuMsAcceptsPercent.
|
inline |
Definition at line 59 of file CbmMcbm2018MonitorDataRates.h.
References fuOverlapMsNb.
|
virtual |
Implements CbmMcbmUnpack.
Definition at line 199 of file CbmMcbm2018MonitorDataRates.cxx.
References fuNbCoreMsPerTs, and fuNbOverMsPerTs.
|
virtual |
Implements CbmMcbmUnpack.
Definition at line 98 of file CbmMcbm2018MonitorDataRates.cxx.
|
inline |
Definition at line 70 of file CbmMcbm2018MonitorDataRates.h.
|
private |
Definition at line 77 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack(), and SetIgnoreOverlapMs().
|
private |
Definition at line 120 of file CbmMcbm2018MonitorDataRates.h.
Referenced by CreateHistograms().
|
private |
Definition at line 127 of file CbmMcbm2018MonitorDataRates.h.
Referenced by CreateHistograms(), and SaveAllHistos().
|
private |
Definition at line 128 of file CbmMcbm2018MonitorDataRates.h.
Referenced by CreateHistograms(), and SaveAllHistos().
|
private |
Definition at line 125 of file CbmMcbm2018MonitorDataRates.h.
Referenced by CreateHistograms(), and SaveAllHistos().
|
private |
Definition at line 126 of file CbmMcbm2018MonitorDataRates.h.
Referenced by CreateHistograms(), and SaveAllHistos().
|
private |
Definition at line 123 of file CbmMcbm2018MonitorDataRates.h.
Referenced by CreateHistograms(), and SaveAllHistos().
|
private |
Definition at line 124 of file CbmMcbm2018MonitorDataRates.h.
Referenced by CreateHistograms(), and SaveAllHistos().
|
private |
Definition at line 121 of file CbmMcbm2018MonitorDataRates.h.
Referenced by CreateHistograms().
|
private |
Definition at line 122 of file CbmMcbm2018MonitorDataRates.h.
Referenced by CreateHistograms().
|
private |
Definition at line 98 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
private |
Number of non overlap MS at beginning of TS
Definition at line 84 of file CbmMcbm2018MonitorDataRates.h.
|
private |
Histograms and histogram control variables.
Definition at line 115 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack(), and ResetAllHistos().
|
private |
Definition at line 85 of file CbmMcbm2018MonitorDataRates.h.
|
private |
Definition at line 129 of file CbmMcbm2018MonitorDataRates.h.
Referenced by CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
Definition at line 99 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
private |
Parameters.
Definition at line 92 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddEqIdChannelNumber(), and DoUnpack().
|
private |
Control Flags
Definition at line 88 of file CbmMcbm2018MonitorDataRates.h.
Referenced by Finish(), and SetHistoFilename().
|
private |
Overlap Ms: all fuOverlapMsNb MS at the end of timeslice
Definition at line 83 of file CbmMcbm2018MonitorDataRates.h.
|
private |
Definition at line 96 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
private |
Definition at line 97 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
private |
Time of first microslice, used as reference for evolution plots
Definition at line 116 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), and SetHistoryHistoSize().
|
private |
Running indices
Definition at line 95 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
private |
/** Ignore Overlap Ms: all fuOverlapMsNb MS at the end of timeslice **/
OLD, to be cleaned out !!!!!
Definition at line 80 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack(), GetMsLimitLevel(), and SetMsLimitLevel().
|
private |
Definition at line 75 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack(), and SetNbMsInTs().
|
private |
Definition at line 89 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
Definition at line 76 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack(), and SetNbMsInTs().
|
private |
Total nb of MS per link in timeslice
Definition at line 82 of file CbmMcbm2018MonitorDataRates.h.
Referenced by GetMsOverlap(), and SetMsOverlap().
|
private |
Reject Ms with index inside TS above this, assumes 100 MS per TS
Definition at line 81 of file CbmMcbm2018MonitorDataRates.h.
|
private |
Definition at line 130 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
Definition at line 137 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
Definition at line 138 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
Definition at line 135 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
Definition at line 136 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
Definition at line 133 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
Definition at line 134 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
Definition at line 131 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
Definition at line 132 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), CreateHistograms(), DoUnpack(), ResetAllHistos(), and SaveAllHistos().
|
private |
FLES containers.
Definition at line 74 of file CbmMcbm2018MonitorDataRates.h.
Referenced by AddMsComponentToList(), and DoUnpack().
|
private |
Size in seconds of the evolution histograms
Definition at line 118 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
staticprivate |
Definition at line 111 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
staticprivate |
Definition at line 109 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
staticprivate |
Definition at line 108 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
staticprivate |
Definition at line 107 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
staticprivate |
Definition at line 110 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
staticprivate |
Definition at line 106 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
staticprivate |
Definition at line 104 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
staticprivate |
Definition at line 103 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().
|
staticprivate |
|
staticprivate |
Definition at line 105 of file CbmMcbm2018MonitorDataRates.h.
Referenced by DoUnpack().