Hi rooters,
I have two questions:
- I tried to fit a histogram with likelihood fit option like:
h1->Fit("myFunction", "LR0")
and I got following error:
---------------
Warning in <Fit>: Abnormal termination of minimization.
---------------
and all fitted parameters are shown to be 0. However, it works fine with default chi2 fit. Am I missing something?
- I tried to calculate the unbinned log likelihood of a fit of a variable in tree. So, I need data of the variables. How do I get the data from the tree directly without writing TBranch etc. For an example:
To draw the variable (say px) from the tree (myTree), I do
myTree->Draw("px", "cuts")
Is there any way to get the data “px” (with cuts) from the tree like above?
Thanks.