CbmRoot
|
An interface to the qa::Manager. More...
#include <QaTaskHeader.h>
Public Member Functions | |
TaskHeader (const std::unique_ptr< Manager > &pManager, std::string_view name) | |
Constructor. | |
TaskHeader (const TaskHeader &)=delete | |
Copy constructor. | |
TaskHeader (TaskHeader &&)=delete | |
Move constructor. | |
~TaskHeader ()=default | |
Destructor. | |
TaskHeader & | operator= (const TaskHeader &)=delete |
Copy assignment operator. | |
TaskHeader & | operator= (TaskHeader &&)=delete |
Move assignment operator. | |
bool | IsActive () const |
Checks, if the task is active. | |
const std::string & | GetTaskName () |
Gets name of the task. | |
Protected Member Functions | |
void | AddCanvasConfig (const CanvasConfig &canvas) |
Adds a canvas configuration. | |
template<class Obj , typename... Args> | |
Obj * | MakeObj (Args... args) |
Creates a QA-object and returns the pointer to it. | |
Private Attributes | |
std::string | fsName {} |
Name of the task. | |
std::shared_ptr< Data > | fpData {nullptr} |
An instance of the QA data (shared between different tasks) | |
An interface to the qa::Manager.
Definition at line 21 of file QaTaskHeader.h.
|
inline |
Constructor.
pManager | a QA-manager |
name | A name of the task (histograms directory) |
Definition at line 26 of file QaTaskHeader.h.
References fpData.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
default |
Destructor.
|
inlineprotected |
Adds a canvas configuration.
canvas | A CanvasConfig object |
Definition at line 62 of file QaTaskHeader.h.
References fpData.
Referenced by cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), cbm::algo::kfp::V0FinderQa::Init(), and cbm::algo::tof::HitfindQa::Init().
|
inline |
Gets name of the task.
Definition at line 57 of file QaTaskHeader.h.
References fsName.
Referenced by cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), and cbm::algo::tof::HitfindQa::Init().
|
inline |
Checks, if the task is active.
The task can be inactive, if a nullptr qa::Manager was passed to the constructor. If it is the case, the fpData instance is not defined, and no actions on the task should be performed
Definition at line 54 of file QaTaskHeader.h.
References fpData.
Referenced by cbm::algo::bmon::HitfindQa::Exec(), cbm::algo::ca::Qa::Exec(), cbm::algo::tof::HitfindQa::Exec(), cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::tof::HitfindQa::Init(), cbm::algo::TrackingChain::Init(), and cbm::algo::TrackingChain::PrepareOutput().
|
inlineprotected |
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 69 of file QaTaskHeader.h.
References fpData.
Referenced by cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), cbm::algo::kfp::V0FinderQa::Init(), and cbm::algo::tof::HitfindQa::Init().
|
delete |
Copy assignment operator.
|
delete |
Move assignment operator.
|
private |
An instance of the QA data (shared between different tasks)
Definition at line 76 of file QaTaskHeader.h.
Referenced by AddCanvasConfig(), IsActive(), MakeObj(), and TaskHeader().
|
private |