gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
slhaea_helpers.hpp File Reference

Nicer alias for SLHAea container class, and some convenient helper functions that add or retrieve the contents of an SLHAea::Coll with some basic error-checking. More...

#include "gambit/Utils/standalone_error_handlers.hpp"
#include "gambit/Utils/util_types.hpp"
#include "SLHAea/slhaea.h"
#include <boost/serialization/strong_typedef.hpp>
Include dependency graph for slhaea_helpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Gambit
 TODO: see if we can use this one:
 

Typedefs

typedef SLHAea::Coll Gambit::SLHAstruct
 Less confusing name for SLHAea container class. More...
 

Functions

 Gambit::BOOST_STRONG_TYPEDEF (SLHAstruct, MSSM_SLHAstruct) BOOST_STRONG_TYPEDEF(SLHAstruct
 Create a strong typedef (different classes underneath, but can be assigned to each other etc.) that lets us create e.g. More...
 
SMslha_SLHAstruct SLHAstruct Gambit::read_SLHA (str slha)
 Read an SLHA file in to an SLHAea object with some error-checking. More...
 
double Gambit::SLHAea_get (const SLHAstruct &slha, const str &block, const int index)
 Get an entry from an SLHAea object as a double, with some error checking. More...
 
double Gambit::SLHAea_get (const SLHAstruct &slha, const str &block, const int index, const double defvalue)
 Get an entry from an SLHAea object as a double; raise a warning and use a default value if the entry is missing. More...
 
void Gambit::SLHAea_add_block (SLHAstruct &, const str &name, const double scale=-1)
 Add a new block to an SLHAea object, with or without a scale. More...
 
void Gambit::SLHAea_delete_block (SLHAstruct &slha, const std::string &block)
 Delete an entire block from an SLHAea object, if it exists (actually just the first block matching the given name) More...
 
bool Gambit::SLHAea_block_exists (SLHAstruct &slha, const str &block)
 Check if a block exists in an SLHAea object. More...
 
bool Gambit::SLHAea_check_block (SLHAstruct &slha, const str &block)
 Check if a block exists in an SLHAea object, add it if not. More...
 
bool Gambit::SLHAea_check_block (SLHAstruct &slha, const str &block, const int index)
 Check if a block exists in an SLHAea object, add it if not, and check if it has an entry at a given index. More...
 
bool Gambit::SLHAea_check_block (SLHAstruct &slha, const str &block, const int index1, const int index2)
 
void Gambit::SLHAea_add_GAMBIT_SPINFO (SLHAstruct &slha)
 Write the SPINFO block with GAMBIT name and version number. More...
 
template<typename T >
void Gambit::SLHAea_add_matrix (SLHAstruct &slha, const str &block, const std::vector< T > &matrix, const int rows, const int cols, const str &comment="", const bool overwrite=false)
 Add a whole matrix to an SLHAea object if it doesn't already exist. More...
 
template<class T >
void Gambit::SLHAea_overwrite_block (SLHAstruct &slha, const str &block, int index, T value, const str &comment)
 Check if a line exists in an SLHAea block, then overwrite it if it does. Otherwise add the line. More...
 
template<class T >
void Gambit::SLHAea_overwrite_block (SLHAstruct &slha, const str &block, int index1, int index2, T value, const str &comment)
 Check if a line exists in an SLHAea block, then overwrite it if it does. Otherwise add the line. More...
 
void Gambit::SLHAea_add (SLHAstruct &slha, const str &block, const int index, const double value, const str &comment="", const bool overwrite=false)
 Add an entry to an SLHAea object (if overwrite=false, only if it doesn't already exist) More...
 
void Gambit::SLHAea_add (SLHAstruct &slha, const str &block, const int index, const str &value, const str &comment="", const bool overwrite=false)
 
void Gambit::SLHAea_add (SLHAstruct &slha, const str &block, const int index, const int value, const str &comment="", const bool overwrite=false)
 
void Gambit::SLHAea_add (SLHAstruct &slha, const str &block, const int index1, const int index2, const double &value, const str &comment, const bool overwrite=false)
 

Detailed Description

Nicer alias for SLHAea container class, and some convenient helper functions that add or retrieve the contents of an SLHAea::Coll with some basic error-checking.


Authors (add name and date if you modify):

Author
Ben Farmer (benja.nosp@m.min..nosp@m.farme.nosp@m.r@mo.nosp@m.nash..nosp@m.edu)
Date
2015
Author
Pat Scott (p.sco.nosp@m.tt@i.nosp@m.mperi.nosp@m.al.a.nosp@m.c.uk)
Date
2015
Author
Tomas Gonzalo (tomas.nosp@m..gon.nosp@m.zalo@.nosp@m.mona.nosp@m.sh.ed.nosp@m.u)
Date
2020

Definition in file slhaea_helpers.hpp.