Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CommonOptions.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CommonOptions.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017-2019 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
15 
16 #include <string>
17 
18 #include <boost/program_options.hpp>
19 
20 namespace ActsExamples {
21 
22 enum class OutputFormat : uint8_t {
23  DirectoryOnly = 0,
24  Root = 1,
25  Csv = 2,
26  Obj = 4,
27  Json = 8,
28  Cbor = 16,
29  Txt = 32,
30  All = std::numeric_limits<uint8_t>::max()
31 };
32 
34 
35 namespace Options {
36 
40 boost::program_options::options_description makeDefaultOptions(
41  const std::string& caption = std::string());
42 
44 void addSequencerOptions(boost::program_options::options_description& opt);
45 
47 void addRandomNumbersOptions(boost::program_options::options_description& opt);
48 
50 void addGeometryOptions(boost::program_options::options_description& opt);
51 
53 void addMaterialOptions(boost::program_options::options_description& opt);
54 
56 void addInputOptions(boost::program_options::options_description& opt);
57 
59 void addOutputOptions(boost::program_options::options_description& opt,
61 
67 boost::program_options::variables_map parse(
68  const boost::program_options::options_description& opt, int argc,
69  char* argv[]);
70 
73  const boost::program_options::variables_map& vm);
74 
77  const boost::program_options::variables_map& vm);
78 
79 // Read the random numbers config.
81  const boost::program_options::variables_map& vm);
82 
83 } // namespace Options
84 } // namespace ActsExamples