CbmRoot
Loading...
Searching...
No Matches
analysis/common/analysis_tree_converter/app/main.cxx
Go to the documentation of this file.
1/* Copyright (C) 2023 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Frederic Linz [committer], Volker Friese, Jan de Cuveland */
4#include <Logger.h>
5
6#include "Application.h"
7#include "ProgramOptions.h"
8
9using namespace cbm::atconverter;
10
11int main(int argc, char* argv[])
12{
13 LOG(info) << "***** CBM AnalysisTree Converter *****";
14 try {
15 ProgramOptions opt(argc, argv);
16 Application app(opt);
17 app.Exec();
18 }
19 catch (std::exception const& e) {
20 LOG(error) << e.what() << "; terminating.";
21 return EXIT_FAILURE;
22 }
23
24 LOG(info) << "CBM AnalysisTree Converter: Program completed successfully; exiting.";
25 return EXIT_SUCCESS;
26}
int main(int argc, char *argv[])