Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
IParamOptimizer.h
Go to the documentation of this file.
1#ifndef IPARAM_OPTIMIZER_H
2#define IPARAM_OPTIMIZER_H
3
4#include "Include.h"
5#include "Parameter.h"
6
43public:
45 virtual ~IParamOptimizer() = default;
46
54 virtual void set_value(const BlockName& block, const LhaID& id, scalar_t v) = 0;
55
63 virtual void set_param(const BlockName& block, const LhaID& id, std::shared_ptr<Parameter> p) = 0;
64
71 virtual void remove(const BlockName& block, const LhaID& id) = 0;
72
84 virtual void commit(bool coalesce = true) = 0;
85
89 virtual void clear() = 0;
90
91};
92
93#endif
Defines the Parameter class used to store individual physical/model parameters.
Block identifier with alias support.
Definition BlockName.h:59
Interface for batched parameter modifications.
virtual void commit(bool coalesce=true)=0
Commit all staged operations.
virtual void remove(const BlockName &block, const LhaID &id)=0
Stage the removal of a parameter.
virtual void set_value(const BlockName &block, const LhaID &id, scalar_t v)=0
Stage a change of central value for a parameter.
virtual void set_param(const BlockName &block, const LhaID &id, std::shared_ptr< Parameter > p)=0
Stage a full replacement of a parameter object.
virtual void clear()=0
Clears all currently staged operations without applying them.
virtual ~IParamOptimizer()=default
Virtual destructor for interface.
Represents an identifier of a LHA element, possibly containing several sub-ids.
Definition LhaID.h:56