ini_functions.cpp
Go to the documentation of this file.
99 int copy_parameters(model_functor& donor, model_functor& donee, bool add_friend, str model, str model_x) 194 int register_conditional_dependency(module_functor_common& f, const str& dep, const str& dep_type) 225 int register_backend_conditional_dependency(module_functor_common& f, const str& req, const str& be, 505 type_to_vec_of_mass_es["~e-"] = initVector<str>("~e-_1", "~e-_2", "~e-_3", "~e-_4", "~e-_5", "~e-_6"); 517 type_to_vec_of_gauge_es["~u"] = initVector<str>("~u_L", "~c_L", "~t_L", "~u_R", "~c_R", "~t_R"); 518 type_to_vec_of_gauge_es["~d"] = initVector<str>("~d_L", "~s_L", "~b_L", "~d_R", "~s_R", "~b_R"); 519 type_to_vec_of_gauge_es["~e-"] = initVector<str>("~e_L", "~mu_L", "~tau_L", "~e_R", "~mu_R", "~tau_R"); int set_model_name(model_functor &, str) Set the model name in a primary model functor. Definition: ini_functions.cpp:88 int register_conditional_dependency(module_functor_common &, const str &, const str &) Register a conditional dependency of a module function. Definition: ini_functions.cpp:194 int register_model_singly(module_functor_common &, const str &) Register that a module function is compatible with a single model. Definition: ini_functions.cpp:157 std::map< str, std::vector< str > > init_family_state_to_gauge_state() maps directly from family string to left_right gauge_pairs helps us reuse other routines that take st... Definition: ini_functions.cpp:440 void setDependency(str, str, void(*)(functor *, module_functor_common *), str purpose="") Add and activate unconditional dependencies. Definition: functors.cpp:1045 safe_ptr< Options > getSubCaps() Return a safe pointer to the subcaps that this functor realises it is supposed to facilitate downstre... Definition: functors.cpp:407 int register_function_nesting(module_functor_common &, omp_safe_ptr< long long > &, const str &, const str &) Register the fact that a module function needs to run nested. Definition: ini_functions.cpp:144 void setAllowedModel(str model) Add a model to the internal list of models for which this functor is allowed to be used... Definition: functors.cpp:450 void setAllowedModelGroupCombo(str groups) Add a combination of model groups to the internal list of combinations for which this functor is allo... Definition: functors.cpp:511 int register_model_combination(module_functor_common &, const str &) Register a combination of models as allowed with a functor. Definition: ini_functions.cpp:248 const std::map< str, pair_string_ints > familystate_label Definition: mssm_slhahelp.cpp:38 A safe pointer that throws an informative error if you try to dereference it when nullified... Definition: util_types.hpp:175 void setBackendReq(str, str, str, str, void(*)(functor *)) Add an unconditional backend requirement The info gets updated later if this turns out to be contitio... Definition: functors.cpp:1143 void addParameter(str parname) Function for adding a new parameter to the map inside the ModelParameters object. ... Definition: functors.cpp:1775 void makeBackendMatchingRule(str tag) Add one or more rules for forcing backends reqs with the same tags to always be resolved from the sam... Definition: functors.cpp:1287 std::pair< str, pair_ints > pair_string_ints Definition: ini_functions.hpp:118 Micro function useful from all sorts of other initialisation codes. void makeBackendOptionRule(str, str) Add a rule for dictating which backends can be used to fulfill which backend requirements. Definition: functors.cpp:1222 int register_dependency(module_functor_common &, const str &, const str &, void(*)(functor *, module_functor_common *)) Register a dependency of a module function. Definition: ini_functions.cpp:182 safe_ptr< Options > getOptions() Return a safe pointer to the options that this functor is supposed to run with (e.g. from the ini file). Definition: functors.cpp:375 void setConditionalDependency(str, str) Add conditional dependency-type pairs in advance of later conditions. Definition: functors.cpp:1054 int register_function(module_functor_common &, bool, safe_ptr< bool > *, safe_ptr< Options > &, safe_ptr< std::set< sspair >> &, safe_ptr< Options > &) Register a function with a module. Definition: ini_functions.cpp:125 int add_parameter(model_functor &, str) Add a new parameter to a primary model functor. Definition: ini_functions.cpp:77 Functor derived class for module functions. Definition: functors.hpp:399 std::map< p_int_string, std::vector< str > > init_type_family_to_gauge_states() map to obtain left_right gauge_pairs from state info helps us reuse other routiones with string argum... Definition: ini_functions.cpp:420 A safe pointer designed to point at an array, and return the entry in that array corresponding to the... Definition: util_types.hpp:230 virtual void setLoopManagerCapType(str cap, str t) Setter for specifying the capability required of a manager functor, if it is to run this functor nest... Definition: functors.cpp:914 Functions for triggering initialisation code. const std::map< p_int_string, std::vector< str > > type_family_to_gauge_states Definition: mssm_slhahelp.cpp:39 std::map< str, p_int_string > init_mass_label_to_index_type() map from mass eigenstate strings to string, index pairs Definition: ini_functions.cpp:318 const std::map< str, p_int_string > gauge_label_to_index_type Known maps filled at initialisation. Definition: mssm_slhahelp.cpp:36 Functor class definitions. int apply_backend_matching_rule(module_functor_common &, const str &) Apply a backend-matching rule. Definition: ini_functions.cpp:259 void setModelConditionalDependency(str, str, void(*)(functor *, module_functor_common *)) Add a model conditional dependency for multiple models. Definition: functors.cpp:1117 int register_module_with_log(str) Create a log tag for a new module. Definition: ini_functions.cpp:111 void donateParameters(model_functor &receiver) Function for handing over parameter identities to another model_functor. Definition: functors.cpp:1787 void add_friend(const str &model, const str &newfriend) Add a friend, and all its friends and ancestors, to a model's list of friends. Definition: models.cpp:189 int apply_backend_option_rule(module_functor_common &, const str &, const str &) Apply a backend option rule. Definition: ini_functions.cpp:270 int register_backend_conditional_dependency(module_functor_common &, const str &, const str &, const str &, const str &, void(*)(functor *, module_functor_common *)) Register a backend-conditional dependency of a module function. Definition: ini_functions.cpp:225 GAMBIT backend info object accessor function. string model_name Definition: generate_raster_scan_settings.py:75 const std::map< str, p_int_string > mass_label_to_index_type Definition: mssm_slhahelp.cpp:37 int add_model(str, str) Runtime addition of model to GAMBIT model database. Definition: ini_functions.cpp:66 int pass_default_to_backendinfo(str, str) Helper function for passing default backend information at initialisation. Definition: ini_functions.cpp:55 const std::map< str, std::vector< str > > type_to_vec_of_mass_es Definition: mssm_slhahelp.cpp:42 std::map< str, std::vector< str > > init_type_to_vec_of_mass_es() map from string representing type (ie up-squarks, down-squarks or charged sleptons) to appropriate se... Definition: ini_functions.cpp:499 safe_ptr< std::set< sspair > > getDependees() Return a safe pointer to the vector of all capability,type pairs of functors arranged downstream of t... Definition: functors.cpp:413 const std::map< str, std::vector< str > > gauge_es_to_family_states Definition: mssm_slhahelp.cpp:41 void setBackendConditionalDependency(str, str, str, str, void(*)(functor *, module_functor_common *)) Add a backend conditional dependency for multiple backend versions. Definition: functors.cpp:1075 int copy_parameters(model_functor &, model_functor &, bool, str="", str="") Tell a model functor to take its parameter definition from another model functor. ... Definition: ini_functions.cpp:99 int register_model_conditional_dependency(module_functor_common &, const str &, const str &, void(*)(functor *, module_functor_common *)) Register a model-conditional dependency of a module function. Definition: ini_functions.cpp:213 const std::map< str, std::vector< str > > type_to_vec_of_gauge_es Definition: mssm_slhahelp.cpp:43 std::map< str, std::vector< str > > init_type_to_vec_of_gauge_es() map from string representing type (ie up-squarks, down-squarks or charged sleptons) to appropriate se... Definition: ini_functions.cpp:513 void setModelGroup(str group, str contents) Add a model group definition to the internal list of model groups. Definition: functors.cpp:501 Header for logging classes. const std::map< str, std::vector< str > > family_state_to_gauge_state Definition: mssm_slhahelp.cpp:40 void setModelName(str model_name) Function for setting the model name for a ModelParameters object. Mainly for better error messages... Definition: functors.cpp:1781 virtual void setCanBeLoopManager(bool canManage) Setter for specifying whether this is permitted to be a manager functor, which runs other functors ne... Definition: functors.cpp:909 virtual omp_safe_ptr< long long > iterationPtr() Return a safe pointer to the iteration number in the loop in which this functor runs. Definition: functors.cpp:902 std::map< str, pair_string_ints > init_familystate_label() map to extract info from family state Definition: ini_functions.cpp:350 int register_model_parameter_dependency(module_functor_common &, const str &, const str &, void(*resolver)(functor *, module_functor_common *)) Register a model parameters dependency of a module function. Definition: ini_functions.cpp:205 virtual safe_ptr< bool > loopIsDone() Return a safe pointer to the flag indicating that a loop managed by this functor should break now... Definition: functors.cpp:880 std::map< str, p_int_string > init_gauge_label_to_index_type() map from gauge eigenstate strings to string, index pairs Definition: ini_functions.cpp:285 int register_backend_requirement(module_functor_common &, const str &, const str &, const str &, bool, const str &, const str &, void(*)(functor *)) Register a backend requirement for a module function. Definition: ini_functions.cpp:168 void declare_model(const str &, const str &) Add a new model to the model database. Definition: models.cpp:151 type_equivalency & typeEquivalencies() Backend info accessor function. Definition: equivalency_singleton.cpp:25 int register_model_group(module_functor_common &, const str &, const str &) Register a model group with a functor. Definition: ini_functions.cpp:237 GAMBIT model claw object accessor function. int add_equivrelation(str, str) Helper function for adding a type equivalency at initialisation. Definition: ini_functions.cpp:44 std::map< str, std::vector< str > > init_gauge_es_to_family_states() maps directly from gauge_es string to familystates helps us reuse other routines that take string arg... Definition: ini_functions.cpp:470 Definition: log_tags.hpp:46 |