gdynamicDigitization
Loading...
Searching...
No Matches
gdynamicdigitization_options.cc
Go to the documentation of this file.
1
8
11#include "gfactory_options.h"
13#include "gRunDataCollection.h"
14
15namespace gdynamicdigitization {
16
18 // Create an option container scoped to the digitization logger name.
20
21 // When enabled, hits with exactly zero deposited energy are still recorded.
22 goptions.defineSwitch("recordZeroEdep", "Record particle even if they do not deposit energy in the sensitive volumes");
23
24 // When set, overrides the per-system geometry variation used to load digitization
25 // constants and translation tables. Otherwise each routine follows its gsystem variation.
26 goptions.defineOption(
27 GVariable("digitization_variation", std::nullopt, "digitization variation"),
28 "If set, overrides the gsystem variation when the digitization routines load their\n"
29 "constants and translation tables. Default: not set (each routine uses its system's\n"
30 "variation).\n \nExample: -digitization_variation=rga_fall2018");
31
32 // Per-system hit-rejection policies. Each option takes a list of digitization system names
33 // (whitespace- or comma-separated, or "all") that apply the corresponding rejection during
34 // digitization. Default: not set (no system rejects hits), matching the clas12Tags default
35 // where APPLY_THRESHOLDS and DETECTOR_INEFFICIENCY are off.
36 goptions.defineOption(
37 GVariable("applyThresholds", std::nullopt, "systems that reject hits below threshold"),
38 "List of digitization system names whose hits below the per-channel threshold are\n"
39 "rejected. Use \"all\" for every system. Default: not set (no thresholds applied).\n \n"
40 "Example: -applyThresholds=\"ftof, ctof\"");
41 goptions.defineOption(
42 GVariable("applyInefficiencies", std::nullopt,
43 "systems that apply efficiency rejection"),
44 "List of digitization system names whose hits are randomly rejected according to the\n"
45 "per-channel efficiency. Use \"all\" for every system. Default: not set.\n \n"
46 "Example: -applyInefficiencies=\"ftof\"");
47
48 // Aggregate options required by downstream types used in the digitization workflow.
53
54 return goptions;
55}
56
57} // namespace gdynamicdigitization
Options for the GDynamicDigitization module.
constexpr const char * GDIGITIZATION_LOGGER
Logger name used by this module.
GOptions defineOptions()
Builds and returns the option set for gdynamic digitization.
auto defineOptions() -> GOptions
GOptions defineOptions()
auto defineOptions() -> GOptions
GOptions defineOptions()