eventDispenser
Loading...
Searching...
No Matches
eventDispenser_options.cc
Go to the documentation of this file.
1// eventDispenser
3
4// gemc
6
15// namespace to define options
16namespace eventDispenser {
17// returns array of options definitions
19 // Create the module option set. The logger name is used for consistent diagnostics.
21
22 // Option: number of events
23 std::string help = "Example: -n=200\n";
24 goptions.defineOption(GVariable("n", 0, "number of events to process"), help);
25
26 // Option: run number
27 // Clarify that this is the *conditions run number* (constants/TT selection), not the Geant4 internal run id.
28 help = "Not to be confused with the geant4 run number - g4runno is set automatically \n \n";
29 help += "Example: -run=12\n";
30 goptions.defineOption(GVariable("run", 1, "sets run number"), help);
31
32 // Option: run weights file
33 help = "Text file with run number and their weights.\n \n";
34 help += GTAB;
35 help +=
36 "The text file must have two columns: run# and weight. The weight represents the ratio of events desired for a run number.\n";
37 help += GTAB;
38 help += "For example a \"weights.txt\" file that contains:\n \n";
39 help += GTABTAB;
40 help += "11 0.1\n";
41 help += GTABTAB;
42 help += "12 0.7\n";
43 help += GTABTAB;
44 help += "13 0.2\n \n";
45 help += GTAB;
46 help += "will simulate 10% of events with run number 11 conditions, 70% for run 12 and 20% for run 13.\n";
47
48 goptions.defineOption(
49 GVariable("run_weights", UNINITIALIZEDSTRINGQUANTITY, "File with run number and weights"),
50 help
51 );
52
53 // Append options required by the dynamic digitization module.
55
56 return goptions;
57}
58} // namespace eventDispenser
Public declaration of the Event Dispenser module command-line / configuration options.
constexpr const char * EVENTDISPENSER_LOGGER
Logger name used by this module when creating a GLogger through the base infrastructure.
#define UNINITIALIZEDSTRINGQUANTITY
#define GTAB
#define GTABTAB
Namespace containing the Event Dispenser module option definitions.
GOptions defineOptions()
Builds and returns the complete set of options supported by the Event Dispenser module.
GOptions defineOptions()