Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Geant4Options.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Geant4Options.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 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 
10 
12 
13 #include <string>
14 
15 #include <boost/program_options.hpp>
16 
19  using boost::program_options::bool_switch;
21 
22  auto opt = desc.add_options();
23  opt("g4-rnd-seed1", value<unsigned int>()->default_value(287362910),
24  "The first seed of the Geant4 random number generation");
25  opt("g4-rnd-seed2", value<unsigned int>()->default_value(730284537),
26  "The second seed of the Geant4 random number generation");
27  opt("g4-loglevel", value<unsigned int>()->default_value(2),
28  "Screen output log level for Geant4 actions.");
29 
30  opt("g4-seed", value<size_t>()->default_value(12348777),
31  "Random seed for G4 RNG");
32 }