MaCh3  2.8.0
Reference Guide
DiagModule.cpp
Go to the documentation of this file.
2 
3 namespace M3{
4 
5 DiagModule::~DiagModule() = default;
6 
8  m_parser = std::make_unique<MaCh3ArgumentParser>("diagnostics", "1.0", argparse::default_arguments::help);
9  m_parser->add_description("MCMC diagnostics subcommand.");
10  m_parser->add_subparser(*m_llhMapModule.get_parser());
11  m_parser->add_subparser(*m_diagMCMCModule.get_parser());
12  return m_parser.get();
13 }
14 
16  if (m_parser->is_subcommand_used("llhmap")) return m_llhMapModule.Run();
17  if (m_parser->is_subcommand_used("mcmc")) return m_diagMCMCModule.Run();
18  return 0;
19 }
20 } // namespace M3
MaCh3ArgumentParser * get_parser() override
Get the argument parser for this module.
int Run() override
Execute the MCMC diagnostics.
virtual ~DiagModule()
Destructor.
int Run() override
Execute the MCMC diagnostics.
Definition: DiagModule.cpp:15
LLHMapModule m_llhMapModule
Definition: DiagModule.hpp:26
DiagMCMCModule m_diagMCMCModule
Definition: DiagModule.hpp:27
MaCh3ArgumentParser * get_parser() override
Get the argument parser for this module.
Definition: DiagModule.cpp:7
MaCh3ArgumentParser * get_parser() override
Get the argument parser for this module.
int Run() override
Execute the MCMC diagnostics.
Extended ArgumentParser with MaCh3-specific functionality.
Definition: m3argparse.hpp:17
std::unique_ptr< MaCh3ArgumentParser > m_parser
Argument parser for this plugin.
Definition: plugin.hpp:47
Main namespace for MaCh3 software.