EIC 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 
11 #include "Acts/Utilities/Units.hpp"
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()("mat-mapping-collection",
33  po::value<std::string>()->default_value("material-tracks"),
34  "Collection name of the material tracks for reading.")(
35  "mat-mapping-emptybins", po::value<bool>()->default_value(true),
36  "Empty bin correction (recommended). Corrects for vaccuum/emtpy "
37  "assigments.")("mat-mapping-surfaces",
38  po::value<bool>()->default_value(true),
39  "Map the material onto the selected surfaces")(
40  "mat-mapping-volumes", po::value<bool>()->default_value(false),
41  "Map the material into the selected material volumes")(
42  "mat-mapping-volume-stepsize",
43  po::value<float>()->default_value(std::numeric_limits<float>::infinity()),
44  "Step size of the sampling of volume material for the mapping "
45  "(should be smaller than the size of the bins in depth)");
46 }
47 
48 } // namespace Options
49 } // namespace ActsExamples