Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MaterialMappingOptions.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MaterialMappingOptions.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019-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 
9 #pragma once
10 
13 
14 #include <iostream>
15 
16 #include <boost/program_options.hpp>
17 
18 namespace po = boost::program_options;
19 
20 namespace ActsExamples {
21 
22 namespace Options {
23 
30 template <typename aopt_t>
31 void addMaterialMappingOptions(aopt_t& opt) {
32  opt.add_options()(
33  "mat-mapping-emptybins", po::value<bool>()->default_value(true),
34  "Empty bin correction (recommended). Corrects for vacuum/empty "
35  "assignments.")("mat-mapping-surfaces",
36  po::value<bool>()->default_value(true),
37  "Map the material onto the selected surfaces")(
38  "mat-mapping-volumes", po::value<bool>()->default_value(false),
39  "Map the material into the selected material volumes")(
40  "mat-mapping-volume-stepsize",
41  po::value<float>()->default_value(std::numeric_limits<float>::infinity()),
42  "Step size of the sampling of volume material for the mapping "
43  "(should be smaller than the size of the bins in depth)")(
44  "mat-mapping-read-surfaces",
45  po::value<bool>()->default_value(po::value<bool>()->default_value(false)),
46  "Read the surface associated with each material hit, can be used to "
47  "speed up the mapping. "
48  "The mapping needs to have been performed at least once for the surface "
49  "information to be there.");
50 }
51 
52 } // namespace Options
53 } // namespace ActsExamples