CbmRoot
Loading...
Searching...
No Matches
StsDigiQa.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 "CbmStsDigi.h"
13#include "Definitions.h"
14#include "QaBase.h"
15#include "sts/Unpack.h"
16
17#include <unordered_map>
18#include <vector>
19
20namespace cbm::algo::sts
21{
23
26 class DigiQa : public DigiQaBase {
27 public:
29 DigiQa(std::shared_ptr<HistogramSender> pSender) : DigiQaBase(pSender, "RawDigi/STS") {}
30
32 DigiQa() = delete;
33
35 DigiQa(const DigiQa&) = delete;
36
38 DigiQa(DigiQa&&) = delete;
39
41 DigiQa& operator=(const DigiQa&) = delete;
42
44 DigiQa& operator=(DigiQa&&) = delete;
45
47 void Exec();
48
50 void Init();
51
52 private:
53 std::unordered_map<int32_t, int> fmAddressMap;
54
55 // ---- Histograms
56 std::vector<qa::H1D*> fvphAddressChannel;
57 std::vector<qa::H1D*> fvphAddressCharge;
58 std::vector<qa::H2D*> fvphAddressChannelCharge;
59 std::vector<qa::H2D*> fvphAddressChannelElink;
60
61 std::vector<qa::Prof1D*> fvppAddressChannelMissedEvt;
62 std::vector<qa::Prof1D*> fvppAddressTimeMissedEvt;
63
64 qa::H2D* fvphFebAsic = nullptr;
65 };
66} // namespace cbm::algo::sts
Base class for digi QA (header)
2D-histogram
QA module for STS raw digis.
DigiQa(std::shared_ptr< HistogramSender > pSender)
Constructor.
Definition StsDigiQa.h:29
std::vector< qa::H1D * > fvphAddressChannel
hist: digi channel in different sensors
Definition StsDigiQa.h:56
DigiQa()=delete
Default constructor.
std::vector< qa::Prof1D * > fvppAddressChannelMissedEvt
prof: missed event ratio vs. channel (AUX)
Definition StsDigiQa.h:61
std::vector< qa::Prof1D * > fvppAddressTimeMissedEvt
prof: missed event ratio vs. time (AUX)
Definition StsDigiQa.h:62
std::vector< qa::H2D * > fvphAddressChannelCharge
hist: digi channel vs. charge in different sensors
Definition StsDigiQa.h:58
void Init()
Initializes QA (initialization of histograms and canvases)
Definition StsDigiQa.cxx:21
void Exec()
Executes QA (filling histograms)
qa::H2D * fvphFebAsic
hist: digi FEB vs ASIC
Definition StsDigiQa.h:64
std::unordered_map< int32_t, int > fmAddressMap
Map of address to histogram index.
Definition StsDigiQa.h:53
std::vector< qa::H2D * > fvphAddressChannelElink
hist: digi channel (vs. eling (AUX)
Definition StsDigiQa.h:59
DigiQa(const DigiQa &)=delete
Copy constructor.
DigiQa & operator=(DigiQa &&)=delete
Move assignment operator.
std::vector< qa::H1D * > fvphAddressCharge
hist: digi charge in different sensors
Definition StsDigiQa.h:57
DigiQa(DigiQa &&)=delete
Move constructor.
DigiQa & operator=(const DigiQa &)=delete
Copy assignment operator.
QA module for STS raw digis.
Readout setup / Hardware cabling for STS Used to create the hardware mapping for the STS unpacker.