Skip to content

Commit

Permalink
Avoid mandatory Fatal in FairRunOnline if no Sink defined.
Browse files Browse the repository at this point in the history
This was an unintened consequence/oversight following #940 (fixing issue #935).
  • Loading branch information
PALoizeau authored and dennisklein committed Apr 19, 2021
1 parent 5778c2f commit 6848f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/steer/FairRunOnline.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void FairRunOnline::Init()
return;
}
LOG(info) << "FairRunOnline::InitContainers: event header at " << fEvtHeader;
fRootManager->Register("EventHeader.", "Event", fEvtHeader, kTRUE);
fRootManager->Register("EventHeader.", "Event", fEvtHeader, (nullptr != fRootManager->GetSink()));
fEvtHeader->SetRunId(fRunId);

fRootManager->GetSource()->InitUnpackers();
Expand Down

0 comments on commit 6848f09

Please sign in to comment.