Area under a fitted curve

Hellow,
I have data set, which when I ploted it takes a shape which can be fitted by higher degree polynomial. My question is that can I find the area under this fitted curve using ROOT. If yes please suggest how to do.

[color=#FF40FF]Regards
Kalyan[/color]

Hi Kaylan,

[quote=“kalyandey”]Hellow,
I have data set, which when I ploted it takes a shape which can be fitted by higher degree polynomial. My question is that can I find the area under this fitted curve using ROOT. If yes please suggest how to do.

[color=#FF40FF]Regards
Kalyan[/color][/quote]

A couple comments:

  • This probably isn’t the best choice of forums (Root support would probably work better in the future.).

  • One you’ve fit your points to a polynomial, it should be pretty trivial to integrate that function between any two arbitrary points. The only reason this should depend on Root at all is to get the values of the parameters.

  • If you are using a function that isn’t as easily integrable as a polynomial, look at TF1::Integeral().

Good luck,
Charles