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

Configuration bundle for constructing a MartyWilson coefficient. More...

#include <MartyWilson.h>

Collaboration diagram for MartyWilsonConfig:

Public Member Functions

void refresh_csv_path ()
 Resolves and stores the CSV path using the path provider when available.
 
 MartyWilsonConfig (const LhaID &id, const std::string &storage_block_name, fs::path model_path, std::shared_ptr< IMartyWilsonProxy< InterpretedParam > > proxy, std::shared_ptr< IMartyWilsonPathProxy > paths=nullptr)
 Constructs config for a coefficient with a provided model path and proxy.
 
 MartyWilsonConfig (const std::string &model_name, const LhaID &id, const std::string &storage_block_name, fs::path model_path, std::shared_ptr< IMartyWilsonProxy< InterpretedParam > > proxy, std::shared_ptr< IMartyWilsonPathProxy > paths=nullptr)
 Constructs config including an explicit model name.
 
 MartyWilsonConfig (const std::string &output_model_name, const std::string &generation_model_name, bool sm_like_filter, bool bsm_split_generation, bool full_target_generation, const LhaID &id, const std::string &storage_block_name, fs::path model_path, std::shared_ptr< IMartyWilsonProxy< InterpretedParam > > proxy, std::shared_ptr< IMartyWilsonPathProxy > paths=nullptr)
 Constructs config with a separate output label and generated model.
 

Static Public Member Functions

static fs::path fallback_csv_path (const std::string &model_name)
 Fallback path used only when legacy code constructs MartyWilsonConfig without a path provider.
 

Public Attributes

std::string model_name {"SM"}
 Output model label used for generated libraries/CSV files (e.g. "SM", "THDM").
 
std::string generation_model_name {"SM"}
 
bool sm_like_filter {false}
 
bool bsm_split_generation {false}
 
bool full_target_generation {false}
 
LhaID coeff_id
 Full coefficient id used to store the matching value (including order/type parts).
 
std::string storage_block
 Name of the block where matching coefficients are stored (e.g. "WC_B_MATCH").
 
fs::path model_path {}
 Path to the MARTY model header file.
 
std::shared_ptr< IMartyWilsonProxy< InterpretedParam > > marty_proxy
 Proxy used to run MARTY and retrieve dependencies/special blocks.
 
std::shared_ptr< IMartyWilsonPathProxypath_provider
 Path provider used to resolve MARTY generated outputs.
 
std::string csv_path
 Absolute path to the CSV output produced by MARTY for this model.
 

Detailed Description

Configuration bundle for constructing a MartyWilson coefficient.

It describes:

  • the MARTY model (name and header path),
  • the output CSV location used by the MARTY generator,
  • the coefficient LHA id (including order / contribution type encoded in parts),
  • the destination block where matching values are stored,
  • a proxy used to invoke the MARTY pipeline and query its dependencies.

Default values target the SM model shipped in the assets directory.

Definition at line 65 of file MartyWilson.h.

Constructor & Destructor Documentation

◆ MartyWilsonConfig() [1/3]

MartyWilsonConfig::MartyWilsonConfig ( const LhaID id,
const std::string &  storage_block_name,
fs::path  model_path,
std::shared_ptr< IMartyWilsonProxy< InterpretedParam > >  proxy,
std::shared_ptr< IMartyWilsonPathProxy paths = nullptr 
)
inline

Constructs config for a coefficient with a provided model path and proxy.

Parameters
idLHA identifier for the coefficient.
storage_block_nameDestination block name where the value is stored.
model_pathPath to the MARTY model header file.
proxyProxy to run MARTY and query dependencies.
pathsPath provider resolving MARTY temp/CSV outputs.

Definition at line 136 of file MartyWilson.h.

◆ MartyWilsonConfig() [2/3]

MartyWilsonConfig::MartyWilsonConfig ( const std::string &  model_name,
const LhaID id,
const std::string &  storage_block_name,
fs::path  model_path,
std::shared_ptr< IMartyWilsonProxy< InterpretedParam > >  proxy,
std::shared_ptr< IMartyWilsonPathProxy paths = nullptr 
)
inline

Constructs config including an explicit model name.

The CSV path is resolved from IMartyWilsonPathProxy, typically to <cache>/MartyTemp/<model_name>_wilson.csv.

Parameters
model_nameMARTY model class name.
idLHA identifier for the coefficient.
storage_block_nameDestination block name where the value is stored.
model_pathPath to the MARTY model header file.
proxyProxy to run MARTY and query dependencies.
pathsPath provider resolving MARTY temp/CSV outputs.

Definition at line 162 of file MartyWilson.h.

◆ MartyWilsonConfig() [3/3]

MartyWilsonConfig::MartyWilsonConfig ( const std::string &  output_model_name,
const std::string &  generation_model_name,
bool  sm_like_filter,
bool  bsm_split_generation,
bool  full_target_generation,
const LhaID id,
const std::string &  storage_block_name,
fs::path  model_path,
std::shared_ptr< IMartyWilsonProxy< InterpretedParam > >  proxy,
std::shared_ptr< IMartyWilsonPathProxy paths = nullptr 
)
inline

Constructs config with a separate output label and generated model.

Used for SM-like contributions inside an extended MARTY model.

Definition at line 183 of file MartyWilson.h.

Member Function Documentation

◆ fallback_csv_path()

static fs::path MartyWilsonConfig::fallback_csv_path ( const std::string &  model_name)
inlinestatic

Fallback path used only when legacy code constructs MartyWilsonConfig without a path provider.

New code should pass path_provider so the CSV path comes from MemoryManager/APIPathMARTY_TEMP_DIR rather than project_assets_root.

Definition at line 112 of file MartyWilson.h.

◆ refresh_csv_path()

void MartyWilsonConfig::refresh_csv_path ( )
inline

Resolves and stores the CSV path using the path provider when available.

Definition at line 119 of file MartyWilson.h.

Member Data Documentation

◆ bsm_split_generation

bool MartyWilsonConfig::bsm_split_generation {false}

If true, use the dedicated reg_prop split generation. For BSM-only requests the generated diagrams are filtered; for a full target-model request the complete target expression is kept.

Definition at line 80 of file MartyWilson.h.

◆ coeff_id

LhaID MartyWilsonConfig::coeff_id

Full coefficient id used to store the matching value (including order/type parts).

Definition at line 89 of file MartyWilson.h.

◆ csv_path

std::string MartyWilsonConfig::csv_path

Absolute path to the CSV output produced by MARTY for this model.

Definition at line 104 of file MartyWilson.h.

◆ full_target_generation

bool MartyWilsonConfig::full_target_generation {false}

If true, generate the complete target-model coefficient for explicit diagnostics. The normal WilsonBuilder path does not use this mode for physical BSM composition because subtracting a separately implemented SM can leak C9/C10 convention differences into the BSM result.

Definition at line 86 of file MartyWilson.h.

◆ generation_model_name

std::string MartyWilsonConfig::generation_model_name {"SM"}

C++ MARTY model class to instantiate. Usually equal to model_name, except for SM-like generation inside a BSM model.

Definition at line 71 of file MartyWilson.h.

◆ marty_proxy

std::shared_ptr<IMartyWilsonProxy<InterpretedParam> > MartyWilsonConfig::marty_proxy

Proxy used to run MARTY and retrieve dependencies/special blocks.

Definition at line 98 of file MartyWilson.h.

◆ model_name

std::string MartyWilsonConfig::model_name {"SM"}

Output model label used for generated libraries/CSV files (e.g. "SM", "THDM").

Definition at line 67 of file MartyWilson.h.

◆ model_path

fs::path MartyWilsonConfig::model_path {}

Path to the MARTY model header file.

Definition at line 95 of file MartyWilson.h.

◆ path_provider

std::shared_ptr<IMartyWilsonPathProxy> MartyWilsonConfig::path_provider

Path provider used to resolve MARTY generated outputs.

Definition at line 101 of file MartyWilson.h.

◆ sm_like_filter

bool MartyWilsonConfig::sm_like_filter {false}

If true, generated code instantiates generation_model_name but disables all particles not present in SM_Model.

Definition at line 75 of file MartyWilson.h.

◆ storage_block

std::string MartyWilsonConfig::storage_block

Name of the block where matching coefficients are stored (e.g. "WC_B_MATCH").

Definition at line 92 of file MartyWilson.h.


The documentation for this struct was generated from the following file: