Skip to content
Snippets Groups Projects
Commit aadaa96f authored by Thomas Owen James's avatar Thomas Owen James :speech_balloon:
Browse files

put write_EoR_file in outputfilehandler destructor as per Dinyar's "todo".

parent de871482
No related branches found
No related tags found
1 merge request!77Changes to run with CMSSW
Pipeline #6706826 passed
...@@ -46,7 +46,6 @@ void OutputFileHandler::enqueue_current_file_for_close_and_move_maybe() { ...@@ -46,7 +46,6 @@ void OutputFileHandler::enqueue_current_file_for_close_and_move_maybe() {
OutputFile OutputFileHandler::getFile(uint32_t run, uint32_t index) { OutputFile OutputFileHandler::getFile(uint32_t run, uint32_t index) {
// TODO: We should maybe move this out of this function... // TODO: We should maybe move this out of this function...
// TODO: EoR file should be also written at destruction, probably.
if (current_run_number_ > 0 && current_run_number_ != run && getCMSSWHeaders()) { if (current_run_number_ > 0 && current_run_number_ != run && getCMSSWHeaders()) {
OutputFileHandler::write_EoR_file(); OutputFileHandler::write_EoR_file();
} }
......
...@@ -44,6 +44,7 @@ class OutputFileHandler { ...@@ -44,6 +44,7 @@ class OutputFileHandler {
~OutputFileHandler() { ~OutputFileHandler() {
enqueue_current_file_for_close_and_move_maybe(); enqueue_current_file_for_close_and_move_maybe();
write_EoR_file();
exit_file_handler_loop(); exit_file_handler_loop();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment