GM2Calc 2.3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
gm2calc::GM2_slha_io Class Reference

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
 

Detailed Description

class for reading input files and writing SLHA output files

Definition at line 50 of file gm2_slha_io.hpp.

Member Typedef Documentation

◆ Tuple_processor

Definition at line 52 of file gm2_slha_io.hpp.

Member Function Documentation

◆ clear()

void gm2calc::GM2_slha_io::clear ( )

◆ fill() [1/4]

void gm2calc::GM2_slha_io::fill ( Config_options config_options) const

read configuration

Reads configuration from GM2CalcConfig block.

Parameters
config_optionsconfiguration settings

Definition at line 546 of file gm2_slha_io.cpp.

◆ fill() [2/4]

void gm2calc::GM2_slha_io::fill ( gm2calc::SM sm) const

read SM parameters

Reads SM parameters.

Parameters
smSM class

Definition at line 441 of file gm2_slha_io.cpp.

◆ fill() [3/4]

void gm2calc::GM2_slha_io::fill ( thdm::Gauge_basis basis) const

read THDM gauge basis parameters

Reads THDM parameters in gauge basis.

Parameters
basisgauge basis

Definition at line 474 of file gm2_slha_io.cpp.

◆ fill() [4/4]

void gm2calc::GM2_slha_io::fill ( thdm::Mass_basis basis) const

read THDM mass basis parameters

Reads THDM parameters in mass basis.

Parameters
basismass basis

Definition at line 508 of file gm2_slha_io.cpp.

◆ fill_block_entry() [1/2]

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.

Parameters
block_nameblock name
entrynumber of the entry
descriptioncomment

Definition at line 275 of file gm2_slha_io.cpp.

◆ fill_block_entry() [2/2]

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.

Parameters
block_nameblock name
entrynumber of the entry
valuevalue
descriptioncomment

Definition at line 252 of file gm2_slha_io.cpp.

◆ fill_gm2calc()

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.

Parameters
modelmodel

Definition at line 412 of file gm2_slha_io.cpp.

◆ fill_slha()

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)

Parameters
modelmodel

Definition at line 424 of file gm2_slha_io.cpp.

◆ read_block() [1/2]

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.

Parameters
block_nameblock name
processortuple processor to be applied
scale(or 0 if scale should be ignored)

Definition at line 212 of file gm2_slha_io.cpp.

◆ read_block() [2/2]

template<class Derived >
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.

Parameters
block_nameblock name
matrixmatrix to be filled
scale(or 0 if scale should be ignored)

Definition at line 227 of file gm2_slha_io.hpp.

◆ read_from_file()

void gm2calc::GM2_slha_io::read_from_file ( const std::string &  file_name)

opens SLHA input file and reads the content

Parameters
file_nameSLHA input file name

Definition at line 105 of file gm2_slha_io.cpp.

◆ read_from_source()

void gm2calc::GM2_slha_io::read_from_source ( const std::string &  source)

reads from source

If source is "-", then read_from_stream() is called. Otherwise, read_from_file() is called.

Parameters
sourcestring that specifies the source

Definition at line 92 of file gm2_slha_io.cpp.

◆ read_from_stream()

void gm2calc::GM2_slha_io::read_from_stream ( std::istream &  istr)

reads SLHA data from a stream

Parameters
istrinput stream

Definition at line 120 of file gm2_slha_io.cpp.

◆ read_scale()

double gm2calc::GM2_slha_io::read_scale ( const std::string &  block_name) const

Reads scale definition from SLHA block.

Parameters
block_nameblock name
Returns
scale (or 0 if no scale is defined)

Definition at line 153 of file gm2_slha_io.cpp.

◆ write_to_file()

void gm2calc::GM2_slha_io::write_to_file ( const std::string &  file_name)

Definition at line 228 of file gm2_slha_io.cpp.

◆ write_to_stream()

void gm2calc::GM2_slha_io::write_to_stream ( std::ostream &  ostr)

Definition at line 234 of file gm2_slha_io.cpp.


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