# Fitting histogram with TF1 multiple times

**URL:** <https://root-forum.cern.ch/t/fitting-histogram-with-tf1-multiple-times/48416>\
**Category:** ROOT\
**Created:** [January 17, 2022, 7:15am UTC](https://root-forum.cern.ch/t/fitting-histogram-with-tf1-multiple-times/48416 "2022-01-17T07:15:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [January 17, 2022, 10:52am UTC](https://root-forum.cern.ch/t/fitting-histogram-with-tf1-multiple-times/48416/5 "2022-01-17T10:52:47Z")

</div>

See how to do the fits, in particular with “user-defined functions” and more info in the links included:

> [@How to Fit Histograms or Data Points?](https://root-forum.cern.ch/t/how-to-fit-histograms-or-data-points/38870):
>
> Fitting in ROOT is based on the [TMinuit](https://root.cern/doc/master/group__MinuitOld.html) class. See in particular [Basic Concepts of Minuit]([http://root.cern.ch/doc/master/classTMinuit.html#TMinuit:Basic](http://root.cern.ch/doc/master/classTMinuit.html#TMinuit:Basic) Concepts of Minuit). The user has the choice of using directly the TMinuit class, as illustrated in the last section below or use specialized functions provided in the histogram class [TH1](https://root.cern/doc/master/classTH1.html) or the graph classes [TGraph](https://root.cern/doc/master/classTGraph.html) and [TGraphErrors](https://root.cern/doc/master/classTGraphErrors.html). The Minuit package acts on a multiparameter Fortran function FCN. In the ROOT implementation, the function F…

---

_[View the full topic](https://root-forum.cern.ch/t/fitting-histogram-with-tf1-multiple-times/48416)._
