Commit 53789de8 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

FileWriter: close file before destruction

parent 11134bfe
Pipeline #359508 passed with stages
in 9 minutes and 17 seconds
......@@ -167,8 +167,7 @@ StatusCode FileWriter::run(Clipboard* clipboard) {
void FileWriter::finalise() {
// Write the trees to file
// Loop over all objects to be written to file, and get the objects currently
// held on the Clipboard
// Loop over all objects to be written to file, and get the objects currently held on the Clipboard
for(unsigned int itList = 0; itList < m_objectList.size(); itList++) {
// Check the type of object
......@@ -215,5 +214,7 @@ void FileWriter::finalise() {
}
}
// Close the output file
m_outputFile->Close();
LOG(DEBUG) << "Analysed " << m_eventNumber << " events";
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment