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

Default implementation of IInterpreterPortsFactory. More...

#include <DefaultInterpreterPortsFactory.h>

Inheritance diagram for DefaultInterpreterPortsFactory:
Collaboration diagram for DefaultInterpreterPortsFactory:

Public Member Functions

 DefaultInterpreterPortsFactory (std::shared_ptr< IMappingAdapterFactory > adapterFactory=nullptr, std::shared_ptr< IParamMappingSource > loader=nullptr)
 
std::unique_ptr< IParameterResolvermakeResolver (const std::string &modelName, const std::string &modelJsonPath, const std::string &smJsonPath) const override
 Creates a new IParameterResolver for the given model.
 
- Public Member Functions inherited from IInterpreterPortsFactory
virtual ~IInterpreterPortsFactory ()=default
 

Detailed Description

Default implementation of IInterpreterPortsFactory.

This factory:

  • constructs a mapping adapter using a provided or default factory,
  • loads mapping information through the existing JSON loading pipeline,
  • builds MappingDatabaseProxy objects for the model and the SM,
  • validates that model/BSM mappings do not collide with SM mapping keys,
  • returns a ParameterResolverProxy that uses these databases.

Definition at line 31 of file DefaultInterpreterPortsFactory.h.

Constructor & Destructor Documentation

◆ DefaultInterpreterPortsFactory()

DefaultInterpreterPortsFactory::DefaultInterpreterPortsFactory ( std::shared_ptr< IMappingAdapterFactory adapterFactory = nullptr,
std::shared_ptr< IParamMappingSource loader = nullptr 
)
explicit

Definition at line 87 of file DefaultInterpreterPortsFactory.cpp.

Member Function Documentation

◆ makeResolver()

std::unique_ptr< IParameterResolver > DefaultInterpreterPortsFactory::makeResolver ( const std::string &  modelName,
const std::string &  modelJsonPath,
const std::string &  smJsonPath 
) const
overridevirtual

Creates a new IParameterResolver for the given model.

Parameters
modelNameModel name.
modelJsonPathPath to the model or user BSM mapping JSON file.
smJsonPathPath to the read-only SM mapping JSON file.

Implements IInterpreterPortsFactory.

Definition at line 96 of file DefaultInterpreterPortsFactory.cpp.


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