Go to the source code of this file.
|
| int | main (int argc, char const *argv[]) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char const * |
argv[] |
|
) |
| |
Definition at line 4 of file DiagMCMC.cpp.
5 MACH3LOG_WARN(
"Deprecation Warning: Use of the standalone executable will be deprecated in future releases.");
6 MACH3LOG_WARN(
" : you can use 'mach3 diagnostics mcmc' as a direct replacement instead.");
14 std::string arg1 = argv[1];
15 std::string arg2 = argv[2];
16 if(arg1.size() > 5 && arg1.substr(arg1.size() - 5) ==
".root" &&
17 ((arg2.size() > 5 && arg2.substr(arg2.size() - 5) ==
".yaml") ||
18 (arg2.size() > 4 && arg2.substr(arg2.size() - 4) ==
".yml"))){
19 std::swap(argv[1], argv[2]);
24 std::vector<std::string> args(argv, argv + argc);
26 parser->parse_args(args);
28 MACH3LOG_WARN(
"Deprecation Warning: Use of the standalone executable will be deprecated in future releases.");
29 MACH3LOG_WARN(
" : you can use 'mach3 diagnostics mcmc' as a direct replacement instead.");
Module for performing diagnostic analysis on MCMC chains.
MaCh3ArgumentParser * get_parser() override
Get the argument parser for this module.
int Run() override
Execute the MCMC diagnostics.
Extended ArgumentParser with MaCh3-specific functionality.
void insert_default_subcommands(std::vector< std::string > &args, std::size_t pos=0) const
Insert default subcommands into args where no explicit subcommand was given.