How can i plot a graph beteen mean values which i will take from histograms and values inserted manually

I have many root fils each with a number of histograms. from these histograms, I want to take mean values and plot them against some constant values. can I use the GetMean() function inside the graph? if possible please help me.
any help is highly appreciated.

_ROOT Version: 6.16/00es
Platform: linuxx8664gcc

I think so, see TH1::GetMean()

I couldn’t understand, I mean inside getmean function do I need to write the histograms?

If I understand correctly, you have to loop over your histograms, call GetMean() for each of them, and fill another histogram with each value. Is that what you asked for?

Yes, Thankyou i got it now