![]() |
MaCh3
2.8.0
Reference Guide
|
#include <filesystem>#include "Fitters/Processing/MCMCProcessor.h"#include "Manager/Manager.h"#include "Fitters/Algorithms/MulticanonicalMCMCHandler.h"#include "TSystem.h"#include "TChain.h"#include "TSystemDirectory.h"Go to the source code of this file.
Classes | |
| struct | WindowConfig |
| struct | UmbrellaConfig |
Functions | |
| UmbrellaConfig | parseYAMLConfig (const std::string &filename) |
| YAML-based config parser using yaml-cpp library. More... | |
| double | gaussianWindow (double x, double center, double width) |
| double | vonMisesWindow (double x, double center, double kappa) |
| double | generalisedGaussian2 (double x, double mean, double width) |
| double | GetMulticanonicalWeightGenGaussian (double deltacp, double mean, double width, double multicanonicalBeta) |
| double | summedWindowsWeighted (double x, const std::vector< WindowConfig > &windows, const std::vector< double > &z_values) |
| size_t | calculateWindowCacheSizeBytes (const std::vector< WindowConfig > &windows, const std::vector< std::vector< double >> &samples) |
| std::vector< std::vector< std::vector< double > > > | buildWindowCache (const std::vector< WindowConfig > &windows, const std::vector< std::vector< double >> &samples) |
| std::vector< std::vector< double > > | calcFmatrix (const std::vector< double > &z_current, const std::vector< WindowConfig > &windows, const std::vector< std::vector< double >> &samples, const std::vector< std::vector< std::vector< double >>> &window_cache) |
| std::vector< double > | zSolver (const std::vector< double > &z_current, const std::vector< WindowConfig > &windows, const std::vector< std::vector< double >> &samples, const std::vector< std::vector< std::vector< double >>> &window_cache, [[maybe_unused]] bool verbose=false, [[maybe_unused]] int *total_lines=nullptr) |
| bool | checkConvergence (const std::vector< double > &z_current, const std::vector< double > &z_prev, double tolerance) |
| A few different convergence checks. More... | |
| std::vector< double > | getZDiffs (const std::vector< double > &z_current, const std::vector< double > &z_prev) |
| bool | checkConvergenceStalled (const std::vector< double > &z_current, const std::vector< double > &z_prev, double tolerance) |
| void | LoadFiles (std::vector< std::vector< double >> &samples, UmbrellaConfig &config, std::vector< TFile * > &input_files, std::vector< TTree * > &input_trees) |
| void | DiagnoseUmbrella (const UmbrellaConfig &config, TFile *output_file, const std::vector< std::vector< double >> &z_evolution, TTree *combined_tree) |
| void | UmbrellaSolver (const std::string &config_file) |
| int | main (int argc, char *argv[]) |
Variables | |
| _MaCh3_Safe_Include_Start_ _MaCh3_Safe_Include_End_ bool | debug_mode = false |
Definition in file UmbrellaSolver.cpp.
| std::vector<std::vector<std::vector<double> > > buildWindowCache | ( | const std::vector< WindowConfig > & | windows, |
| const std::vector< std::vector< double >> & | samples | ||
| ) |
Definition at line 175 of file UmbrellaSolver.cpp.
| std::vector<std::vector<double> > calcFmatrix | ( | const std::vector< double > & | z_current, |
| const std::vector< WindowConfig > & | windows, | ||
| const std::vector< std::vector< double >> & | samples, | ||
| const std::vector< std::vector< std::vector< double >>> & | window_cache | ||
| ) |
Definition at line 262 of file UmbrellaSolver.cpp.
| size_t calculateWindowCacheSizeBytes | ( | const std::vector< WindowConfig > & | windows, |
| const std::vector< std::vector< double >> & | samples | ||
| ) |
Definition at line 163 of file UmbrellaSolver.cpp.
| bool checkConvergence | ( | const std::vector< double > & | z_current, |
| const std::vector< double > & | z_prev, | ||
| double | tolerance | ||
| ) |
| bool checkConvergenceStalled | ( | const std::vector< double > & | z_current, |
| const std::vector< double > & | z_prev, | ||
| double | tolerance | ||
| ) |
Definition at line 409 of file UmbrellaSolver.cpp.
| void DiagnoseUmbrella | ( | const UmbrellaConfig & | config, |
| TFile * | output_file, | ||
| const std::vector< std::vector< double >> & | z_evolution, | ||
| TTree * | combined_tree | ||
| ) |
Definition at line 663 of file UmbrellaSolver.cpp.
| double gaussianWindow | ( | double | x, |
| double | center, | ||
| double | width | ||
| ) |
Definition at line 102 of file UmbrellaSolver.cpp.
| double generalisedGaussian2 | ( | double | x, |
| double | mean, | ||
| double | width | ||
| ) |
Definition at line 122 of file UmbrellaSolver.cpp.
| double GetMulticanonicalWeightGenGaussian | ( | double | deltacp, |
| double | mean, | ||
| double | width, | ||
| double | multicanonicalBeta | ||
| ) |
Definition at line 132 of file UmbrellaSolver.cpp.
| std::vector<double> getZDiffs | ( | const std::vector< double > & | z_current, |
| const std::vector< double > & | z_prev | ||
| ) |
Definition at line 399 of file UmbrellaSolver.cpp.
| void LoadFiles | ( | std::vector< std::vector< double >> & | samples, |
| UmbrellaConfig & | config, | ||
| std::vector< TFile * > & | input_files, | ||
| std::vector< TTree * > & | input_trees | ||
| ) |
Definition at line 480 of file UmbrellaSolver.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 1035 of file UmbrellaSolver.cpp.
| UmbrellaConfig parseYAMLConfig | ( | const std::string & | filename | ) |
YAML-based config parser using yaml-cpp library.
Definition at line 45 of file UmbrellaSolver.cpp.
| double summedWindowsWeighted | ( | double | x, |
| const std::vector< WindowConfig > & | windows, | ||
| const std::vector< double > & | z_values | ||
| ) |
Definition at line 144 of file UmbrellaSolver.cpp.
| void UmbrellaSolver | ( | const std::string & | config_file | ) |
Definition at line 730 of file UmbrellaSolver.cpp.
| double vonMisesWindow | ( | double | x, |
| double | center, | ||
| double | kappa | ||
| ) |
Definition at line 107 of file UmbrellaSolver.cpp.
| std::vector<double> zSolver | ( | const std::vector< double > & | z_current, |
| const std::vector< WindowConfig > & | windows, | ||
| const std::vector< std::vector< double >> & | samples, | ||
| const std::vector< std::vector< std::vector< double >>> & | window_cache, | ||
| [[maybe_unused] ] bool | verbose = false, |
||
| [[maybe_unused] ] int * | total_lines = nullptr |
||
| ) |
Normalize z to prevent scale drift and maintain sum(z)=1
Definition at line 325 of file UmbrellaSolver.cpp.
| _MaCh3_Safe_Include_Start_ _MaCh3_Safe_Include_End_ bool debug_mode = false |
Definition at line 17 of file UmbrellaSolver.cpp.