About the rootfile and histogram

Please read tips for efficient and successful posting and posting code

Could the same histogram but different conditional judgment be saved into one root file and distinguished?
Like this:

if [condition1]
And both histo1 could be distinguished. I want to call the histo1 for different condotion.
Thank you very much!

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

Hi @zs155167 ,

one way to do this is to change the name of the histogram via histo1->SetName before writing it, so you get differently named entries in the file depending on the condition.


Thank you very much! Could we create a directory in a rootfile to save this two hitogram?

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