Hadding TProfiles

Hello,
I’m filling many TProfile objects, all with the same binning.
At the end I will use “hadd” to create a unique TProfile histogram.
I wonder if hadd makes just the simple bin-to-bin sum of the single contents (like in TH1 objects)…
or maybe hadd/ROOT is smart enough to combine a real average of single TProfiles??
[Same question for TProfile2D].
Thank you

Hi!

It will correctly average the profiles, but watch out when it comes to scaling, see:

[url]Scaling trouble with TProfile adding weighted MC samples

Best,

Sebastian