# What function can be used to fit to a pt-distribution?

**URL:** <https://root-forum.cern.ch/t/what-function-can-be-used-to-fit-to-a-pt-distribution/31904>\
**Category:** Newbie\
**Created:** [December 6, 2018, 10:40am UTC](https://root-forum.cern.ch/t/what-function-can-be-used-to-fit-to-a-pt-distribution/31904 "2018-12-06T10:40:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoekMeijers](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/ad7895/32.png) [@LoekMeijers](https://root-forum.cern.ch/u/LoekMeijers)\
**Post date:** [December 6, 2018, 10:40am UTC](https://root-forum.cern.ch/t/what-function-can-be-used-to-fit-to-a-pt-distribution/31904/1 "2018-12-06T10:40:59Z")

</div>

Dear Root community,

Does anyone happen to know what function type can be fitted to a pt- distributions such as the following:[ap\_vs\_sp\_ranges\_10M.pdf](https://root-forum.cern.ch/uploads/default/original/3X/4/a/4a162d00ee77266926c56f51f1f9a1051e02adb5.pdf) (47.7 KB)

Best regards,

Loek Meijers

---

<div class="post-metadata">

**Author:** ![smgrig](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/smgrig/32/19464_2.png) [@smgrig](https://root-forum.cern.ch/u/smgrig)\
**Post date:** [December 6, 2018, 11:38am UTC](https://root-forum.cern.ch/t/what-function-can-be-used-to-fit-to-a-pt-distribution/31904/2 "2018-12-06T11:38:05Z")

</div>

Try `a_0*pow(pt, a_1)/pow(1.+(sqrt(pt*pt+m*m) - a_2)/a_3, a_4)`, where a\_0, …, a\_4 are fit parameters
