CbmRoot
Loading...
Searching...
No Matches
reco/offline/app/Application.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] */
4
9
10#include "Application.h"
11
12#include "Config.h"
13
14using std::string;
15
17{
18
19 // ----- Constructor ----------------------------------------------------
21 // --------------------------------------------------------------------------
22
23
24 // ----- Run the reconstruction -----------------------------------------
26 {
27
28 // --- Use program options
29 fRun.SetOutput(fOpt.OutputFile().c_str());
30 fRun.SetRawFile(fOpt.RawFile().c_str());
31 fRun.SetParFile(fOpt.ParFile().c_str());
32 fRun.SetGeoSetupTag(fOpt.SetupTag().c_str());
33 if (fOpt.Overwrite()) fRun.AllowOverwrite();
34
35 // --- Read configuration from YAML file
37 config.LoadYaml(fOpt.ConfigFile());
38 fRun.SetConfig(config);
39
40 // --- Execute reconstruction run
41 fRun.Exec();
42 }
43 // --------------------------------------------------------------------------
44
45} // namespace cbm::reco::offline
ProgramOptions const & fOpt
Program options object.
Application(ProgramOptions const &opt)
Standard constructor, initialises the application.
void LoadYaml(const std::string &filename)
Load from YAML file.