Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
RuntimeNuisancePathsAdapter.cpp
Go to the documentation of this file.
2
3#include <stdexcept>
4#include <utility>
5
6#include "APIAdapter.h"
7
12
14 std::shared_ptr<IPathProvider<APIPath>> path_provider
15)
16 : path_provider_(std::move(path_provider))
17{
18 if (!path_provider_) {
19 throw std::invalid_argument(
20 "RuntimeNuisancePathsAdapter requires a non-null path provider"
21 );
22 }
23}
24
26{
27 return path_provider_->get_path(APIPath::DEFAULT_NUISANCES);
28}
29
31{
32 return path_provider_->get_path(APIPath::USER_NUISANCES);
33}
High-level monitoring and access adapter for parameter and path information.
@ DEFAULT_NUISANCES
JSON file containing default nuisance definitions.
@ USER_NUISANCES
YAML/YML file containing user nuisance overrides.
Bridges active Core runtime paths to Statistic nuisance-file lookup.
Concrete adapter combining monitoring and path providing functionalities.
Definition APIAdapter.h:54
Interface for providing specific filesystem paths based on enumerated identifiers.
Implements the Statistic nuisance-path port using a Core path port.
fs::path default_nuisances_path() const override
Returns the path to the built-in nuisance definition file.
fs::path user_nuisances_path() const override
Returns the path to the user override nuisance definition file.
RuntimeNuisancePathsAdapter()
Construct an adapter backed by the active Core runtime.
Hash specialization for SymbolId<Tag>.
Definition BlockName.h:353