EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
MergeParticleIDConfig.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2023, Christopher Dilks
3
4#pragma once
5
6#include <algorithms/logger.h>
7#include <spdlog/spdlog.h>
8
9namespace eicrecon {
10
12public:
14 // CONFIGURATION PARAMETERS
15 // NOTE: some defaults are hard-coded here; override externally
16
17 // decide how to combine the weights
20
21 //
23
24 // stream all parameters
25 friend std::ostream& operator<<(std::ostream& os, const MergeParticleIDConfig& cfg) {
26 // print all parameters
27 os << fmt::format("{:=^60}", " MergeParticleIDConfig Settings ") << std::endl;
28 auto print_param = [&os](auto name, auto val) {
29 os << fmt::format(" {:>20} = {:<}", name, val) << std::endl;
30 };
31 print_param("mergeMode", cfg.mergeMode);
32 os << fmt::format("{:=^60}", "") << std::endl;
33 return os;
34 }
35};
36
37} // namespace eicrecon
Definition MergeParticleIDConfig.h:11
int mergeMode
Definition MergeParticleIDConfig.h:19
math_enum
Definition MergeParticleIDConfig.h:18
@ kAddWeights
Definition MergeParticleIDConfig.h:18
@ kMultiplyWeights
Definition MergeParticleIDConfig.h:18
friend std::ostream & operator<<(std::ostream &os, const MergeParticleIDConfig &cfg)
Definition MergeParticleIDConfig.h:25
-client
Definition CalorimeterClusterRecoCoG.cc:37