CbmRoot
Loading...
Searching...
No Matches
HistogramContainer.h
Go to the documentation of this file.
1/* Copyright (C) 2024 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergei Zharko [committer] */
4
9
10#pragma once
11
12#include "Histogram.h" // for H1D, H2D
13
14#include <boost/serialization/forward_list.hpp>
15
16#include <forward_list>
17
18namespace cbm::algo::qa
19{
23 std::forward_list<qa::H1D> fvH1 = {};
24 std::forward_list<qa::H2D> fvH2 = {};
25 std::forward_list<qa::Prof1D> fvP1 = {};
26 std::forward_list<qa::Prof2D> fvP2 = {};
27 uint64_t fTimesliceId = 0;
28
30 void Reset();
31
32 private:
34 template<class Archive>
35 void serialize(Archive& ar, const unsigned int /*version*/)
36 {
37 ar& fvH1;
38 ar& fvH2;
39 ar& fvP1;
40 ar& fvP2;
41 ar& fTimesliceId;
42 }
43 };
44} // namespace cbm::algo::qa
ROOT-free implementation of a histogram.
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.
void serialize(Archive &ar, const unsigned int)
friend class boost::serialization::access
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.