gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
MC_convergence.hpp
Go to the documentation of this file.
1 // GAMBIT: Global and Modular BSM Inference Tool
2 // *********************************************
21 
22 #ifndef __MC_convergence_hpp__
23 #define __MC_convergence_hpp__
24 
26 
27 namespace Gambit
28 {
29  namespace ColliderBit
30  {
31 
33  class AnalysisContainer;
34 
37  {
38  double target_stat;
42  };
43 
46  {
47  private:
48 
51 
53  std::vector<int>* n_signals;
54 
56  int n_threads;
57 
59  bool converged;
60 
62  static std::map<const MC_convergence_checker* const, bool> convergence_map;
63 
64  public:
65 
68 
71 
73  void init(const convergence_settings&);
74 
76  void set_settings(const convergence_settings&);
77 
79  void clear();
80 
82  void update(const AnalysisContainer&);
83 
85  bool achieved(const AnalysisContainer& ac);
86  };
87 
88 
89  }
90 }
91 
92 #endif
General small utility classes, typedefs, etc.
int n_threads
Total number of threads that the checker is configured to deal with.
const convergence_settings * _settings
A pointer to the convergence settings to use.
Helper class for testing for convergence of analyses.
static std::map< const MC_convergence_checker *const, bool > convergence_map
A map containing pointers to all instances of this class.
std::vector< int > * n_signals
Pointer to an array holding the signal counts on each thread.
Type for holding Monte Carlo convergence settings.
A class for managing collections of Analysis instances.
TODO: see if we can use this one:
Definition: Analysis.hpp:33
bool converged
Flag indicating if everything tracked by this instance is converged.