EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
/home/runner/work/EICrecon/EICrecon/src/algorithms/interfaces/WithPodConfig.h

Small helper class that brings common functions interface for classes that have POD type config

Template Parameters
ConfigT
// Created by Dmitry Romanov
// Subject to the terms in the LICENSE file found in the top-level directory.
//
#pragma once
namespace eicrecon {
struct NoConfig {};
template <typename ConfigT = NoConfig> class WithPodConfig {
public:
using ConfigType = ConfigT;
ConfigT& getConfig() { return m_cfg; }
ConfigT& applyConfig(ConfigT cfg) {
m_cfg = cfg;
return m_cfg;
}
protected:
ConfigT m_cfg;
};
} // namespace eicrecon
ConfigT ConfigType
Definition WithPodConfig.h:24
ConfigT & applyConfig(ConfigT cfg)
Sets a configuration (config is properly copyible)
Definition WithPodConfig.h:30
ConfigT m_cfg
Definition WithPodConfig.h:37
ConfigT & getConfig()
Get a configuration to be changed.
Definition WithPodConfig.h:27
-client
Definition CalorimeterClusterRecoCoG.cc:37