File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -552,8 +552,16 @@ int main(int argc, char* argv[])
552552 }
553553 digicontext.setBunchFilling (bunchFillings[0 ]);
554554 std::vector<std::string> prefixes;
555+ // Signal interaction rate
556+ float sgnIRate = -1 .;
555557 for (auto & p : ispecs) {
556558 prefixes.push_back (p.name );
559+ if (p.name == " sgn" ) {
560+ // Setting interaction rate in the digitizer context as provided by the O2DPG workflow
561+ LOG (debug) << " Setting signal interaction rate to " << p.interactionRate << " Hz in the digitization context." ;
562+ sgnIRate = p.interactionRate ;
563+ digicontext.setDigitizerInteractionRate (p.interactionRate );
564+ }
557565 }
558566 digicontext.setSimPrefixes (prefixes);
559567
@@ -691,6 +699,7 @@ int main(int argc, char* argv[])
691699
692700 std::stringstream str;
693701 str << path_prefix << tf_output_counter++ << " /collisioncontext.root" ;
702+ copy.setDigitizerInteractionRate (sgnIRate);
694703 copy.saveToFile (str.str ());
695704 LOG (info) << " ---- CollisionContext for timeframe " << tf_id << " -----" ;
696705 copy.printCollisionSummary ();
You can’t perform that action at this time.
0 commit comments