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 GetPenaltyTerm.cpp.
5 MACH3LOG_WARN(
"Deprecation Warning: Use of the standalone executable will be deprecated in future releases.");
6 MACH3LOG_WARN(
" : you can use 'mach3 penaltyterm' as a direct replacement instead.");
7 argv[0] =
"penaltyterm";
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]);
23 parser->parse_args(argc, argv);
25 MACH3LOG_WARN(
"Deprecation Warning: Use of the standalone executable will be deprecated in future releases.");
26 MACH3LOG_WARN(
" : you can use 'mach3 penaltyterm' as a direct replacement instead.");
Module for extracting specific penalty terms from MCMC chains.
MaCh3ArgumentParser * get_parser() override
Get the argument parser for this module.
int Run() override
Execute the penalty term extraction.
Extended ArgumentParser with MaCh3-specific functionality.