Commit 4eba1583 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Fixed missing check for outputEnabled in RootHistCnv/src/PersSvc.cpp (mr !536)

parents 50b41a45 d36f066b
......@@ -64,9 +64,11 @@ StatusCode RootHistCnv::PersSvc::finalize()
// Close ROOT only if the output file name is defined
MsgStream log( msgSvc(), name() );
log << MSG::DEBUG << "RootHistCnv::PersSvc::finalize()" << endmsg;
if ( undefFileName != m_defFileName ) {
m_hfile->Write( "", TObject::kOverwrite );
m_hfile->Close();
if ( m_outputEnabled ) {
if ( undefFileName != m_defFileName ) {
m_hfile->Write( "", TObject::kOverwrite );
m_hfile->Close();
}
}
return ConversionSvc::finalize();
}
......
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