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. | |
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 | 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.
|
inline |
Constructor.
name | Name of the QA module (appears as the directory name in the output) |
Definition at line 36 of file QaData.h.
References RegisterNewTask().
|
default |
Copy constructor.
|
default |
Move constructor.
|
default |
Destructor.
|
inline |
Adds a canvas to the canvas config list.
canvas | A CanvasConfig object |
Definition at line 55 of file QaData.h.
References fvsCanvCfgs, and cbm::algo::qa::CanvasConfig::ToString().
Referenced by cbm::algo::sts::DigiQa::Init(), and cbm::algo::qa::RecoGeneralQa::operator()().
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, cbm::algo::qa::HistogramContainer::fvH1, cbm::algo::qa::HistogramContainer::fvH2, cbm::algo::qa::HistogramContainer::fvP1, cbm::algo::qa::HistogramContainer::fvP2, fvsCanvCfgs, fvTaskProperties, and L_.
Referenced by cbm::algo::sts::DigiQa::Init(), and cbm::algo::qa::RecoGeneralQa::operator()().
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 100 of file QaData.h.
References fHistograms, fNofH1, fNofH2, fNofP1, fNofP2, cbm::algo::qa::HistogramContainer::fvH1, cbm::algo::qa::HistogramContainer::fvH2, cbm::algo::qa::HistogramContainer::fvP1, cbm::algo::qa::HistogramContainer::fvP2, and fvTaskProperties.
Referenced by cbm::algo::sts::DigiQa::Init(), and cbm::algo::qa::RecoGeneralQa::operator()().
void Data::RegisterNewTask | ( | std::string_view | name | ) |
Registers a new QA task.
name | Name of the task |
Definition at line 96 of file QaData.cxx.
References fHistograms, cbm::algo::qa::HistogramContainer::fvH1, cbm::algo::qa::HistogramContainer::fvH2, cbm::algo::qa::HistogramContainer::fvP1, cbm::algo::qa::HistogramContainer::fvP2, and fvTaskProperties.
Referenced by Data().
|
inline |
Resets the histograms.
Definition at line 69 of file QaData.h.
References fHistograms, and cbm::algo::qa::HistogramContainer::Reset().
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 111 of file QaData.cxx.
References fbNotEmpty, fHistograms, fNofH1, fNofH2, fNofP1, fNofP2, fsTaskNames, L_, and Reset().
Referenced by cbm::algo::sts::DigiQa::Exec(), and cbm::algo::qa::RecoGeneralQa::operator()().
|
inline |
Updates the timeslice index.
timesliceId | Timeslice index |
Definition at line 78 of file QaData.h.
References fHistograms, and cbm::algo::qa::HistogramContainer::fTimesliceId.
Referenced by cbm::algo::sts::QaBase< Digi, AuxData, ReadoutSetup >::SetTimesliceIndex().
|
private |
|
private |
A container of histograms, which forms a zmq message.
Definition at line 85 of file QaData.h.
Referenced by Init(), MakeObj(), RegisterNewTask(), Reset(), Send(), and SetTimesliceId().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Vector of canvas configs.
Definition at line 88 of file QaData.h.
Referenced by AddCanvasConfig(), and Init().
|
private |
A vector to store properties for multiple QA-tasks.
Definition at line 87 of file QaData.h.
Referenced by Init(), MakeObj(), and RegisterNewTask().