slhaea_helpers.cpp
Go to the documentation of this file.
68 double SLHAea_get(const SLHAstruct& slha, const str& block, const int index, const double defvalue) 78 warn << "Warning! No entry found at index "<<index<<" of block "<<block<<". Using default value: "<<defvalue<< std::endl; 122 // TODO: Ben: I just found this, and I can't say I understand the logic related to "overwrite". It also makes 124 bool SLHAea_check_block(SLHAstruct& slha, const str& block, const int index) /*, const bool overwrite)*/ 145 bool SLHAea_check_block(SLHAstruct& slha, const str& block, const int index1, const int index2) /*, const bool overwrite)*/ 191 void SLHAea_overwrite_block(SLHAstruct& slha /*modify*/, const str& block, int index1, int index2, 198 //slha.at(block).at(indices).at(1); // Is this actually a valid way to use SLHAea? I don't see it in their documentation. 260 void SLHAea_add(SLHAstruct& slha /*modify*/, const str& block, const int index1, const int index2, 264 SLHAea_overwrite_block(slha, block, index1, index2, value, (comment == "" ? "" : "# " + comment)); 270 void SLHAea_add_from_subspec(SLHAstruct& slha /*modify*/, const str local_info, const SubSpectrum& subspec, 271 const Par::Tags partype, const std::pair<int, int>& pdg_pair, const str& block, const str& comment, 276 SLHAea_overwrite_block(slha, block, pdg_pair.first, subspec.get(partype,pdg_pair)*rescale, (comment == "" ? "" : "# " + comment)); 281 errmsg << "Error creating SLHAea output from SubSpectrum object! Required entry not found (paramtype="<<Par::toString.at(partype) 290 void SLHAea_add_from_subspec(SLHAstruct& slha /*modify*/, const str local_info, const SubSpectrum& subspec, 296 SLHAea_overwrite_block(slha, block, slha_index, subspec.get(partype,name)*rescale, (comment == "" ? "" : "# " + comment)); 301 errmsg << "Error creating SLHAea output from SubSpectrum object! Required entry not found (paramtype="<<Par::toString.at(partype)<<", name="<<name<<")"; 309 void SLHAea_add_from_subspec(SLHAstruct& slha /*modify*/, const str local_info, const SubSpectrum& subspec, 311 const int slha_index1, const int slha_index2, const str& comment, const bool error_if_missing, const double rescale) 315 SLHAea_overwrite_block(slha, block, slha_index1, slha_index2, subspec.get(partype,name,index1,index2)*rescale, (comment == "" ? "" : "# " + comment)); 320 errmsg << "Error creating SLHAea output from SubSpectrum object! Required entry not found (paramtype="<<Par::toString.at(partype)<<", name="<<name<<", index1="<<index1<<", index2="<<index2;
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 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 Definition: log_tags.hpp:38 SLHAea::Coll SLHAstruct Less confusing name for SLHAea container class. Definition: slhaea_helpers.hpp:37 virtual double get(const Par::Tags, const str &, const SpecOverrideOptions=use_overrides, const SafeBool check_antiparticle=SafeBool(true)) const =0 Nicer alias for SLHAea container class, and some convenient helper functions that add or retrieve the... EXPORT_SYMBOLS warning & utils_warning() Utility warnings. Definition: standalone_error_handlers.cpp:34 bool SLHAea_block_exists(SLHAstruct &slha, const str &block) Check if a block exists in an SLHAea object. Definition: slhaea_helpers.cpp:98 Definition: log_tags.hpp:37 void 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... Definition: slhaea_helpers.cpp:171 str & gambit_version() Statically construct a string containing the full GAMBIT version information and return a reference t... Definition: version.cpp:32 Abstract class for accessing general spectrum information. 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. 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 Version numbering. 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 virtual bool has(const Par::Tags, const str &, const SpecOverrideOptions=use_overrides, const SafeBool check_antiparticle=SafeBool(true)) const =0 Getters/Setters etc. 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 |