EICrecon
JANA based reconstruction for the EPIC detector
Loading...
Searching...
No Matches
WithPodConfig.h
Go to the documentation of this file.
1// Created by Dmitry Romanov
2// Subject to the terms in the LICENSE file found in the top-level directory.
3//
4
5#pragma once
6namespace eicrecon {
7
13struct NoConfig {};
14
22template <typename ConfigT = NoConfig> class WithPodConfig {
23public:
24 using ConfigType = ConfigT;
25
27 ConfigT& getConfig() { return m_cfg; }
28
30 ConfigT& applyConfig(ConfigT cfg) {
31 m_cfg = cfg;
32 return m_cfg;
33 }
34
35protected:
37 ConfigT m_cfg;
38};
39} // namespace eicrecon
Definition WithPodConfig.h:22
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
Definition WithPodConfig.h:13