CbmRoot
Loading...
Searching...
No Matches
analysis/common/analysis_tree_converter/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: Frederic Linz [committer], Volker Friese */
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.SetTraFiles(fOpt.TraFiles());
31 fRun.SetRawFile(fOpt.RawFile().c_str());
32 fRun.SetParFile(fOpt.ParFile().c_str());
33 fRun.SetRecoFile(fOpt.RecoFile().c_str());
34 fRun.SetGeoSetupTag(fOpt.SetupTag().c_str());
35 if (fOpt.Overwrite()) fRun.AllowOverwrite();
36
37 // --- Read configuration from YAML file
39 config.LoadYaml(fOpt.ConfigFile());
40 fRun.SetConfig(config);
41
42 // --- Execute reconstruction run
43 fRun.Exec();
44 }
45 // --------------------------------------------------------------------------
46
47} // namespace cbm::atconverter
Application(ProgramOptions const &opt)
Standard constructor, initialises the application.
void LoadYaml(const std::string &filename)
Load from YAML file.