21 int main(
int argc,
char *argv[]) {
26 std::vector<std::string> MCMCFile;
27 if (argc == 1 || argc == 2)
30 MACH3LOG_ERROR(
"./RHat Ntoys MCMCchain_1.root MCMCchain_2.root MCMCchain_3.root ... [how many you like]");
34 int Ntoys = atoi(argv[1]);
37 for (
int i = 2; i < argc; i++)
39 MCMCFile.push_back(std::string(argv[i]));
46 MACH3LOG_ERROR(
"You specified {} specify larger greater than 0", Ntoys);
52 MACH3LOG_WARN(
"Gelman is going to be sad :(. He suggested you should use more than one chain (at least 4). Code works fine for one chain, however, estimator might be biased.");
53 MACH3LOG_WARN(
"Multiple chains are more likely to reveal multimodality and poor adaptation or mixing:");
55 MACH3LOG_INFO(
"Diagnosing {} chains, with {} toys", Nchains, Ntoys);
57 auto RHatCalc = std::make_unique<RHatCalculator>(
true, MCMCFile, Ntoys);
58 RHatCalc->RunDiagnostic();
void SetMaCh3LoggerFormat()
Set messaging format of the logger.
int main(int argc, char *argv[])
Custom exception class used throughout MaCh3.
void MaCh3Welcome()
KS: Prints welcome message with MaCh3 logo.