diff --git a/gemc/eventDispenser/eventDispenser.cc b/gemc/eventDispenser/eventDispenser.cc index 750a31f8..b6fd539a 100644 --- a/gemc/eventDispenser/eventDispenser.cc +++ b/gemc/eventDispenser/eventDispenser.cc @@ -29,6 +29,7 @@ EventDispenser::EventDispenser(const std::shared_ptr& 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). diff --git a/gemc/eventDispenser/eventDispenser_options.cc b/gemc/eventDispenser/eventDispenser_options.cc index f6aa4bad..bb9d12e8 100644 --- a/gemc/eventDispenser/eventDispenser_options.cc +++ b/gemc/eventDispenser/eventDispenser_options.cc @@ -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;