I want to save a histogram variable defined as “rarityHistFi” in the TTree named as a tree. I saved the rarity distribution as a histogram in the root file. While trying to save in the tree, the distribution peak at 0 and does give the desired distribution. Could it be possible to save the variable in the tree?
I see you create and fill the histogram rarityHistFi. Then you write it in the opened ROOT file. Sounds good. But I am not sure I understand what you mean by “save the variable in the tree” ? which variable are you talking about ?