I was using ROOT 5.22.00i and I am now moving to 5.26.00d. I am using MakeClass() on my TTree that contain thousand of “Branch” :
fChain->SetBranchStatus("*",0);
only for the branch that I need for my analysis (for ALL events)
fChain->SetBranchStatus(“EF_2e5_medium”,1);
…
There is a lot optimization in 5.26.00d (dixit searches on Google )
Should I add them together like :
Int_t cachesize=10000000;
fChain->SetCacheSize(cachesize);
fChain->AddBranchToCache("",kTRUE);
fChain->SetBranchStatus("",0);
only for the branch that I need for my analysis (for ALL events)
fChain->SetBranchStatus(“EF_2e5_medium”,1);
…
fChain->StopCacheLearningPhase();
Sorry for the naive question
Thanks a lot
Cheers
Fabien
but in this case when I draw “ioperf->Draw()”, the IO RAW (red line are missing) and "ioperf->Print() give me :
root [3] ioperf->Print()
TreeCache = 0 MBytes
N leaves = 2312
ReadTotal = 0 MBytes
ReadUnZip = nan MBytes
ReadCalls = 0
ReadSize = nan KBytes/read
Readahead = 0 KBytes
Readextra = nan per cent
Real Time = 0.000 seconds
CPU Time = 0.000 seconds
Disk Time = 0.606 seconds
Disk IO = 0.000 MBytes/s
ReadUZRT = nan MBytes/s
ReadUZCP = nan MBytes/s
ReadRT = nan MBytes/s
ReadCP = nan MBytes/s
This is probably not the right thing to do but ps->SaveAs(“file.root”); remove all the content of my previous file.root (it seems that there is no option ps->SaveAs(“file.root”,“update”);
I am using 5.26.00d
Thanks
Cheers
Fabien
Looking at the time stamp at the bottom of the picture, it is clear that your 2 pictures correspond to 2 different runs.
There is something wrong with the results. It looks like your file has one or more branches with an infinite compression factor, explaining the wrong scale for the real time axis.
and this change the scale of the plot !!
If you can access lxplus machine@cern, I put my file here :
on lxplus231 : /tmp/ForRene/user.FabienTarrade.005646.AANT._00479.root
Could you post the result file TEST.root where you store the TTreePerfStats object (bad case) ?
or make publicly available the file at “/tmp/tarrade/user.FabienTarrade.data10_7TeV.periodF.physics_Egamma.PhysCont.AOD.t0pro04_v01.D3PD_DILEP-09-2010_1_GRL.100908171907/user.FabienTarrade.005646.AANT._00479.root”);
OK Julien, I have found the problem that is visible when reading only a tiny fraction of the file.
The time axis scale was wrong in this case.
The problem is now fixed in the SVN trunk.
Thanks for reporting this case.