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

Parameter access proxy bound to a specific ParameterType. More...

#include <ParameterProxy.h>

Inheritance diagram for ParameterProxy:
Collaboration diagram for ParameterProxy:

Public Member Functions

 ParameterProxy (ParameterType type)
 Constructs a proxy bound to a specific ParameterType.
 
scalar_t operator() (const std::string &block, const LhaID &id) const override
 Retrieves a parameter value from (block, id).
 
bool exist (const std::string &block, const LhaID &id) const override
 Checks whether a parameter exists.
 
double get_scale (const std::string &block) const override
 Returns the block scale.
 

Detailed Description

Parameter access proxy bound to a specific ParameterType.

This class wraps a ParameterProvider instance configured for one of:

Access policy:

  • SM/BSM: direct provider access (errors propagate according to provider behavior).
  • WILSON: returns 0/default value for missing entries (common when coefficients are optional).

Definition at line 41 of file ParameterProxy.h.

Constructor & Destructor Documentation

◆ ParameterProxy()

ParameterProxy::ParameterProxy ( ParameterType  type)

Constructs a proxy bound to a specific ParameterType.

Parameters
typeParameter type to access (SM, BSM, WILSON).
Exceptions
viaLOG_ERROR if type is not allowed.

Definition at line 3 of file ParameterProxy.cpp.

Member Function Documentation

◆ exist()

bool ParameterProxy::exist ( const std::string &  block,
const LhaID id 
) const
overridevirtual

Checks whether a parameter exists.

Implements IParameterProxy< std::string, LhaID >.

Definition at line 18 of file ParameterProxy.cpp.

◆ get_scale()

double ParameterProxy::get_scale ( const std::string &  block) const
overridevirtual

Returns the block scale.

Implements IParameterProxy< std::string, LhaID >.

Definition at line 22 of file ParameterProxy.cpp.

◆ operator()()

scalar_t ParameterProxy::operator() ( const std::string &  block,
const LhaID id 
) const
overridevirtual

Retrieves a parameter value from (block, id).

  • For WILSON type: returns a default scalar_t if the entry does not exist.
  • Otherwise: forwards directly to ParameterProvider.

Implements IParameterProxy< std::string, LhaID >.

Definition at line 10 of file ParameterProxy.cpp.


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