CbmRoot
Loading...
Searching...
No Matches
CbmTaskDigiEventQa.h
Go to the documentation of this file.
1/* Copyright (C) 2022 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
5#ifndef CBMTASKDIGIEVENTQA_H
6#define CBMTASKDIGIEVENTQA_H 1
7
8#include "CbmDefs.h"
9#include "CbmDigiEvent.h"
10#include "algo/evbuild/Config.h"
11#include "algo/qa/DigiEventQa.h"
12#include "algo/qa/Histo1D.h"
13
14#include <FairTask.h>
15
16#include <vector>
17
18
19class TH1D;
20
30class CbmTaskDigiEventQa : public FairTask {
31
32 public:
35
36
39
40
42 virtual ~CbmTaskDigiEventQa();
43
44
50 void Config(const cbm::algo::evbuild::Config& config);
51
52
54 virtual void Exec(Option_t* opt);
55
56
58 virtual void Finish();
59
60
63
64
65 private: // methods
67 virtual InitStatus Init();
68
69
74 TH1D* ToTH1D(const cbm::algo::qa::H1D& source);
75
76
77 private: // members
78 const std::vector<CbmDigiEvent>* fEvents = nullptr;
79 size_t fNumTs = 0;
80 size_t fNumEvents = 0;
81 size_t fNumDigis = 0;
82 double fExecTime = 0.;
83
84 std::unique_ptr<cbm::algo::evbuild::DigiEventQa> fAlgo;
86
87 // ---- Histograms with digi times
88 std::map<ECbmModuleId, TH1D*> fDigiTimeHistos = {};
89
90
92};
93
94#endif /* CBMTASKDIGIEVENTQA_H */
QA task class for digi events produced by the event builder.
CbmTaskDigiEventQa(const CbmTaskDigiEventQa &)=delete
Copy constructor (disabled)
size_t fNumTs
Input data (events)
CbmTaskDigiEventQa()
Constructor.
std::unique_ptr< cbm::algo::evbuild::DigiEventQa > fAlgo
double fExecTime
Execution time [s].
const std::vector< CbmDigiEvent > * fEvents
CbmTaskDigiEventQa & operator=(const CbmTaskDigiEventQa &)=delete
Assignment operator (disabled)
size_t fNumDigis
Number of analysed digis.
std::map< ECbmModuleId, TH1D * > fDigiTimeHistos
cbm::algo::evbuild::DigiEventQaConfig fConfig
TH1D * ToTH1D(const cbm::algo::qa::H1D &source)
Create a ROOT TH1D from a H1D object.
virtual void Exec(Option_t *opt)
Task execution.
virtual ~CbmTaskDigiEventQa()
Destructor.
size_t fNumEvents
Number of analysed events.
virtual InitStatus Init()
Task initialisation.
void Config(const cbm::algo::evbuild::Config &config)
Configuration.
ClassDef(CbmTaskDigiEventQa, 1)
virtual void Finish()
Finish timeslice.
Configuration of digi event building.
1D-histogram
Configuration data for the QA of CbmDigiEvents.
Definition DigiEventQa.h:56