Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gemc/eventDispenser/eventDispenser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ EventDispenser::EventDispenser(const std::shared_ptr<GOptions>&
string filename = gopt->getScalarString("run_weights");
userRunno = gopt->getScalarInt("run");
neventsToProcess = gopt->getScalarInt("n");
variation = gopt->getScalarString("variation");

// Detect offscreen mode once at construction so processEvents() needs no vis headers.
// g4view is only defined when g4display options are included (e.g. in the full gemc app).
Expand Down
6 changes: 6 additions & 0 deletions gemc/eventDispenser/eventDispenser_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ GOptions defineOptions() {
help += "Example: -run=12\n";
goptions.defineOption(GVariable("run", 1, "sets run number"), help);

// Option: digitization variation (constants / translation-table version selector).
// Defaults to "default", matching the geometry-side variation default.
help = "Variation passed to digitization routines when loading constants and translation tables.\n";
help += "Example: -variation=default\n";
goptions.defineOption(GVariable("variation", "default", "digitization constants/TT variation"), help);

// Option: run weights file
help = "Text file with run number and their weights.\n \n";
help += GTAB;
Expand Down