Illustrates how to fit excluding points in a given range. 
  
****************************************
Minimizer is Minuit2 / Migrad
Chi2                      =      84.1529
NDf                       =           78
Edm                       =  6.21801e-21
NCalls                    =           32
p0                        =      28.4731   +/-   0.946564    
p1                        =     -4.81581   +/-   0.26533     
   
 
double fline(
double *
x, 
double *par)
 
{
    if (
reject && 
x[0] > 2.5 && 
x[0] < 3.5) {
 
      return 0;
   }
   return par[0] + par[1]*
x[0];
 
}
 
   
   TF1 *
f1 = 
new TF1(
"f1",
"[0] +[1]*x +gaus(2)",0,5);
 
   
   TH1F *
h = 
new TH1F(
"h",
"background + signal",100,0,5);
 
   h->FillRandom(
"f1",2000);
 
   
   
   fleft->SetParameters(
fl->GetParameters());
 
   h->GetListOfFunctions()->Add(
fleft);
 
   fright->SetParameters(
fl->GetParameters());
 
   h->GetListOfFunctions()->Add(
fright);
 
}
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
static void RejectPoint(Bool_t reject=kTRUE)
Static function to set the global flag to reject points the fgRejectPoint global flag is tested by al...
 
virtual void SetParameters(const Double_t *params)
 
1-D histogram with a float per channel (see TH1 documentation)
 
- Author
 - Rene Brun 
 
Definition in file fitExclude.C.