GM2Calc 2.3.0
|
class for reading input files and writing SLHA output files More...
#include <gm2_slha_io.hpp>
Public Types | |
using | Tuple_processor = std::function< void(int, double)> |
Public Member Functions | |
void | clear () |
void | read_from_file (const std::string &) |
opens SLHA input file and reads the content | |
void | read_from_source (const std::string &) |
reads from source | |
void | read_from_stream (std::istream &) |
reads SLHA data from a stream | |
void | read_block (const std::string &, const Tuple_processor &, double scale=0) const |
Applies processor to each (key, value) pair of a SLHA block. | |
template<class Derived > | |
void | read_block (const std::string &, Eigen::MatrixBase< Derived > &, double scale=0) const |
Fills a matrix from a SLHA block. | |
double | read_scale (const std::string &) const |
Reads scale definition from SLHA block. | |
void | write_to_file (const std::string &) |
void | write_to_stream (std::ostream &) |
void | fill_block_entry (const std::string &, unsigned, double, const std::string &) |
Fills a block entry with a value. | |
void | fill_block_entry (const std::string &, unsigned, const std::string &) |
Fills a block entry with a string. | |
void | fill_gm2calc (MSSMNoFV_onshell &) const |
read model parameters (GM2Calc input format) | |
void | fill_slha (MSSMNoFV_onshell &) const |
read model parameters (SLHA input format) | |
void | fill (SM &) const |
read SM parameters | |
void | fill (thdm::Gauge_basis &) const |
read THDM gauge basis parameters | |
void | fill (thdm::Mass_basis &) const |
read THDM mass basis parameters | |
void | fill (Config_options &) const |
read configuration | |
class for reading input files and writing SLHA output files
Definition at line 50 of file gm2_slha_io.hpp.
using gm2calc::GM2_slha_io::Tuple_processor = std::function<void(int, double)> |
Definition at line 52 of file gm2_slha_io.hpp.
void gm2calc::GM2_slha_io::clear | ( | ) |
void gm2calc::GM2_slha_io::fill | ( | Config_options & | config_options | ) | const |
read configuration
Reads configuration from GM2CalcConfig block.
config_options | configuration settings |
Definition at line 546 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::fill | ( | gm2calc::SM & | sm | ) | const |
read SM parameters
Reads SM parameters.
sm | SM class |
Definition at line 441 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::fill | ( | thdm::Gauge_basis & | basis | ) | const |
read THDM gauge basis parameters
Reads THDM parameters in gauge basis.
basis | gauge basis |
Definition at line 474 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::fill | ( | thdm::Mass_basis & | basis | ) | const |
read THDM mass basis parameters
Reads THDM parameters in mass basis.
basis | mass basis |
Definition at line 508 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::fill_block_entry | ( | const std::string & | block_name, |
unsigned | entry, | ||
const std::string & | description | ||
) |
Fills a block entry with a string.
If the block or the entry do not exist, the block / entry is created.
block_name | block name |
entry | number of the entry |
description | comment |
Definition at line 275 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::fill_block_entry | ( | const std::string & | block_name, |
unsigned | entry, | ||
double | value, | ||
const std::string & | description | ||
) |
Fills a block entry with a value.
If the block or the entry do not exist, the block / entry is created.
block_name | block name |
entry | number of the entry |
value | value |
description | comment |
Definition at line 252 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::fill_gm2calc | ( | MSSMNoFV_onshell & | model | ) | const |
read model parameters (GM2Calc input format)
Reads model parameters in GM2Calc format from GM2CalcInput and SMINPUTS blocks.
model | model |
Definition at line 412 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::fill_slha | ( | MSSMNoFV_onshell & | model | ) | const |
read model parameters (SLHA input format)
Reads model parameters in SLHA format (from SLHA and GM2CalcInput input blocks)
model | model |
Definition at line 424 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::read_block | ( | const std::string & | block_name, |
const Tuple_processor & | processor, | ||
double | scale = 0 |
||
) | const |
Applies processor to each (key, value) pair of a SLHA block.
Non-data lines are ignored.
block_name | block name |
processor | tuple processor to be applied |
scale | (or 0 if scale should be ignored) |
Definition at line 212 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::read_block | ( | const std::string & | block_name, |
Eigen::MatrixBase< Derived > & | matrix, | ||
double | scale = 0 |
||
) | const |
Fills a matrix from a SLHA block.
block_name | block name |
matrix | matrix to be filled |
scale | (or 0 if scale should be ignored) |
Definition at line 227 of file gm2_slha_io.hpp.
opens SLHA input file and reads the content
file_name | SLHA input file name |
Definition at line 105 of file gm2_slha_io.cpp.
reads from source
If source is "-", then read_from_stream() is called. Otherwise, read_from_file() is called.
source | string that specifies the source |
Definition at line 92 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::read_from_stream | ( | std::istream & | istr | ) |
reads SLHA data from a stream
istr | input stream |
Definition at line 120 of file gm2_slha_io.cpp.
Reads scale definition from SLHA block.
block_name | block name |
Definition at line 153 of file gm2_slha_io.cpp.
Definition at line 228 of file gm2_slha_io.cpp.
void gm2calc::GM2_slha_io::write_to_stream | ( | std::ostream & | ostr | ) |
Definition at line 234 of file gm2_slha_io.cpp.