Namespace containing all lha utilities. More...
Data Structures | |
| struct | Comparator |
| Helper class to define a comparison function for positions. More... | |
| class | LHABlock |
| LHABlock, containing a vector of LHAElement. More... | |
| struct | LHAElement |
| Corresponds to a line of a .lha file. More... | |
| struct | LHAElementInputData |
| Helper struct to define easily an object on which LHA data will apply. More... | |
| class | LHAFileData |
| Final class containing all the data coming from a LHA file. More... | |
| struct | LHAInputData |
| Helper struct to define a block of LHAElementInputData to make easy the definition of a modifiable block of expressions. More... | |
| class | Reader |
| Class the reads .lha file, parses them and create a LHAFileData containing all blocks with their elements. More... | |
Typedefs | |
| using | FloatType = long double |
| Floating point type for LHA support. Long double is 64 bits usually. | |
Enumerations | |
| enum | BlockType { BlockType::None, BlockType::SMINPUTS, BlockType::MINPAR, BlockType::EXTPAR, BlockType::MSQ2, BlockType::MSL2, BlockType::MSu2, BlockType::MSd2, BlockType::MSe2, BlockType::TUIN, BlockType::TDIN, BlockType::TEIN } |
| Enumeration of possible LHA blocks in MARTY. More... | |
Functions | |
| void | readFile (std::string const &fileName) |
| Load a .lha file for built-in values in MARTY, in particular SM and MSSM inputs. More... | |
| void | readFile (std::ifstream &file) |
| Load a .lha file for built-in values in MARTY, in particular SM and MSSM inputs. More... | |
| bool | applyLHA (LHAFileData const &data, std::string_view nameBlock, size_t id, csl::Expr &expr) |
| Applies a lha element on an expression, calling csl::Abstract::setValue(). More... | |
| bool | applyLHA (LHAFileData const &data, std::string_view nameBlock, size_t i, size_t j, csl::Expr &expr) |
| Applies a lha element on an expression, calling csl::Abstract::setValue(). More... | |
| bool | applyLHA (LHAFileData const &data, std::string_view nameBlock, csl::Expr &expr) |
| Applies a matrix lha element on an expression, calling csl::Abstract::setValue(). More... | |
| void | applyLHAOnInputs (LHAFileData const &data, LHAInputData &inputs) |
| Applies LHA data on a LHAInputData element. More... | |
| LHAInputData & | getSMInput () |
| Returns all the input data for the SM. More... | |
| LHAInputData | getMINPARInput (int model) |
| Returnrs all the input data for MINPAR block. More... | |
| LHAInputData | getEXTPARInput () |
| Returns the input data for the EXTPAR block. More... | |
| LHAInputData | getMatrixInput (csl::Expr &matrix, std::string const &name) |
| Returns the input data for a matrix input. More... | |
| std::vector< LHAInputData > & | getMSSMInput (int model) |
| Returns all the input data for the MSSM. More... | |
| BlockType | blockType (std::string_view name) |
| Returns the BlockType corresponding to its name. The name must correspond to the enumeration name (see BlockType). More... | |
| std::ostream & | operator<< (std::ostream &out, BlockType type) |
| Output stream overload for BlockType. More... | |
| std::ostream & | operator<< (std::ostream &out, LHAElement const &element) |
| Displays a LHAElement in an output stream. More... | |
| std::ostream & | operator<< (std::ostream &out, LHABlock const &block) |
| Displays a LHABlock in an output stream. More... | |
| std::ostream & | operator<< (std::ostream &out, LHAFileData const &data) |
| Displays a LHAFileData in an output stream. More... | |
| std::string | tolower (std::string const &str) |
| int | nSpace (size_t n) |
| Returns the number of spaces needed to display correctly an integer. More... | |
Namespace containing all lha utilities.
|
strong |
Enumeration of possible LHA blocks in MARTY.
| Enumerator | |
|---|---|
| None | Invalid Block. |
| SMINPUTS | Standard Model inputs. |
| MINPAR | SUSY breaking input parameters. |
| EXTPAR | Optional input parameters for non-minimal / non-universal models. |
| MSQ2 | Soft SUSY breaking left squark mass matrix. |
| MSL2 | Soft SUSY breaking left slepton mass matrix. |
| MSu2 | Soft SUSY breaking right up-squark mass matrix. |
| MSd2 | Soft SUSY breaking right down-squark mass matrix. |
| MSe2 | Soft SUSY breaking right selectron mass matrix. |
| TUIN | Trilinear up-type coupling. |
| TDIN | Trilinear down-type coupling. |
| TEIN | Trilinear electron-type coupling. |
| bool mty::lha::applyLHA | ( | LHAFileData const & | data, |
| std::string_view | nameBlock, | ||
| size_t | id, | ||
| csl::Expr & | expr | ||
| ) |
Applies a lha element on an expression, calling csl::Abstract::setValue().
| data | LHAFileData read from the file. |
| nameBlock | Name of the block in which the value appears. |
| id | ID of the value. |
| expr | Expression, should be a literal (a csl::Constant typically). |
| bool mty::lha::applyLHA | ( | LHAFileData const & | data, |
| std::string_view | nameBlock, | ||
| size_t | i, | ||
| size_t | j, | ||
| csl::Expr & | expr | ||
| ) |
Applies a lha element on an expression, calling csl::Abstract::setValue().
| data | LHAFileData read from the file. |
| nameBlock | Name of the block in which the value appears. |
| i | Row position (starts from 1) of the matrix element. |
| j | Column position (starts from 1) of the matrix element. |
| expr | Expression, should be a literal (a csl::Constant typically). |
| bool mty::lha::applyLHA | ( | LHAFileData const & | data, |
| std::string_view | nameBlock, | ||
| csl::Expr & | expr | ||
| ) |
Applies a matrix lha element on an expression, calling csl::Abstract::setValue().
| data | LHAFileData read from the file. |
| nameBlock | Name of the block in which the value appears. |
| expr | Expression, should be a csl::Matrix. |
| void mty::lha::applyLHAOnInputs | ( | LHAFileData const & | data, |
| LHAInputData & | inputs | ||
| ) |
Applies LHA data on a LHAInputData element.
| data | LHAFileData read from a .lha file. |
| inputs | List of inputs for a given block. |
| BlockType mty::lha::blockType | ( | std::string_view | name | ) |
Returns the BlockType corresponding to its name. The name must correspond to the enumeration name (see BlockType).
| name | Name of the type. |
| LHAInputData mty::lha::getEXTPARInput | ( | ) |
Returns the input data for the EXTPAR block.
| LHAInputData mty::lha::getMatrixInput | ( | csl::Expr & | matrix, |
| std::string const & | name | ||
| ) |
Returns the input data for a matrix input.
| matrix | Matrix associated to the LHA input. |
| name | Name of the block defining the matrix. |
| LHAInputData mty::lha::getMINPARInput | ( | int | model | ) |
Returnrs all the input data for MINPAR block.
| model | Model type (Block MODSEL, id = 0) |
| std::vector< LHAInputData > & mty::lha::getMSSMInput | ( | int | model | ) |
Returns all the input data for the MSSM.
| model | Model integer corresponding to id 0 on MODSEL block. |
| LHAInputData & mty::lha::getSMInput | ( | ) |
Returns all the input data for the SM.
| int mty::lha::nSpace | ( | size_t | n | ) |
Returns the number of spaces needed to display correctly an integer.
| n | Integer to display. |
| std::ostream & mty::lha::operator<< | ( | std::ostream & | out, |
| BlockType | type | ||
| ) |
Output stream overload for BlockType.
| out | Output stream. |
| type | BlockType to display. |
| std::ostream & mty::lha::operator<< | ( | std::ostream & | out, |
| LHAElement const & | element | ||
| ) |
Displays a LHAElement in an output stream.
| out | Output stream. |
| element | LHAElement to display. |
| std::ostream & mty::lha::operator<< | ( | std::ostream & | out, |
| LHABlock const & | block | ||
| ) |
| std::ostream & mty::lha::operator<< | ( | std::ostream & | out, |
| LHAFileData const & | data | ||
| ) |
Displays a LHAFileData in an output stream.
| out | Output stream. |
| element | LHAFileData to display. |
| void mty::lha::readFile | ( | std::string const & | fileName | ) |
Load a .lha file for built-in values in MARTY, in particular SM and MSSM inputs.
Reading this function will automatically set values for all constants appearing in expressions if you are using SM or MSSM (or more generally variables in mty::sm_input or mty::mssm_input namespaces).
| fileName | Name of the file to read. |
| void mty::lha::readFile | ( | std::ifstream & | file | ) |
Load a .lha file for built-in values in MARTY, in particular SM and MSSM inputs.
Reading this function will automatically set values for all constants appearing in expressions if you are using SM or MSSM (or more generally variables in mty::sm_input or mty::mssm_input namespaces).
| file | Input file stream for the .lha file. |
1.8.13