Skip to content

Commit

Permalink
Add termination for record writer to save record file correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Elros60 authored and shahor02 committed Jan 28, 2025
1 parent f946c53 commit f2e7956
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Detectors/MUON/MCH/Align/src/Aligner.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,17 @@ void Aligner::init(TString DataRecFName, TString ConsRecFName)
void Aligner::terminate()
{
fInitialized = kFALSE;
LOG(info) << "Closing Evaluation TFile";
if (fDoEvaluation) {
LOG(info) << "Closing Evaluation TFile";
if (fTFile && fTTree) {
fTFile->cd();
fTTree->Write();
fTFile->Close();
}
}
if (!fDisableRecordWriter) {
mRecordWriter->terminate();
}
}

//_____________________________________________________
Expand Down

0 comments on commit f2e7956

Please sign in to comment.