Skip to content

Commit 98cd61e

Browse files
authored
Generalize IR setting (#14833)
1 parent 6e72bab commit 98cd61e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Steer/src/CollisionContextTool.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)