Commit c2aeb6d5 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Sort uids map before printing the content at finalize (in DEBUG)

parent 29baaec6
......@@ -182,11 +182,11 @@ m_tobjs: 5
- 0x22059a0 -> id: /read2/profile t: 0 s: 0 M: 0 m: 0 o: 0x22059a0 TProfile

THistSvc DEBUG THistSvc::finalize
THistSvc DEBUG finalize: id: /read2/trees/stuff/treename t: 0 s: 0 M: 0 m: 0 o: 0x2230a00 TTree
THistSvc DEBUG finalize: id: /read1/xxx/1Dgauss t: 0 s: 0 M: 0 m: 0 o: 0x21cf200 TH1F
THistSvc DEBUG finalize: id: /read2/2Dgauss t: 0 s: 0 M: 0 m: 0 o: 0x21ec5e0 TH2F
THistSvc DEBUG finalize: id: /read2/3Dgauss t: 0 s: 0 M: 0 m: 0 o: 0x21eb0e0 TH3F
THistSvc DEBUG finalize: id: /read2/profile t: 0 s: 0 M: 0 m: 0 o: 0x22059a0 TProfile
THistSvc DEBUG finalize: id: /read2/trees/stuff/treename t: 0 s: 0 M: 0 m: 0 o: 0x2230a00 TTree
THistSvc DEBUG updateFiles()
THistSvc DEBUG THistSvc::writeObjectsToFile()::List of Files connected in ROOT 
THistSvc DEBUG THistSvc::writeObjectsToFile()::List of Files connected in ROOT: "tuple2.rt"
......
......@@ -195,7 +195,8 @@ StatusCode THistSvc::finalize()
#ifndef NDEBUG
if ( msgLevel( MSG::DEBUG ) ) {
for ( const auto& itr : m_uids ) {
const std::map<uidMap_t::key_type, uidMap_t::mapped_type> sorted_uids{begin( m_uids ), end( m_uids )};
for ( const auto& itr : sorted_uids ) {
THistID& thid = itr.second->at( 0 );
TObject* tobj = thid.obj;
......
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