Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
LhaParamsHelper.cpp
Go to the documentation of this file.
1#include "LhaParamsHelper.h"
2
3const std::map<BlockName, std::vector<std::vector<long>>> LhaParamsHelper::minimal_blocks = {
4 {"FMASS", {{211}, {321}, {323}, {411}, {421}, {423}, {431}, {511}, {521}, {531}}},
5 {"FLIFE", {{211}, {321}, {323}, {411}, {421}, {431}, {511}, {521}, {531}}},
6 {"FCONST", {{511, 1}, {521, 1}, {531, 1}, {323, 1}, {323, 2}}},
7};
8
9std::vector<std::vector<long>> LhaParamsHelper::get_minimal_content(const BlockName &block_name) {
10 if (LhaParamsHelper::minimal_blocks.contains(block_name)) {
11 return LhaParamsHelper::minimal_blocks.at(block_name);
12 }
13 LOG_ERROR("LhaParamsHelper", "Unknown block", block_name);
14}
Helper utilities for minimal LHAPDF / SLHA block content.
#define LOG_ERROR(type,...)
Macro for logging error messages and terminating the application.
Definition Logger.h:41
Block identifier with alias support.
Definition BlockName.h:59
static std::vector< std::vector< long > > get_minimal_content(const BlockName &block_name)
Returns the minimal required content for a given block.