int main()
Definition: mainEWinos_bino_winos_higgsinos.cc:16
factory_defs.hpp
Go to the documentation of this file.
73 class Function_Base <ret (args...)> : public enable_shared_from_this<Function_Base <ret (args...)>> 82 int myRealRank; // the actual MPI rank of the process, use for process dependent setup etc. getRank() is for printing only. 101 Function_Base(double offset = 0.) : myRealRank(0), purpose_offset(offset), use_alternate_min_LogL(false), _scanner_can_quit(false) 128 if(Gambit::Printers::auto_increment()) // This is slightly hacky, but I need to be able to disable the auto-incrementing in the post-processor scanner. Need to manually set the point ID. 147 int getRank() const {return getPrinter().getRank();} // Printer controls the 'virtual' rank. Lets us re-print data from a point originally generated by another rank. 148 void setRank(int r) {getPrinter().setRank(r);} // Needed by postprocessor to adjust 'virtual' rank; generally should not use otherwise. 152 void setPtID(unsigned long long int pID) {Gambit::Printers::get_point_id() = pID;} // Needed by postprocessor; should not use otherwise. 153 unsigned long long int getNextPtID() const {return getPtID()+1;} // Needed if PtID required by plugin *before* operator() is called. See e.g. GreAT plugin. 182 Gambit::Scanner::Plugins::plugin_info.save_alt_min_LogL_state(); // Write a file to disk so that upon startup we can check if the alternate min LogL is supposed to be used. 258 scan_err << "scan_ptr and the functor return by \"get functor\" do not have the same type." << scan_end; 275 scan_err << "scan_ptr and the functor return by \"get functor\" do not have the same type." << scan_end; 350 (*this)->getPrinter().enable(); // Make sure printer is re-enabled (might have been disabled by invalid point error) 355 double operator()(std::unordered_map<std::string, double> &map, const std::vector<double> &vec = std::vector<double>()) 366 (*this)->getPrinter().enable(); // Make sure printer is re-enabled (might have been disabled by invalid point error)
std::vector< std::string > getParameters() Definition: factory_defs.hpp:144 void tell_scanner_early_shutdown_in_progress() Tell ScannerBit that we are aborting the scan and it should tell the scanner plugin to stop... Definition: factory_defs.hpp:156 void setPrinter(printer *p) Definition: factory_defs.hpp:139 scan_ptr< ret(args...)> & operator=(s_ptr &&in) Definition: factory_defs.hpp:288 void save_alt_min_LogL_state() const Save persistence file to record that the alternative min_LogL value is in use for this scan... Definition: plugin_loader.cpp:646 void setPrior(Priors::BasePrior *p) Definition: factory_defs.hpp:140 bool check_for_switch_to_alternate_min_LogL() Checks if some process has triggered the 'switch_to_alternate_min_LogL' function. ... Definition: factory_defs.hpp:186 declaration for scanner module Functor that deletes a Function_Base functor. Definition: factory_defs.hpp:65 STL namespace. Pure Base class of a plugin Factory function. Definition: factory_defs.hpp:373 Function_Deleter(const Function_Deleter< ret(args...)> &in) Definition: factory_defs.hpp:226 void setPurpose(const std::string p) Definition: factory_defs.hpp:138 std::vector< std::string > get_names() const Definition: factory_defs.hpp:329 std::vector< std::string > getShownParameters() Definition: factory_defs.hpp:145 EXPORT_SYMBOLS bool & auto_increment() Global flag to indicate if auto-incrementing of the PointID by the likelihood container is allowed... Definition: printer_id_tools.cpp:20 EXPORT_SYMBOLS unsigned long long int & get_point_id() Returns unigue pointid;. Definition: printer_id_tools.cpp:13 printer & getPrinter() const Definition: factory_defs.hpp:142 void setPurposeOffset(double os) Definition: factory_defs.hpp:150 Priors::BasePrior * prior Definition: factory_defs.hpp:80 Function_Deleter(void *in) Definition: factory_defs.hpp:224 Function_Base< ret(args...)> * obj Definition: factory_defs.hpp:221 void set_early_shutdown_in_progress() Definition: plugin_loader.hpp:192 GAMBIT signal handling functions. virtual void deleter(Function_Base< ret(args...)> *in) const Definition: factory_defs.hpp:93 unsigned long long int getNextPtID() const Definition: factory_defs.hpp:153 Function_Base(double offset=0.) Definition: factory_defs.hpp:101 Priors::BasePrior & getPrior() Definition: factory_defs.hpp:143 bool _scanner_can_quit Variable to specify whether the scanner plugin should control the shutdown process. Definition: factory_defs.hpp:91 ret operator()(const args &... params) Definition: factory_defs.hpp:295 scan_ptr(const scan_ptr &in) Definition: factory_defs.hpp:248 unsigned long long int getPtID() const Definition: factory_defs.hpp:151 scan_ptr< ret(args...)> & operator=(const scan_ptr< ret(args...)> &in) Definition: factory_defs.hpp:281 std::unordered_map< std::string, double > transform(const std::vector< double > &vec) Definition: factory_defs.hpp:323 std::string purpose Definition: factory_defs.hpp:81 void set_calculating(bool b) Definition: plugin_loader.hpp:191 #define scan_err Defined to macros to output errors in the form: scan_err << "error" << scan_end; scan_warn << "warnin... Definition: scanner_utils.hpp:54 bool scanner_can_quit() Check whether likelihood container is supposed to control early shutdown of scan. ... Definition: factory_defs.hpp:168 void disable_external_shutdown() Tells log-likelihood function (defined by driver code) not to use its own shutdown system (e... Definition: factory_defs.hpp:165 printer & getPrinter() Definition: factory_defs.hpp:141 printer * main_printer Definition: factory_defs.hpp:79 virtual ~Function_Base() Definition: factory_defs.hpp:123 Utility Functions for the Gambit Scanner. void operator()(Function_Base< ret(args...)> *in) Definition: factory_defs.hpp:233 Generic function base used by the scanner. Can be Likelihood, observables, etc. Definition: factory_defs.hpp:61 Generic ptr that takes ownership of a Function_Base. This is how a plugin will call a function... Definition: factory_defs.hpp:69 int getRank() const Definition: factory_defs.hpp:147 double operator()(const std::vector< double > &vec) Definition: factory_defs.hpp:339 std::unordered_map< std::string, double > map Definition: factory_defs.hpp:315 double getPurposeOffset() const Definition: factory_defs.hpp:149 virtual std::vector< std::string > getShownParameters() const Definition: base_prior.hpp:75 A simple C++ wrapper for the MPI C bindings. scan_ptr(scan_ptr &&in) Definition: factory_defs.hpp:249 std::vector< std::string > getParameters() const Definition: base_prior.hpp:83 void setRank(int r) Definition: factory_defs.hpp:148 bool use_alternate_min_LogL Variable to store state of affairs regarding use of alternate min_LogL. Definition: factory_defs.hpp:88 std::vector< double > inverse_transform(const std::unordered_map< std::string, double > &physical) Definition: factory_defs.hpp:334 void clear_alt_min_LogL_state() const Delete the persistence file if it exists (e.g. when starting a new run) Definition: plugin_loader.cpp:654 Loader singleton class for scanner plugins. shared_ptr< Function_Base< ret(args...) > > s_ptr Definition: factory_defs.hpp:244 scan_ptr< ret(args...)> & operator=(void *in) Definition: factory_defs.hpp:262 void switch_to_alternate_min_LogL() Tell log-likelihood function (defined by driver code) to switch to an alternate value for the minimum... Definition: factory_defs.hpp:172 bool check_alt_min_LogL_state() const Check persistence file to see if we should be using the alternative min_LogL value. Definition: plugin_loader.cpp:665 int myRealRank Definition: factory_defs.hpp:82 EXPORT_SYMBOLS pluginInfo plugin_info Access Functor for plugin info. Definition: plugin_loader.cpp:706 scan_ptr(void *in) Definition: factory_defs.hpp:250 double operator()(std::unordered_map< std::string, double > &map, const std::vector< double > &vec=std::vector< double >()) Definition: factory_defs.hpp:355 std::string getPurpose() const Definition: factory_defs.hpp:146 virtual const std::type_info & type() const Definition: factory_defs.hpp:98 void setPtID(unsigned long long int pID) Definition: factory_defs.hpp:152 double purpose_offset Variable to store some offset to be removed when printing out the return value of the function... Definition: factory_defs.hpp:85 |