CbmRoot
Loading...
Searching...
No Matches
RecoGeneralQa.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: P.-A. Loizeau [committer] */
4
5#ifndef ALGO_QA_RECOGENERALQA_H
6#define ALGO_QA_RECOGENERALQA_H 1
7
8#include "CbmDefs.h"
9#include "HistogramSender.h"
10#include "QaData.h"
11
12#include <StorableTimeslice.hpp>
13
14namespace cbm::algo::qa
15{
22 public:
24 RecoGeneralQa(const uint64_t& runStartTimeNs, std::shared_ptr<HistogramSender> pSender);
25
27 RecoGeneralQa() = delete;
28
30 RecoGeneralQa(const RecoGeneralQa&) = delete;
31
34
37
40
45 void operator()(const fles::Timeslice& ts);
46
47 private: // methods
48 private: // members
50 std::shared_ptr<HistogramSender> fpSender = nullptr;
51 qa::Data fQaData{"Reco"};
52 bool fInitNotDone = true;
53
54 // Constants
55 static const int32_t kNbTsPerBinCount = 100; // 100 TS duration per bin for raw counts
56 static const int32_t kNbTsPerBinFrac = 1000; // 1000 TS duration per bin for fractions
57
58 // ---- Histograms
61 };
62} // namespace cbm::algo::qa
63
64#endif /* ALGO_QA_RECOGENERALQA_H */
Class to handle QA-objects in the online reconstruction.
Definition QaData.h:28
1D-histogram
RecoGeneralQa()=delete
Default constructor.
void operator()(const fles::Timeslice &ts)
Execution: fill histograms and emit them (FIXME: control emission frequency)
RecoGeneralQa(const RecoGeneralQa &)=delete
Copy constructor.
std::shared_ptr< HistogramSender > fpSender
Histogram sender.
qa::H1D * fphTimeslicesCountEvo
hist: timeslices vs time in run in s, binned for 100 TS
static const int32_t kNbTsPerBinFrac
qa::Data fQaData
QA data, with folder named Reco as hist destination.
qa::H1D * fphTimeslicesFractionEco
hist: fraction of al ts vs time in run in s, binned for 1000 TS
RecoGeneralQa & operator=(RecoGeneralQa &&)=delete
Move assignment operator.
RecoGeneralQa(RecoGeneralQa &&)=delete
Move constructor.
RecoGeneralQa & operator=(const RecoGeneralQa &)=delete
Copy assignment operator.
static const int32_t kNbTsPerBinCount