CbmRoot
Loading...
Searching...
No Matches
DigiEventSelectorConfig.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: Shreya Roy. Pierre-Alain Loizeau, Volker Friese [committer], Dominik Smith */
4
5#ifndef CBM_ALGO_EVBUILD_DIGIEVENTSELECTORCONFIG_H
6#define CBM_ALGO_EVBUILD_DIGIEVENTSELECTORCONFIG_H 1
7
8#include "CbmDigiEvent.h"
9
10#include <cstdint>
11#include <map>
12
13#include <yaml-cpp/yaml.h>
14
15
16namespace cbm::algo::evbuild
17{
18
19 class EventbuildChain;
20
21
35
36 friend class DigiEventSelector;
37
38 public:
40 DigiEventSelectorConfig(YAML::Node config);
41
43 bool IsEmpty() const { return fMinNumDigis.empty() && fMinNumLayers.empty(); }
44
46 YAML::Node ToYaml() const;
47
48
49 private:
50 std::map<ECbmModuleId, size_t> fMinNumDigis;
51 std::map<ECbmModuleId, size_t> fMinNumLayers;
52 };
53
54
55} // namespace cbm::algo::evbuild
56
57#endif /* CBM_ALGO_EVBUILD_DIGIEVENTSELECTORCONFIG_H */
Configuration of the DigiEventSelector class.
bool IsEmpty() const
Presence of selection criteria.
std::map< ECbmModuleId, size_t > fMinNumLayers
Key: detector, value: Minimal number of layers.
std::map< ECbmModuleId, size_t > fMinNumDigis
Key: detector, value: minimal number of digis.
DigiEventSelectorConfig(YAML::Node config)
Constructor from YAML.
Algorithm to select CbmDigiEvents based on the number of digis and the number of activated layers in ...