|
CbmRoot
|
Class to handle QA-objects in the online reconstruction. More...
#include <QaData.h>
Public Member Functions | |
| Data ()=default | |
| Default constructor. | |
| Data (std::string_view name) | |
| Constructor. | |
| Data (const Data &)=default | |
| Copy constructor. | |
| Data (Data &&)=default | |
| Move constructor. | |
| Data & | operator= (const Data &)=default |
| Copy assignment operator. | |
| Data & | operator= (Data &&)=default |
| Move assignment operator. | |
| ~Data ()=default | |
| Destructor. | |
| void | AddCanvasConfig (const CanvasConfig &canvas) |
| Adds a canvas to the canvas config list. | |
| const HistogramContainer & | Histograms () const |
| Constant accessor to the histogram container. | |
| void | Init (std::shared_ptr< HistogramSender > histoSender) |
| Sends QA initialization information to the HistogramSender. | |
| template<class Obj, typename... Args> | |
| Obj * | MakeObj (Args... args) |
| Creates a QA-object and returns the pointer to it. | |
| void | Reset () |
| Resets the histograms. | |
| void | Send (std::shared_ptr< HistogramSender > histoSender) |
| Sends QA data to the HistogramSender. | |
| void | SetTimesliceId (uint64_t timesliceId) |
| Updates the timeslice index. | |
| void | SetTimesliceTimeInRun (uint64_t timesliceTime) |
| Updates the timeslice start time relative to run start time. | |
| void | RegisterNewTask (std::string_view name) |
| Registers a new QA task. | |
Private Attributes | |
| qa::HistogramContainer | fHistograms |
| A container of histograms, which forms a zmq message. | |
| std::string | fsTaskNames |
| A string containing names of tasks. | |
| std::vector< qa::TaskProperties > | fvTaskProperties |
| A vector to store properties for multiple QA-tasks. | |
| std::vector< std::string > | fvsCanvCfgs = {} |
| Vector of canvas configs. | |
| uint32_t | fNofH1 {0} |
| Number of 1D-histograms. | |
| uint32_t | fNofH2 {0} |
| Number of 2D-histograms. | |
| uint32_t | fNofP1 {0} |
| Number of 1D-profiles. | |
| uint32_t | fNofP2 {0} |
| Number of 2D-profiles. | |
| bool | fbNotEmpty {true} |
| false: if no histograms were provided, do not perform initialization and sending | |
|
default |
Default constructor.
Referenced by Data(), Data(), operator=(), and operator=().
|
inline |
Constructor.
| name | Name of the QA module (appears as the directory name in the output) |
Definition at line 34 of file QaData.h.
References RegisterNewTask().
|
default |
Destructor.
|
inline |
Adds a canvas to the canvas config list.
| canvas | A CanvasConfig object |
Definition at line 53 of file QaData.h.
References fvsCanvCfgs, and cbm::algo::qa::CanvasConfig::ToString().
|
inline |
Constant accessor to the histogram container.
Definition at line 56 of file QaData.h.
References fHistograms.
Referenced by cbm::algo::qa::StorableData::StorableData().
| void Data::Init | ( | std::shared_ptr< HistogramSender > | histoSender | ) |
Sends QA initialization information to the HistogramSender.
| histoSender | A pointer to the histogram sender |
Definition at line 19 of file QaData.cxx.
References fbNotEmpty, fHistograms, fNofH1, fNofH2, fNofP1, fNofP2, fsTaskNames, fvsCanvCfgs, fvTaskProperties, L_, and task.
| Obj * cbm::algo::qa::Data::MakeObj | ( | Args... | args | ) |
Creates a QA-object and returns the pointer to it.
| Obj | A type of the histogram (H1D, H2D, Prof1D, Prof2D) |
| Args... | A signature of the histogram constructor |
| args | Parameters, passed to a histogram constructor |
Definition at line 105 of file QaData.h.
References fHistograms, fNofH1, fNofH2, fNofP1, fNofP2, and fvTaskProperties.
Copy assignment operator.
References Data().
Move assignment operator.
References Data().
| void Data::RegisterNewTask | ( | std::string_view | name | ) |
Registers a new QA task.
| name | Name of the task |
Definition at line 118 of file QaData.cxx.
References fHistograms, and fvTaskProperties.
Referenced by Data().
|
inline |
Resets the histograms.
Definition at line 70 of file QaData.h.
References fHistograms.
Referenced by Send().
| void Data::Send | ( | std::shared_ptr< HistogramSender > | histoSender | ) |
Sends QA data to the HistogramSender.
| histoSender | A pointer to the histogram sender |
Definition at line 133 of file QaData.cxx.
References fbNotEmpty, fHistograms, fNofH1, fNofH2, fNofP1, fNofP2, fsTaskNames, L_, and Reset().
|
inline |
Updates the timeslice index.
| timesliceId | Timeslice index |
Definition at line 79 of file QaData.h.
References fHistograms.
|
inline |
Updates the timeslice start time relative to run start time.
| timesliceTime | Timeslice start time relative to run start time, in seconds |
Definition at line 83 of file QaData.h.
References fHistograms.
|
private |
|
private |
A container of histograms, which forms a zmq message.
Definition at line 90 of file QaData.h.
Referenced by Histograms(), Init(), MakeObj(), RegisterNewTask(), Reset(), Send(), SetTimesliceId(), and SetTimesliceTimeInRun().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Vector of canvas configs.
Definition at line 93 of file QaData.h.
Referenced by AddCanvasConfig(), and Init().
|
private |