Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DigitizationOptions.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file DigitizationOptions.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020-2021 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 
17 
18 #include <numeric>
19 #include <string>
20 
21 #include <boost/program_options.hpp>
22 
24  using boost::program_options::bool_switch;
26 
27  auto opt = desc.add_options();
28  opt("digi-config-file", value<std::string>()->default_value(""),
29  "Configuration (.json) file for digitization description, overwrites "
30  "smearing options input on command line.");
31  opt("dump-digi-config", value<std::string>()->default_value(""),
32  "Path to .json file in which to dump digitization configuration.");
33  opt("digi-merge", bool_switch(), "Turn on hit merging");
34  opt("digi-merge-nsigma", value<double>()->default_value(1.0),
35  "Defines how close smeared parameters have to be when merging");
36  opt("digi-merge-common-corner", bool_switch(),
37  "Merge clusters which share a corner (8-cell connectivity)");
38 }