3 #include "TFitResult.h"
11 return( abs(A.first - A.second) > abs(B.first - B.second) ) ;
14 inline TFitResultPtr
Fit(TH1D* h){
15 TFitResultPtr fitresult;
16 int MaxBin = h->GetMaximumBin();
17 double maximum = h->GetBinCenter(MaxBin);
18 TF1
f1(
"fit",
"gaus",maximum-15,maximum+15);
19 fitresult = h->Fit(&f1,
"QRS");
JCombinatorics::pair_type pair_type
const JPolynome f1(1.0, 2.0, 3.0)
Function.
JRootfit_t< JF1_t > Fit(const TH1 &h1, const JF1_t &f1, const index_list &ls=index_list(), const range_type &X=range_type())
Global fit fuction.
bool comparepair(const pair_type &A, const pair_type &B)
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A