CbmRoot
Loading...
Searching...
No Matches
reco/offline/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: Volker Friese [committer], Jan de Cuveland */
4#include "Application.h"
5#include "ProgramOptions.h"
6
7#include <Logger.h>
8
9using namespace cbm::reco::offline;
10
11int main(int argc, char* argv[])
12{
13 LOG(info) << "***** CBM Offline Reconstruction *****";
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 Offline Reconstruction: Program completed successfully; exiting.";
25 return EXIT_SUCCESS;
26}
Main class of the "cbmreco_fairrun" application.
Program options class for the "cbmreco_fairrun" application.
int main(int argc, char *argv[])