R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
PedeLauncher.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2023 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13#pragma once
14
15#include "SteerWriter.h"
16#include <boost/asio.hpp>
17
18namespace R3B::Millepede
19{
20 constexpr auto DEFAULT_RES_FILENAME = "millepede.res";
21
23 {
24 public:
25 Launcher() = default;
26 void set_steer_filename(std::string_view filename) { steer_filename_ = filename; }
27 void set_parameter_filename(std::string_view filename) { parameter_file_ = filename; }
28 void set_binary_dir(std::string_view dir) { binary_directory_ = dir; }
29 void launch();
30 void end();
31
32 private:
33 boost::asio::io_service ios_;
34 std::string steer_filename_ = DEFAULT_STEER_FILENAME;
35 std::string parameter_file_;
36 std::string binary_directory_ = ".";
37 std::string executable_ = "pede";
38 };
39} // namespace R3B::Millepede
constexpr auto DEFAULT_STEER_FILENAME
Definition SteerWriter.h:23
void set_binary_dir(std::string_view dir)
void set_steer_filename(std::string_view filename)
void set_parameter_filename(std::string_view filename)
constexpr auto DEFAULT_RES_FILENAME