Hi.
I got a problem in dividing histograms. I have two TH1I histograms (you can see in the attached code, they are called “One_deltaR_dist” and “Ref_deltaR_dist”), and I’d like to divide them, I tried using the Divide function, but I keep getting this error message when I try to compile:
Compiling analyzer.o … analyzer.cpp: In function int main()': analyzer.cpp:152: error: no matching function for call to
TH1F::Divide(TH1F&)’
/afs/cern.ch/sw/lcg/external/root/5.12.00/slc4_ia32_gcc345/root/include/TH1.h:152: note: candidates are: virtual void TH1::Divide(TF1*, Double_t)
/afs/cern.ch/sw/lcg/external/root/5.12.00/slc4_ia32_gcc345/root/include/TH1.h:153: note: virtual void TH1::Divide(const TH1*)
/afs/cern.ch/sw/lcg/external/root/5.12.00/slc4_ia32_gcc345/root/include/TH1.h:154: note: virtual void TH1::Divide(const TH1*, const TH1*, Double_t, Double_t, const Option_t*)
make: *** [analyzer.o] Error 1
analyzer.cpp (6.6 KB)