Get values from a 2D histogram

Hi, dear ROOTers;

I have a 2D histogram in my root file. I want to get those x and y values that my histogram is filled with them. Because I want to multiply x and y values by some factors separately and generate another histogram. Is this possible?


Can we shift histogram for several channels?

Unfortunately, No.
I want to extract the values.

Search for “GetBinLowEdge”, “GetBinCenter” and “GetBinWidth” in the TH1 Class Reference.

let me ask another question: is there a way to save the values while filling this histogram to generate this histogram later whenever I want?

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