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 "algo/qa/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<H1D> fvH1 = {};
24 std::forward_list<H2D> fvH2 = {};
25 std::forward_list<Prof1D> fvP1 = {};
26 std::forward_list<Prof2D> fvP2 = {};
27 uint64_t fTimesliceId = 0;
28 uint64_t fTimesliceTimeInRun = 0;
29
31 void Reset();
32
33 private:
35 template<class Archive>
36 void serialize(Archive& ar, const unsigned int /*version*/)
37 {
38 ar& fvH1;
39 ar& fvH2;
40 ar& fvP1;
41 ar& fvP2;
42 ar& fTimesliceId;
44 }
45 };
46} // 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< Prof2D > fvP2
List of 2D-profiles.
uint64_t fTimesliceTimeInRun
Time in run of the timeslice start in seconds.
std::forward_list< Prof1D > fvP1
List of 1D-profiles.
std::forward_list< H1D > fvH1
List of 1D-histograms.
void serialize(Archive &ar, const unsigned int)
friend class boost::serialization::access
std::forward_list< H2D > fvH2
List of 2D-histograms.
uint64_t fTimesliceId
Index of the timeslice.