Problem in fitting (in function!)

You anyhow go through an “intermediate” histogram so maybe use its integral.

Otherwisse, you would need to create a TF2 from your 2D graph and integrate this new function.
An example of a TF1 created from a 1D graph can be found in: “Integral of TGraph