The TH1 html reference page says that if I want to add histograms which are averages I should set the kIsAverage bit. Here is an simple ROOT script where I try to do that:
#include <TH1.h>
void isave() {
hresir = new TH1F(“hresir”,"",152, -0.1, 15.1);
hresir->SetBit(TH1::kIsAverage);
}
When I “.x” this script I get the error:
Error: Symbol kIsAverage is not defined in current scope
What am I missing?
Thank you.