File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -556,8 +556,10 @@ int main(int argc, char* argv[])
556556 float sgnIRate = -1 .;
557557 for (auto & p : ispecs) {
558558 prefixes.push_back (p.name );
559- if (p.name == " sgn" ) {
560- // Setting interaction rate in the digitizer context as provided by the O2DPG workflow
559+ // Set the interaction rate from the first pattern with a valid value.
560+ // This handles both simple signal-only productions (where "sgn" has the rate)
561+ // and embedding productions (where "bkg" has the rate and "sgn" syncs to it)
562+ if (sgnIRate < 0 && p.interactionRate > 0 ) {
561563 LOG (debug) << " Setting signal interaction rate to " << p.interactionRate << " Hz in the digitization context." ;
562564 sgnIRate = p.interactionRate ;
563565 digicontext.setDigitizerInteractionRate (p.interactionRate );
You can’t perform that action at this time.
0 commit comments