CbmRoot
Loading...
Searching...
No Matches
bmon/HitfindSetup.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 "Definitions.h"
13#include "yaml/Property.h"
14
15#include <string>
16#include <vector>
17
18namespace cbm::algo::bmon
19{
22 struct HitfindSetup {
23 struct Diamond {
27 double timeRes;
28
30 yaml::Property(&Diamond::refAddress, "refAddress", "reference address of the diamond"),
31 yaml::Property(&Diamond::deadStrips, "deadStrips", "bit mask for dead strips"),
32 yaml::Property(&Diamond::maxTimeDist, "maxTimeDist", "maximum time distance"),
33 yaml::Property(&Diamond::timeRes, "timeRes", "time resolution"));
34 };
35
36 uint32_t selectionMask;
37 std::vector<Diamond> diamonds;
38
40 yaml::Property(&HitfindSetup::selectionMask, "selectionMask", "A bit mask to distinguish between different diamonds"),
41 yaml::Property(&HitfindSetup::diamonds, "diamonds", "Parameters of diamonds"));
42 };
43} // namespace cbm::algo::bmon
std::uint32_t u32
Definition Definitions.h:21
CBM_YAML_PROPERTIES(yaml::Property(&Diamond::refAddress, "refAddress", "reference address of the diamond"), yaml::Property(&Diamond::deadStrips, "deadStrips", "bit mask for dead strips"), yaml::Property(&Diamond::maxTimeDist, "maxTimeDist", "maximum time distance"), yaml::Property(&Diamond::timeRes, "timeRes", "time resolution"))
Parameters for the BMON hitfinder.
std::vector< Diamond > diamonds
CBM_YAML_PROPERTIES(yaml::Property(&HitfindSetup::selectionMask, "selectionMask", "A bit mask to distinguish between different diamonds"), yaml::Property(&HitfindSetup::diamonds, "diamonds", "Parameters of diamonds"))