17#include <boost/serialization/forward_list.hpp>
58 void Init(std::shared_ptr<HistogramSender> histoSender);
61 template<
class Obj,
typename... Args>
70 void Send(std::shared_ptr<HistogramSender> histoSender);
84 template<
class Obj,
typename... Args>
87 if constexpr (std::is_same_v<Obj, cbm::algo::qa::H1D>) {
90 else if constexpr (std::is_same_v<Obj, cbm::algo::qa::H2D>) {
93 else if constexpr (std::is_same_v<Obj, cbm::algo::qa::Prof1D>) {
96 else if constexpr (std::is_same_v<Obj, cbm::algo::qa::Prof2D>) {
A class representing a canvas in the message for the Histogram server.
A histogram container for the histogram server (header)
A canvas configuration for the histogram server.
std::string ToString() const
Returns message config.
Class to handle QA-objects in the online reconstruction.
void AddCanvasConfig(const CanvasConfig &canvas)
Adds a canvas to the canvas config list.
Data(const Data &)=default
Copy constructor.
std::string_view GetName() const
Gets module name.
~Data()=default
Destructor.
Data & operator=(Data &&)=default
Move assignment operator.
void Send(std::shared_ptr< HistogramSender > histoSender)
Sends QA data to the HistogramSender.
void Init(std::shared_ptr< HistogramSender > histoSender)
Sends QA initialization information to the HistogramSender.
void SetTimesliceId(uint64_t timesliceId)
Updates the timeslice index.
std::string fsName
Name of the QA module (used as a directory name)
void Reset()
Resets the histograms.
Data & operator=(const Data &)=default
Copy assignment operator.
Data(Data &&)=default
Move constructor.
Obj * MakeObj(Args... args)
Creates a QA-object and returns the pointer to it.
qa::HistogramContainer fHistograms
Histograms container.
std::vector< std::string > fvsCanvCfgs
Vector of canvas configs.
Data(std::string_view name)
Constructor.
Structure to keep the histograms for sending them on the histogram server.
void Reset()
Resets the histograms.
std::forward_list< qa::Prof1D > fvP1
List of 1D-profiles.
std::forward_list< qa::Prof2D > fvP2
List of 2D-profiles.
std::forward_list< qa::H1D > fvH1
List of 1D-histograms.
uint64_t fTimesliceId
Index of the timeslice.
std::forward_list< qa::H2D > fvH2
List of 2D-histograms.