CbmRoot
Loading...
Searching...
No Matches
BmonHitfindQaParameters.h
Go to the documentation of this file.
1/* Copyright (C) 2025 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 "bmon/CalibrateSetup.h"
13#include "bmon/HitfindSetup.h"
14
15#include <vector>
16
17namespace cbm::algo::bmon
18{
24 struct Diamond {
25 double timeRes{0.};
26 double maxTimeDist{0.};
27 int32_t address{0};
28 int32_t nChannels{0};
29 uint32_t deadStrips{0};
30 };
31
32 uint32_t selectionMask{0};
33 std::vector<Diamond> diamonds{};
34
37
41 HitfindQaParameters(const CalibrateSetup& calSetup, const HitfindSetup& hitSetup);
42
45 size_t GetDiamondIndex(uint32_t address) const { return ((selectionMask & address) >> fSelectionBitsOffset); }
46
47 private:
49 };
50} // namespace cbm::algo::bmon
Configuration of the calibrator for the BMON digis.
Parameters of the BMON hitfinder.
BMON calibration per channel.
double maxTimeDist
Max time distance between digis in a hit [ns].
int32_t nChannels
Number of channels in a diamond.
A structure to handle BMON QA parameters.
HitfindQaParameters()=default
Default constructor.
size_t GetDiamondIndex(uint32_t address) const
Returns an index of the diamond by the address.
uint32_t selectionMask
A bitmask to distinguish different diamonds.
uint32_t fSelectionBitsOffset
Number of bits to the right from the first bit in the selection mask.
Parameters for the BMON hitfinder.