Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
ParamOptimizerAdapter.h
Go to the documentation of this file.
1#ifndef PARAM_OPTIMIZER_ADAPTER_H
2#define PARAM_OPTIMIZER_ADAPTER_H
3
4#include "ParamOptimizer.h"
5#include "IParamOptimizer.h"
6
35public:
46 ParamOptimizerAdapter(std::vector<ParameterType> scopes);
47
49 void set_value(const BlockName& block, const LhaID& id, scalar_t v) override;
50
52 void set_param(const BlockName& block, const LhaID& id, std::shared_ptr<Parameter> p) override;
53
55 void remove(const BlockName& block, const LhaID& id) override;
56
58 void commit(bool coalesce = true) override;
59
61 void clear() override;
62
63private:
65 std::shared_ptr<ParamOptimizer> po;
66
67};
68
69#endif
Interface for batched parameter updates and optimization.
Defines the ParamOptimizer class to apply batched updates to parameters.
Block identifier with alias support.
Definition BlockName.h:59
Interface for batched parameter modifications.
Adapter that builds a ParamOptimizer from Parameters instances.
void set_value(const BlockName &block, const LhaID &id, scalar_t v) override
Stage a change of central value for a parameter.
void set_param(const BlockName &block, const LhaID &id, std::shared_ptr< Parameter > p) override
Stage a full replacement of a parameter object.
void commit(bool coalesce=true) override
Commit all staged operations.
void remove(const BlockName &block, const LhaID &id) override
Stage the removal of a parameter.
void clear() override
Clears all currently staged operations without applying them.
Represents an identifier of a LHA element, possibly containing several sub-ids.
Definition LhaID.h:56