Classes |
Public Types |
Public Member Functions |
Private Member Functions |
Static Private Member Functions |
Private Attributes |
List of all members
flexiblesusy::SLHA_io Class Reference Handles reading and writing of SLHA files. More...
Collaboration diagram for flexiblesusy::SLHA_io:
![]()
Detailed DescriptionHandles reading and writing of SLHA files. Reading: There are two ways to read block entries from SLHA files: a) using the read_block() function with a SLHA_io::Tuple_processor or b) using the read_entry() function for each entry. Note, that a) is much faster than b) (more than 1000 times) because b) needs to search for the block each time read_entry() is called. Example how to use a tuple processor (fast!): void process_tuple(double* array, int key, double value) {
array[key] = value;
}
void read_file() {
double array[1000];
SLHA_io reader;
reader.read_from_file("file.slha");
return process_tuple(array, key, value);
};
reader.read_block("MyBlock", processor);
}
double read_block(const std::string &, const Tuple_processor &) const Definition slha_io.cpp:687 void read_from_file(const std::string &) opens SLHA input file and reads the content Definition slha_io.cpp:534 std::function< void(int, double)> Tuple_processor Definition slha_io.hpp:98 Example how to use a for loop (slow!): void read_file() {
double array[1000];
SLHA_io reader;
reader.read_from_file("file.slha");
for (int i = 0; i < 1000; i++) {
array[i] = reader.read_entry("MyBlock", i);
}
}
double read_entry(const std::string &, int) const Definition slha_io.cpp:739 Definition at line 96 of file slha_io.hpp. Member Typedef Documentation◆ Tuple_processor
Definition at line 98 of file slha_io.hpp. Member Enumeration Documentation◆ Position
Definition at line 99 of file slha_io.hpp. Constructor & Destructor Documentation◆ SLHA_io() [1/3]
Definition at line 437 of file slha_io.cpp. Referenced by operator=(). ◆ SLHA_io() [2/3]
Definition at line 443 of file slha_io.cpp. ◆ SLHA_io() [3/3]
Definition at line 450 of file slha_io.cpp. ◆ ~SLHA_io()
Member Function Documentation◆ block_exists()
Definition at line 508 of file slha_io.cpp. References data. ◆ block_head()
Definition at line 493 of file slha_io.cpp. References FORMAT_SCALE, and flexiblesusy::is_zero(). Referenced by set_block(), set_FlexibleDecay_settings(), set_higgsbounds(), set_hs_or_lilith(), set_LToLConversion_settings(), set_matrix(), set_matrix(), set_matrix_imag(), set_matrix_imag(), set_modsel(), set_physical_input(), set_settings(), set_sminputs(), set_vector(), set_vector(), set_vector_imag(), and set_vector_imag(). ◆ clear()
Definition at line 474 of file slha_io.cpp. References flexiblesusy::SLHA_io::Modsel::clear(), data, and modsel. ◆ fill() [1/5]
Fill struct of decay settings from SLHA object (FlexibleDecay block)
Definition at line 654 of file slha_io.cpp. References read_block(), and settings. ◆ fill() [2/5]
Fill struct of decay settings from SLHA object (LToLConversion block)
Definition at line 639 of file slha_io.cpp. References read_block(), and settings. ◆ fill() [3/5]
Fill struct of extra physical input parameters from SLHA object (FlexibleSUSYInput block)
Definition at line 624 of file slha_io.cpp. References read_block(). ◆ fill() [4/5]
Definition at line 578 of file slha_io.cpp. References flexiblesusy::SLHA_io::CKM_wolfenstein::aCkm, flexiblesusy::SLHA_io::CKM_wolfenstein::etabar, flexiblesusy::SLHA_io::CKM_wolfenstein::lambdaW, flexiblesusy::SLHA_io::Modsel::lepton_flavour_violated, modsel, flexiblesusy::SLHA_io::Modsel::quark_flavour_violated, read_block(), flexiblesusy::SLHA_io::CKM_wolfenstein::rhobar, flexiblesusy::CKM_parameters::set_from_wolfenstein(), softsusy::QedQcd::setCKM(), and softsusy::QedQcd::setPMNS(). ◆ fill() [5/5]
Fill struct of spectrum generator settings from SLHA object (FlexibleSUSY block)
Definition at line 669 of file slha_io.cpp. References read_block(), and settings. ◆ get_data()
Definition at line 481 of file slha_io.cpp. References data. ◆ get_modsel()
Definition at line 129 of file slha_io.hpp. References modsel. ◆ operator=() [1/2]Definition at line 460 of file slha_io.cpp. References SLHA_io(). ◆ operator=() [2/2]Definition at line 466 of file slha_io.cpp. References data. ◆ read_block() [1/3]
Applies processor to each (key, value) pair of a SLHA block. Non-data lines are ignored.
Definition at line 687 of file slha_io.cpp. References data, SLHAea::Coll::find(), read_scale(), flexiblesusy::to_double(), and flexiblesusy::to_int(). Referenced by fill(), fill(), fill(), fill(), fill(), and read_modsel(). ◆ read_block() [2/3]
Fills an entry from a SLHA block
Definition at line 718 of file slha_io.cpp. References data, SLHAea::Coll::find(), read_scale(), and flexiblesusy::to_double(). ◆ read_block() [3/3]
template<class Derived >
Fills a matrix or vector from a SLHA block
Definition at line 200 of file slha_io.hpp. References read_matrix(), and read_vector(). ◆ read_entry()
Definition at line 739 of file slha_io.cpp. References data, SLHAea::Coll::find(), flexiblesusy::to_double(), and flexiblesusy::to_string(). ◆ read_from_file()
opens SLHA input file and reads the content
Definition at line 534 of file slha_io.cpp. References read_from_stream(). Referenced by read_from_source(). ◆ read_from_source()
reads from source If source is "-", then read_from_stream() is called. Otherwise, read_from_file() is called.
Definition at line 521 of file slha_io.cpp. References read_from_file(), and read_from_stream(). ◆ read_from_stream()
clears stored data and reads SLHA data from a stream
Definition at line 548 of file slha_io.cpp. References data, and read_modsel(). Referenced by read_from_file(), and read_from_source(). ◆ read_matrix() [1/2]
Definition at line 969 of file slha_io.cpp. References data, and flexiblesusy::detail::read_matrix_(). Referenced by read_block(). ◆ read_matrix() [2/2]
Definition at line 975 of file slha_io.cpp. References data, and flexiblesusy::detail::read_matrix_(). ◆ read_modsel()
Definition at line 569 of file slha_io.cpp. References modsel, and read_block(). Referenced by read_from_stream(). ◆ read_scale() [1/2]
Reads the scale from the line, if the line is a block head and contains a scale definition. Otherwise, the scale is not read.
Definition at line 564 of file slha_io.cpp. References flexiblesusy::detail::read_scale(). ◆ read_scale() [2/2]
Reads scale definition from SLHA block.
Definition at line 771 of file slha_io.cpp. References data, SLHAea::Coll::find(), and read_scale(). Referenced by read_block(), read_block(), and read_scale(). ◆ read_vector() [1/2]
Definition at line 957 of file slha_io.cpp. References data, and flexiblesusy::detail::read_vector_(). Referenced by read_block(). ◆ read_vector() [2/2]
Definition at line 963 of file slha_io.cpp. References data, and flexiblesusy::detail::read_vector_(). ◆ set_block() [1/4]
Definition at line 788 of file slha_io.cpp. References set_block(). Referenced by set_block(), set_block(), set_blocks(), set_effectivecouplings_block(), set_FlexibleDecay_settings(), set_higgsbounds(), set_hs_or_lilith(), set_imnormalized_effectivecouplings_block(), set_LToLConversion_settings(), set_matrix(), set_matrix(), set_matrix_imag(), set_matrix_imag(), set_modsel(), set_normalized_effectivecouplings_block(), set_physical_input(), set_settings(), set_sminputs(), set_unitarity_infinite_s(), set_vector(), set_vector(), set_vector_imag(), and set_vector_imag(). ◆ set_block() [2/4]
template<class Derived >
Writes real part of a matrix or vector to SLHA object
Definition at line 216 of file slha_io.hpp. References set_matrix(), and set_vector(). ◆ set_block() [3/4]
This function treats a given scalar as 1x1 matrix. Such a case is not defined in the SLHA standard, but we still handle it to avoid problems. Definition at line 819 of file slha_io.cpp. References block_head(), FORMAT_MIXING_MATRIX, set_block(), and flexiblesusy::ss. ◆ set_block() [4/4]Definition at line 793 of file slha_io.cpp. References data, SLHAea::Block::erase(), front, SLHAea::Block::name(), and SLHAea::Block::str(). ◆ set_block_imag()
template<class Derived >
Writes imaginary part of a matrix or vector to SLHA object
Definition at line 234 of file slha_io.hpp. References set_matrix_imag(), and set_vector_imag(). ◆ set_blocks()
Definition at line 807 of file slha_io.cpp. References set_block(). ◆ set_data()
Definition at line 487 of file slha_io.cpp. References data. ◆ set_effectivecouplings_block()
Definition at line 1055 of file slha_io.cpp. References set_block(). ◆ set_FlexibleDecay_settings()
Definition at line 884 of file slha_io.cpp. References block_head(), FORMAT_ELEMENT, flexiblesusy::FlexibleDecay_settings::NUMBER_OF_OPTIONS, set_block(), settings, and flexiblesusy::ss. ◆ set_higgsbounds()
Definition at line 1042 of file slha_io.cpp. References block_head(), set_block(), and flexiblesusy::ss. ◆ set_hs_or_lilith()
Definition at line 1028 of file slha_io.cpp. References block_head(), FORMAT_ELEMENT, set_block(), and flexiblesusy::ss. ◆ set_imnormalized_effectivecouplings_block()
Definition at line 1100 of file slha_io.cpp. References flexiblesusy::bb, flexiblesusy::cc, flexiblesusy::dd, DECAY_FERMION_IM, flexiblesusy::ee, flexiblesusy::mumu, set_block(), flexiblesusy::ss, flexiblesusy::tautau, flexiblesusy::tt, and flexiblesusy::uu. ◆ set_LToLConversion_settings()
Definition at line 871 of file slha_io.cpp. References block_head(), FORMAT_ELEMENT, flexiblesusy::LToLConversion_settings::NUMBER_OF_OPTIONS, set_block(), settings, and flexiblesusy::ss. ◆ set_matrix() [1/2]
Definition at line 993 of file slha_io.cpp. References block_head(), flexiblesusy::detail::format_matrix(), and set_block(). Referenced by set_block(). ◆ set_matrix() [2/2]
Definition at line 999 of file slha_io.cpp. References block_head(), flexiblesusy::detail::format_matrix(), and set_block(). ◆ set_matrix_imag() [1/2]
Definition at line 1017 of file slha_io.cpp. References block_head(), flexiblesusy::detail::format_matrix_imag(), and set_block(). Referenced by set_block_imag(). ◆ set_matrix_imag() [2/2]
Definition at line 1023 of file slha_io.cpp. References block_head(), flexiblesusy::detail::format_matrix_imag(), and set_block(). ◆ set_modsel()
Definition at line 829 of file slha_io.cpp. References block_head(), FORMAT_ELEMENT, flexiblesusy::SLHA_io::Modsel::lepton_flavour_violated, modsel, flexiblesusy::SLHA_io::Modsel::parameter_output_scale, flexiblesusy::SLHA_io::Modsel::quark_flavour_violated, set_block(), and flexiblesusy::ss. ◆ set_normalized_effectivecouplings_block()
Definition at line 1070 of file slha_io.cpp. References flexiblesusy::bb, flexiblesusy::cc, flexiblesusy::dd, DECAY_FERMION_RE, DECAY_VBOSON, flexiblesusy::ee, FORMAT_EFFECTIVECOUPLINGS, flexiblesusy::gamgam, flexiblesusy::gg, flexiblesusy::mumu, set_block(), flexiblesusy::ss, flexiblesusy::tautau, flexiblesusy::tt, flexiblesusy::uu, flexiblesusy::WW, flexiblesusy::Zgam, and flexiblesusy::ZZ. ◆ set_physical_input()
Definition at line 843 of file slha_io.cpp. References block_head(), FORMAT_ELEMENT, flexiblesusy::Physical_input::get(), flexiblesusy::Physical_input::get_names(), set_block(), and flexiblesusy::ss. ◆ set_settings()
Definition at line 858 of file slha_io.cpp. References block_head(), FORMAT_ELEMENT, flexiblesusy::Spectrum_generator_settings::NUMBER_OF_OPTIONS, set_block(), settings, and flexiblesusy::ss. ◆ set_sminputs()
Definition at line 897 of file slha_io.cpp. References block_head(), softsusy::QedQcd::displayAlphaEmInput(), softsusy::QedQcd::displayAlphaSInput(), softsusy::QedQcd::displayFermiConstant(), softsusy::QedQcd::displayMbMb(), softsusy::QedQcd::displayMcMc(), softsusy::QedQcd::displayMd2GeV(), softsusy::QedQcd::displayMs2GeV(), softsusy::QedQcd::displayMu2GeV(), softsusy::QedQcd::displayNeutrinoPoleMass(), softsusy::QedQcd::displayPoleMel(), softsusy::QedQcd::displayPoleMmuon(), softsusy::QedQcd::displayPoleMt(), softsusy::QedQcd::displayPoleMtau(), softsusy::QedQcd::displayPoleMW(), softsusy::QedQcd::displayPoleMZ(), FORMAT_ELEMENT, set_block(), and flexiblesusy::ss. ◆ set_unitarity_infinite_s()
Definition at line 923 of file slha_io.cpp. References flexiblesusy::UnitarityInfiniteS::allowed, flexiblesusy::Spectrum_generator_settings::calculate_observables, FORMAT_ELEMENT, FORMAT_SCALE, flexiblesusy::Spectrum_generator_settings::get(), flexiblesusy::UnitarityInfiniteS::maxAbsReEigenval, flexiblesusy::UnitarityInfiniteS::renScale, and set_block(). ◆ set_vector() [1/2]
Definition at line 981 of file slha_io.cpp. References block_head(), flexiblesusy::detail::format_vector(), and set_block(). Referenced by set_block(). ◆ set_vector() [2/2]
Definition at line 987 of file slha_io.cpp. References block_head(), flexiblesusy::detail::format_vector(), and set_block(). ◆ set_vector_imag() [1/2]
Definition at line 1005 of file slha_io.cpp. References block_head(), flexiblesusy::detail::format_vector_imag(), and set_block(). Referenced by set_block_imag(). ◆ set_vector_imag() [2/2]
Definition at line 1011 of file slha_io.cpp. References block_head(), flexiblesusy::detail::format_vector_imag(), and set_block(). ◆ write_to_file()
Definition at line 935 of file slha_io.cpp. References write_to_stream(). ◆ write_to_stream() [1/2]
Definition at line 951 of file slha_io.cpp. References write_to_stream(). Referenced by write_to_file(), and write_to_stream(). ◆ write_to_stream() [2/2]
Definition at line 941 of file slha_io.cpp. Member Data Documentation◆ data
SHLA data. Definition at line 168 of file slha_io.hpp. Referenced by block_exists(), clear(), get_data(), read_block(), read_block(), read_entry(), read_from_stream(), read_matrix(), read_matrix(), read_scale(), read_vector(), read_vector(), set_block(), set_data(), and write_to_stream(). ◆ modsel
data from block MODSEL Definition at line 169 of file slha_io.hpp. Referenced by clear(), fill(), get_modsel(), read_modsel(), and set_modsel(). The documentation for this class was generated from the following files: Generated on Sun Apr 6 2025 11:10:38 for FlexibleSUSY by |