Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
StatParamOptimizerProxy Class Reference

Concrete statistics-layer proxy for staged parameter optimization updates. More...

#include <StatParamOptimizerProxy.h>

Inheritance diagram for StatParamOptimizerProxy:
Collaboration diagram for StatParamOptimizerProxy:

Public Member Functions

 StatParamOptimizerProxy ()
 Constructs the optimizer proxy.
 
void set_value (const BlockName &block, const LhaID &id, scalar_t v) override
 Stages a scalar value update for a parameter.
 
void set_param (const BlockName &block, const LhaID &id, std::shared_ptr< Parameter > p) override
 Stages a full parameter replacement/update.
 
void remove (const BlockName &block, const LhaID &id) override
 Stages the removal of a parameter.
 
void commit (bool coalesce=true) override
 Applies all staged operations.
 
void clear () override
 Clears all staged operations without applying them.
 
- Public Member Functions inherited from IStatParamOptimizerProxy
virtual ~IStatParamOptimizerProxy ()=default
 Virtual destructor.
 

Detailed Description

Concrete statistics-layer proxy for staged parameter optimization updates.

This class is intentionally thin: all logic is delegated to the internal ParamOptimizerAdapter. Its role is to expose a stable, module-local interface to the statistics code.

Definition at line 43 of file StatParamOptimizerProxy.h.

Constructor & Destructor Documentation

◆ StatParamOptimizerProxy()

StatParamOptimizerProxy::StatParamOptimizerProxy ( )

Constructs the optimizer proxy.

Constructs the proxy with the parameter types used by the statistics layer.

Internally initializes the underlying ParamOptimizerAdapter with the parameter types currently relevant to the statistics layer:

Note
The exact list is implementation-defined and may evolve.

The underlying ParamOptimizerAdapter is initialized to operate on:

  • SM parameters,
  • FLAVOR parameters,
  • DECAY parameters,
  • WILSON parameters.

Definition at line 12 of file StatParamOptimizerProxy.cpp.

Member Function Documentation

◆ clear()

void StatParamOptimizerProxy::clear ( )
overridevirtual

Clears all staged operations without applying them.

Implements IStatParamOptimizerProxy.

Definition at line 47 of file StatParamOptimizerProxy.cpp.

◆ commit()

void StatParamOptimizerProxy::commit ( bool  coalesce = true)
overridevirtual

Applies all staged operations.

Implementations may use coalesce to merge or compact multiple pending edits before applying them. The exact coalescing behavior is adapter-defined.

Parameters
coalesceIf true, allows the implementation to merge/reduce pending operations.

Implements IStatParamOptimizerProxy.

Definition at line 40 of file StatParamOptimizerProxy.cpp.

◆ remove()

void StatParamOptimizerProxy::remove ( const BlockName block,
const LhaID id 
)
overridevirtual

Stages the removal of a parameter.

The parameter identified by (block, id) will be removed on the next commit().

Parameters
blockBlock containing the parameter.
idLHA-like identifier of the parameter to remove.

Implements IStatParamOptimizerProxy.

Definition at line 33 of file StatParamOptimizerProxy.cpp.

◆ set_param()

void StatParamOptimizerProxy::set_param ( const BlockName block,
const LhaID id,
std::shared_ptr< Parameter p 
)
overridevirtual

Stages a full parameter replacement/update.

The parameter identified by (block, id) will later be updated from the provided Parameter object when commit() is called.

Parameters
blockBlock containing the parameter.
idLHA-like identifier inside the block.
pShared pointer to the parameter payload to apply.

Implements IStatParamOptimizerProxy.

Definition at line 26 of file StatParamOptimizerProxy.cpp.

◆ set_value()

void StatParamOptimizerProxy::set_value ( const BlockName block,
const LhaID id,
scalar_t  v 
)
overridevirtual

Stages a scalar value update for a parameter.

The parameter identified by (block, id) will later be assigned the value v when commit() is called.

Parameters
blockBlock containing the parameter.
idLHA-like identifier inside the block.
vNew scalar value to assign.

Implements IStatParamOptimizerProxy.

Definition at line 19 of file StatParamOptimizerProxy.cpp.


The documentation for this class was generated from the following files: