![]() |
MaCh3
2.6.0
Reference Guide
|
This executable allow to reweight MCMC Chain, such technique is used to study impact of different priors without rerunning MCMC. More...
#include "Manager/Manager.h"#include "Fitters/MCMCProcessor.h"#include "TFile.h"#include "TTree.h"#include "TChain.h"#include "TMath.h"#include "TGraph2D.h"#include "TGraph.h"#include <memory>#include <vector>#include <string>#include <cmath>#include <fstream>#include <map>Go to the source code of this file.
Classes | |
| struct | ReweightConfig |
| Structure to hold reweight configuration. More... | |
Namespaces | |
| M3 | |
| Main namespace for MaCh3 software. | |
Enumerations | |
| enum | M3::kReweightType { M3::kGaussian , M3::kGaussian , M3::kTGraph , M3::kTGraph2D , M3::kReweightTypes } |
| Types of chain reweighting available. More... | |
Functions | |
| 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... | |
| int | main (int argc, char *argv[]) |
| Main function. More... | |
This executable allow to reweight MCMC Chain, such technique is used to study impact of different priors without rerunning MCMC.
Definition in file ReweightMCMC.cpp.
| double Get1DWeight | ( | const ReweightConfig & | rwConfig, |
| const std::map< std::string, double > & | paramValues | ||
| ) |
Calculate 1D weight.
Definition at line 349 of file ReweightMCMC.cpp.
| double Get2DWeight | ( | const ReweightConfig & | rwConfig, |
| const std::map< std::string, double > & | paramValues | ||
| ) |
Calculate 2D weight.
Definition at line 389 of file ReweightMCMC.cpp.
| bool GetParameterInfo | ( | MCMCProcessor * | processor, |
| const std::string & | paramName, | ||
| double & | mean, | ||
| double & | sigma, | ||
| bool & | isFlat | ||
| ) |
Get parameter information from MCMCProcessor.
Definition at line 151 of file ReweightMCMC.cpp.
| double Graph_interpolate1D | ( | TGraph * | graph, |
| double | theta13 | ||
| ) |
Function to interpolate 1D graph.
Definition at line 121 of file ReweightMCMC.cpp.
| double Graph_interpolateIO | ( | TGraph2D * | graph, |
| double | theta13, | ||
| double | dm32 | ||
| ) |
Function to interpolate 2D graph for Inverted Ordering
Definition at line 94 of file ReweightMCMC.cpp.
| double Graph_interpolateNO | ( | TGraph2D * | graph, |
| double | theta13, | ||
| double | dm32 | ||
| ) |
Function to interpolate 2D graph for Normal Ordering.
Definition at line 69 of file ReweightMCMC.cpp.
| void LoadReweightingSettings | ( | std::vector< ReweightConfig > & | reweightConfigs, |
| const YAML::Node & | reweight_settings | ||
| ) |
Load reweighting setting like 1D or 2D from YAML config.
Definition at line 170 of file ReweightMCMC.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Main function.
Definition at line 603 of file ReweightMCMC.cpp.
| void 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 |
Definition at line 422 of file ReweightMCMC.cpp.