CbmRoot
Loading...
Searching...
No Matches
CbmRichDigiQa.h
Go to the documentation of this file.
1/* Copyright (C) 2023-2024 UGiessen, Giessen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Martin Beyer [committer] */
4
11#ifndef CBMRICHDIGIQA_H
12#define CBMRICHDIGIQA_H
13
14#include "FairTask.h"
15
16#include <map>
17#include <vector>
18
19class CbmDigiManager;
20class CbmRichDigi;
21class CbmHistManager;
22class TClonesArray;
23
32class CbmRichDigiQa : public FairTask {
33 public:
35 CbmRichDigiQa() : FairTask("CbmRichDigiQa"){};
36
38 ~CbmRichDigiQa() = default;
39
41 CbmRichDigiQa(const CbmRichDigiQa&) = delete;
42
45
47 InitStatus Init();
48
50 void Exec(Option_t* option);
51
53 void Finish();
54
56 void InitHistograms();
57
63 void SetToTLimits(Double_t low, Double_t high)
64 {
65 fToTLimitLow = low;
66 fToTLimitHigh = high;
67 }
68
73 void SetNeighbourTimeLimit(Double_t limit) { fNeighbourTimeLimit = limit; }
74
75 private:
76 int fEventNum{};
77
80
81 TClonesArray* fRichPoints{nullptr};
82
83 std::map<Int_t, std::vector<Double_t>> fFiredTimes{}; // Store times of fired digis for each pixel in Ts
84 std::map<Int_t, std::vector<std::pair<Double_t, Int_t>>>
85 fPmtDigisTimeAddress{}; // Store times and addresses of fired digis for each pmt in Ts
86
87 Double_t fNeighbourTimeLimit{5.}; // Time in which digi is considered a neighbour
88 Double_t fToTLimitLow{-1.}; // Lower limit for ToT cut
89 Double_t fToTLimitHigh{-1.}; // Upper limit for ToT cut
90
91 ClassDef(CbmRichDigiQa, 1)
92};
93
94#endif
CbmDigiManager.
Histogram manager.
Class for pixel deadtime and crosstalk Qa.
void SetNeighbourTimeLimit(Double_t limit)
Set time limit in which a digi is considered neighbour.
void SetToTLimits(Double_t low, Double_t high)
Set ToT cut.
Double_t fToTLimitLow
TClonesArray * fRichPoints
Double_t fToTLimitHigh
CbmRichDigiQa(const CbmRichDigiQa &)=delete
std::map< Int_t, std::vector< std::pair< Double_t, Int_t > > > fPmtDigisTimeAddress
CbmDigiManager * fDigiMan
~CbmRichDigiQa()=default
void Exec(Option_t *option)
std::map< Int_t, std::vector< Double_t > > fFiredTimes
Double_t fNeighbourTimeLimit
CbmHistManager * fHM
CbmRichDigiQa operator=(const CbmRichDigiQa &)=delete
InitStatus Init()