83 double& mean,
double& sigma,
bool&
isFlat);
86 void LoadReweightingSettings(std::vector<ReweightConfig>& reweightConfigs,
const YAML::Node& reweight_settings);
90 const std::map<std::string, double>& paramValues);
94 const std::map<std::string, double>& paramValues);
102 void ReweightMCMC(
const std::string& configFile,
const std::string& inputFile);
#define _MaCh3_Safe_Include_Start_
KS: Avoiding warning checking for headers.
#define _MaCh3_Safe_Include_End_
bool isFlat(TSpline3_red *&spl)
CW: Helper function used in the constructor, tests to see if the spline is flat.
Extended ArgumentParser with MaCh3-specific functionality.
Base class for core modules in MaCh3.
Module for performing reweighting analysis on MCMC chains.
void ReweightMCMC(const std::string &configFile, const std::string &inputFile)
Main executable responsible for reweighting MCMC chains.
double Get1DWeight(const ReweightConfig &rwConfig, const std::map< std::string, double > ¶mValues)
Calculate 1D weight.
double Graph_interpolateIO(TGraph2D *graph, double theta13, double dm32)
Function to interpolate 2D graph for Inverted Ordering.
double Get2DWeight(const ReweightConfig &rwConfig, const std::map< std::string, double > ¶mValues)
Calculate 2D weight.
double Graph_interpolate1D(TGraph *graph, double theta13)
Function to interpolate 1D graph.
void LoadReweightingSettings(std::vector< ReweightConfig > &reweightConfigs, const YAML::Node &reweight_settings)
Load reweighting setting like 1D or 2D from YAML config.
bool GetParameterInfo(MCMCProcessor *processor, const std::string ¶mName, double &mean, double &sigma, bool &isFlat)
Get parameter information from MCMCProcessor.
MaCh3ArgumentParser * get_parser() override
Get the argument parser for this module.
virtual ~ReweightModule()
Destructor.
double Graph_interpolateNO(TGraph2D *graph, double theta13, double dm32)
Function to interpolate 2D graph for Normal Ordering.
int Run() override
Execute the MCMC reweighting analysis.
Class responsible for processing MCMC chains, performing diagnostics, generating plots,...
Main namespace for MaCh3 software.
kReweightType
Types of chain reweighting available.
@ kReweightTypes
This only enumerates.
@ kTGraph
Calculates Likelihood based on TGraph.
@ kGaussian
Assumes gaussian prior.
@ kTGraph2D
Calculates Likelihood based on TGraph2D.
Plugin interface and registration macros for MaCh3.
Structure to hold reweight configuration.
std::vector< std::vector< double > > newPriorValues
new [mean, sigma] pairs
std::unique_ptr< TGraph2D > graph_IO
Inverted Ordering graph.
std::string key
The YAML key for this reweight.
std::vector< std::string > paramNames
Parameter names.
M3::kReweightType type
"Gaussian", "TGraph2D"
std::string graphName
Graph name in the ROOT file.
std::vector< bool > flatPrior
std::string fileName
ROOT file containing graph data.
std::unique_ptr< TGraph > graph_1D
1D interpolation graph.
std::vector< std::vector< double > > oldPriorValues
new [mean, sigma] pairs
std::unique_ptr< TGraph2D > graph_NO
Normal Ordering graph.
std::string weightBranchName
Output weight branch name.
std::string hierarchyType
"NO", "IO", or "auto"