How to do a significance scan (signal-background) from a histogram in a root file

___Dear Root members,
I am new to c++/root and I am trying to write a code which will calculate the significance (of signal to background) by scanning through two figures (signal and background) on same plot.

Here’s my starting point.
PrintSignificane.C (777 Bytes)

Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

Hi @Elias_Malwa ,
and welcome to the ROOT forum. What is the problem you are encountering exactly?