slhaea_helpers.hpp
Go to the documentation of this file.
49 double SLHAea_get(const SLHAstruct& slha, const str& block, const int index, const double defvalue); 62 bool SLHAea_check_block(SLHAstruct& slha, const str& block, const int index); /*, const bool overwrite)*/ 70 void SLHAea_add(SLHAstruct& slha /*modify*/, const str& block, const int index, const double value, 72 void SLHAea_add(SLHAstruct& slha /*modify*/, const str& block, const int index, const str& value, 77 void SLHAea_add(SLHAstruct& slha /*modify*/, const str& block, const int index1, const int index2, 83 void SLHAea_add_matrix(SLHAstruct& slha /*modify*/, const str& block, const std::vector<T>& matrix, 97 void SLHAea_add_from_subspec(SLHAstruct& slha /*modify*/, const str local_info, const SubSpectrum& subspec, 98 const Par::Tags partype, const std::pair<int, int>& pdg_pair, const str& block, const str& comment, 102 void SLHAea_add_from_subspec(SLHAstruct& slha /*modify*/, const str local_info, const SubSpectrum& subspec, 107 void SLHAea_add_from_subspec(SLHAstruct& slha /*modify*/, const str local_info, const SubSpectrum& subspec, 109 const int slha_index1, const int slha_index2, const str& comment, const bool error_if_missing = true, const double rescale = 1.0); void SLHAea_add_block(SLHAstruct &, const str &name, const double scale=-1) Add a new block to an SLHAea object, with our without a scale. Definition: slhaea_helpers.cpp:86 SLHAstruct read_SLHA(str slha) Read an SLHA file in to an SLHAea object with some error-checking. Definition: slhaea_helpers.cpp:33 General small utility classes, typedefs, etc. void SLHAea_add_GAMBIT_SPINFO(SLHAstruct &slha) Write the SPINFO block with GAMBIT name and version number. Definition: slhaea_helpers.cpp:222 void 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) ... Definition: slhaea_helpers.cpp:236 SLHAea::Coll SLHAstruct Less confusing name for SLHAea container class. Definition: slhaea_helpers.hpp:37 bool SLHAea_block_exists(SLHAstruct &slha, const str &block) Check if a block exists in an SLHAea object. Definition: slhaea_helpers.cpp:98 Virtual base class for interacting with spectrum generator output. Definition: subspectrum.hpp:87 void 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 th... Definition: slhaea_helpers.cpp:216 Exception objects required for standalone compilation. void 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. Definition: slhaea_helpers.hpp:83 double 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. Definition: slhaea_helpers.cpp:49 Helpers for using the spectrum and subspectrum classes. void SLHAea_add_from_subspec(SLHAstruct &slha, const str local_info, const SubSpectrum &subspec, const Par::Tags partype, const std::pair< int, int > &pdg_pair, const str &block, const str &comment, const bool error_if_missing=true, const double rescale=1.0) Add an entry from a subspectrum getter to an SLHAea object; SLHA index given by pdg code... Definition: slhaea_helpers.cpp:270 bool SLHAea_check_block(SLHAstruct &slha, const str &block) Check if a block exists in an SLHAea object, add it if not. Definition: slhaea_helpers.cpp:106 |