How to save a mass of histrogram in one root file?

I have 6 directories in one root file. Each directory saves some TH1F like pictures, but for 6 directories there are too many. If there are large events, it can not be reserved. How to solve this problem?

微信图片_20230607091900
微信图片_202306070919001
微信图片_202306070919002
微信图片_202306070919003

微信图片_202306070919004
微信图片_202306070919005
微信图片_202306070919006
微信图片_202306070919007

What do you mean exactly ? ROOT refuses to save some histogram in a TFile ? if that’s the case you should get some error message. Can you post it here ?

For example, one directory has 3000 TH1F.And I have 6 directories, there are 24000 TH1F in one root file. Can it be saved for this number of historgrams?
error_save

@pcanal will know if there is a limitation

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.