Dear experts,
I’ve recently upgraded from root 6.22.06 to 6.24.06. After upgrading all TEfficiency
used are not stored anymore and do not appear in `TDirectory::Print().
I could not find anything related in the release notes.
Examples including outputs for both versions can be found below.
Thanks for the help,
lhuth
#include<TDirectory.h>
#include<TEfficiency.h>
#include<TFile.h>
#include<TH1D.h>
void test(){
auto file = new TFile("test.root","RECREATE");
auto dir = file->GetDirectory("test");
dir= file->mkdir("test");
dir->cd();
auto hist = new TH1D("hist","hist", 10,1,1);
auto teff = new TEfficiency("pixelEfficiencyMap_trackPos", "map", 90, 90 / 2., 90 / 2., 180, 90 / 2.,90 / 2.);
hist->Fill(4,4);
teff->Fill(0,0,1);
dir->Print();
dir->Write();
file->Close();
}
Result print for v6.22.06:
------------------------------------------------------------------
| Welcome to ROOT 6.22/06 https://root.cern |
| (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on Nov 27 2020, 15:14:08 |
| From tags/v6-22-06@v6-22-06 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0] .L test.c
root [1] test()
TH1.Print Name = hist, Entries= 0, Total sum= 0
OBJ: TEfficiency pixelEfficiencyMap_trackPos map
root [2]
Result print for v6.24.06
------------------------------------------------------------------
| Welcome to ROOT 6.24/06 https://root.cern |
| (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on Oct 13 2021, 11:32:00 |
| From tags/v6-24-06@v6-24-06 |
| With |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0] .L test.c
root [1] test()
TH1.Print Name = hist, Entries= 1, Total sum= 4
ROOT Version: 6.24.06
Platform: opensuse 15.2
Compiler: gcc10