Skip to content

Commit f2e7956

Browse files
Elros60shahor02
authored andcommitted
Add termination for record writer to save record file correctly
1 parent f946c53 commit f2e7956

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Detectors/MUON/MCH/Align/src/Aligner.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,17 @@ void Aligner::init(TString DataRecFName, TString ConsRecFName)
359359
void Aligner::terminate()
360360
{
361361
fInitialized = kFALSE;
362-
LOG(info) << "Closing Evaluation TFile";
363362
if (fDoEvaluation) {
363+
LOG(info) << "Closing Evaluation TFile";
364364
if (fTFile && fTTree) {
365365
fTFile->cd();
366366
fTTree->Write();
367367
fTFile->Close();
368368
}
369369
}
370+
if (!fDisableRecordWriter) {
371+
mRecordWriter->terminate();
372+
}
370373
}
371374

372375
//_____________________________________________________

0 commit comments

Comments
 (0)