![]() |
MaCh3
2.8.0
Reference Guide
|
Module for performing reweighting analysis on MCMC chains. More...
#include <CLI/Modules/ReweightModule.hpp>
Public Member Functions | |
| virtual | ~ReweightModule () |
| Destructor. More... | |
| double | Graph_interpolateNO (TGraph2D *graph, double theta13, double dm32) |
| Function to interpolate 2D graph for Normal Ordering. More... | |
| double | Graph_interpolateIO (TGraph2D *graph, double theta13, double dm32) |
| Function to interpolate 2D graph for Inverted Ordering. More... | |
| double | Graph_interpolate1D (TGraph *graph, double theta13) |
| Function to interpolate 1D graph. More... | |
| bool | GetParameterInfo (MCMCProcessor *processor, const std::string ¶mName, double &mean, double &sigma, bool &isFlat) |
| Get parameter information from MCMCProcessor. More... | |
| void | LoadReweightingSettings (std::vector< ReweightConfig > &reweightConfigs, const YAML::Node &reweight_settings) |
| Load reweighting setting like 1D or 2D from YAML config. More... | |
| double | Get1DWeight (const ReweightConfig &rwConfig, const std::map< std::string, double > ¶mValues) |
| Calculate 1D weight. More... | |
| double | Get2DWeight (const ReweightConfig &rwConfig, const std::map< std::string, double > ¶mValues) |
| Calculate 2D weight. More... | |
| void | ReweightMCMC (const std::string &configFile, const std::string &inputFile) |
| Main executable responsible for reweighting MCMC chains. More... | |
| MaCh3ArgumentParser * | get_parser () override |
| Get the argument parser for this module. More... | |
| int | Run () override |
| Execute the MCMC reweighting analysis. More... | |
Public Member Functions inherited from M3::PluginBase | |
| virtual | ~PluginBase ()=default |
Public Member Functions inherited from M3::IPlugin | |
| virtual | ~IPlugin ()=default |
Additional Inherited Members | |
Protected Attributes inherited from M3::PluginBase | |
| std::unique_ptr< MaCh3ArgumentParser > | m_parser |
| Argument parser for this plugin. More... | |
Module for performing reweighting analysis on MCMC chains.
This module provides diagnostics such as convergence tests, autocorrelation analysis, and batch means calculations to assess the quality of MCMC samples.
Definition at line 67 of file ReweightModule.hpp.
|
virtualdefault |
Destructor.
| double M3::ReweightModule::Get1DWeight | ( | const ReweightConfig & | rwConfig, |
| const std::map< std::string, double > & | paramValues | ||
| ) |
Calculate 1D weight.
Definition at line 291 of file ReweightModule.cpp.
| double M3::ReweightModule::Get2DWeight | ( | const ReweightConfig & | rwConfig, |
| const std::map< std::string, double > & | paramValues | ||
| ) |
Calculate 2D weight.
Definition at line 330 of file ReweightModule.cpp.
|
overridevirtual |
Get the argument parser for this module.
Implements M3::IPlugin.
Definition at line 540 of file ReweightModule.cpp.
| bool M3::ReweightModule::GetParameterInfo | ( | MCMCProcessor * | processor, |
| const std::string & | paramName, | ||
| double & | mean, | ||
| double & | sigma, | ||
| bool & | isFlat | ||
| ) |
Get parameter information from MCMCProcessor.
Definition at line 88 of file ReweightModule.cpp.
| double M3::ReweightModule::Graph_interpolate1D | ( | TGraph * | graph, |
| double | theta13 | ||
| ) |
Function to interpolate 1D graph.
Definition at line 59 of file ReweightModule.cpp.
| double M3::ReweightModule::Graph_interpolateIO | ( | TGraph2D * | graph, |
| double | theta13, | ||
| double | dm32 | ||
| ) |
Function to interpolate 2D graph for Inverted Ordering.
Definition at line 33 of file ReweightModule.cpp.
| double M3::ReweightModule::Graph_interpolateNO | ( | TGraph2D * | graph, |
| double | theta13, | ||
| double | dm32 | ||
| ) |
Function to interpolate 2D graph for Normal Ordering.
Definition at line 9 of file ReweightModule.cpp.
| void M3::ReweightModule::LoadReweightingSettings | ( | std::vector< ReweightConfig > & | reweightConfigs, |
| const YAML::Node & | reweight_settings | ||
| ) |
Load reweighting setting like 1D or 2D from YAML config.
Definition at line 105 of file ReweightModule.cpp.
| void M3::ReweightModule::ReweightMCMC | ( | const std::string & | configFile, |
| const std::string & | inputFile | ||
| ) |
Main executable responsible for reweighting MCMC chains.
| inputFile | MCMC Chain file path |
| configFile | Config file with reweighting settings |
| inputFile | MCMC Chain file path |
| configFile | Config file with reweighting settings |
Definition at line 362 of file ReweightModule.cpp.
|
overridevirtual |
Execute the MCMC reweighting analysis.
Implements M3::IPlugin.
Definition at line 554 of file ReweightModule.cpp.