Skip to content
Merged
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
6 changes: 4 additions & 2 deletions Steer/src/CollisionContextTool.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,10 @@ int main(int argc, char* argv[])
float sgnIRate = -1.;
for (auto& p : ispecs) {
prefixes.push_back(p.name);
if (p.name == "sgn") {
// Setting interaction rate in the digitizer context as provided by the O2DPG workflow
// Set the interaction rate from the first pattern with a valid value.
// This handles both simple signal-only productions (where "sgn" has the rate)
// and embedding productions (where "bkg" has the rate and "sgn" syncs to it)
if (sgnIRate < 0 && p.interactionRate > 0) {
LOG(debug) << "Setting signal interaction rate to " << p.interactionRate << " Hz in the digitization context.";
sgnIRate = p.interactionRate;
digicontext.setDigitizerInteractionRate(p.interactionRate);
Expand Down