CbmRoot
|
Class to handle QA-objects in the online reconstruction. More...
#include <QaData.h>
Public Member Functions | |
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. | |
std::string_view | GetName () const |
Gets module name. | |
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. | |
Private Attributes | |
std::string | fsName |
Name of the QA module (used as a directory name) | |
qa::HistogramContainer | fHistograms |
Histograms container. | |
std::vector< std::string > | fvsCanvCfgs = {} |
Vector of canvas configs. | |
|
inline |
|
default |
Copy constructor.
|
default |
Move constructor.
|
default |
Destructor.
|
inline |
Adds a canvas to the canvas config list.
canvas | A CanvasConfig object |
Definition at line 51 of file QaData.h.
References fvsCanvCfgs, and cbm::algo::qa::CanvasConfig::ToString().
Referenced by cbm::algo::ca::Qa::Init(), cbm::algo::sts::DigiQa::Init(), and cbm::algo::qa::RecoGeneralQa::operator()().
|
inline |
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 18 of file QaData.cxx.
References fHistograms, fsName, cbm::algo::qa::HistogramContainer::fvH1, cbm::algo::qa::HistogramContainer::fvH2, cbm::algo::qa::HistogramContainer::fvP1, cbm::algo::qa::HistogramContainer::fvP2, and fvsCanvCfgs.
Referenced by cbm::algo::ca::Qa::Init(), 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.
Definition at line 85 of file QaData.h.
References fHistograms, cbm::algo::qa::HistogramContainer::fvH1, cbm::algo::qa::HistogramContainer::fvH2, cbm::algo::qa::HistogramContainer::fvP1, and cbm::algo::qa::HistogramContainer::fvP2.
Referenced by cbm::algo::ca::Qa::Init(), cbm::algo::sts::DigiQa::Init(), and cbm::algo::qa::RecoGeneralQa::operator()().
|
inline |
Resets the histograms.
Definition at line 65 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 72 of file QaData.cxx.
References fHistograms, fsName, cbm::algo::qa::HistogramContainer::fvH1, cbm::algo::qa::HistogramContainer::fvH2, cbm::algo::qa::HistogramContainer::fvP1, cbm::algo::qa::HistogramContainer::fvP2, L_, and Reset().
Referenced by cbm::algo::ca::Qa::Exec(), cbm::algo::sts::DigiQa::Exec(), and cbm::algo::qa::RecoGeneralQa::operator()().
|
inline |
Updates the timeslice index.
timesliceId | Timeslice index |
Definition at line 74 of file QaData.h.
References fHistograms, and cbm::algo::qa::HistogramContainer::fTimesliceId.
Referenced by cbm::algo::sts::QaBase< Digi, AuxData, ReadoutSetup >::SetTimesliceIndex().
|
private |
|
private |
|
private |
Vector of canvas configs.
Definition at line 79 of file QaData.h.
Referenced by AddCanvasConfig(), and Init().