gdynamicDigitization
Loading...
Searching...
No Matches
gdynamicdigitization_options.cc
Go to the documentation of this file.
1
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. The sentinel default means "not set": each routine
26 // then follows the variation of the gsystem it belongs to.
27 goptions.defineOption(
28 GVariable("digitization_variation", UNINITIALIZEDSTRINGQUANTITY, "digitization variation"),
29 "If set, overrides the gsystem variation when the digitization routines load their\n"
30 "constants and translation tables. Default: not set (each routine uses its system's\n"
31 "variation).\n \nExample: -digitization_variation=rga_fall2018");
32
33 // Per-system hit-rejection policies. Each option takes a list of digitization system names
34 // (whitespace- or comma-separated, or "all") that apply the corresponding rejection during
35 // digitization. Default: not set (no system rejects hits), matching the clas12Tags default
36 // where APPLY_THRESHOLDS and DETECTOR_INEFFICIENCY are off.
37 goptions.defineOption(
38 GVariable("applyThresholds", UNINITIALIZEDSTRINGQUANTITY, "systems that reject hits below threshold"),
39 "List of digitization system names whose hits below the per-channel threshold are\n"
40 "rejected. Use \"all\" for every system. Default: not set (no thresholds applied).\n \n"
41 "Example: -applyThresholds=\"ftof, ctof\"");
42 goptions.defineOption(
43 GVariable("applyInefficiencies", UNINITIALIZEDSTRINGQUANTITY, "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.
#define UNINITIALIZEDSTRINGQUANTITY
GOptions defineOptions()
Builds and returns the option set for gdynamic digitization.
auto defineOptions() -> GOptions
GOptions defineOptions()
auto defineOptions() -> GOptions
GOptions defineOptions()