double step;
double i;
xlow =
x[0] -
sc * par[3];
for(i=1.0; i<=
np/2; i++) {
xx = xlow + (i-.5) * step;
}
}
{
int i;
ffit->SetParNames(
"Width",
"MP",
"Area",
"GSigma");
for (i=0; i<4; i++) {
}
for (i=0; i<4; i++) {
}
ChiSqr[0] =
ffit->GetChisquare();
}
double step;
int i = 0;
p = params[1] - 0.1 * params[0];
step = 0.05 * params[0];
i++;
step = -step/10;
}
return (-1);
step = params[0];
i = 0;
i++;
step = -step/10;
}
return (-2);
p =
maxx - 0.5 * params[0];
step = -params[0];
i = 0;
i++;
step = -step/10;
}
return (-3);
return (0);
}
int data[100] = {0,0,0,0,0,0,2,6,11,18,18,55,90,141,255,323,454,563,681,
737,821,796,832,720,637,558,519,460,357,291,279,241,212,
153,164,139,106,95,91,76,80,80,59,58,51,30,49,23,35,28,23,
22,27,27,24,20,16,17,14,20,12,12,13,10,17,7,6,12,6,12,4,
9,9,10,3,4,5,2,4,1,5,5,1,7,1,6,3,3,3,4,5,4,4,2,2,7,2,4};
for (
int i=0; i<100; i++)
hSNR->Fill(i,
data[i]);
double fr[2];
fr[0]=0.3*
hSNR->GetMean();
fr[1]=3.0*
hSNR->GetMean();
sv[0]=1.8;
sv[1]=20.0;
sv[2]=50000.0;
sv[3]=3.0;
printf(
"Fitting done\nPlotting results...\n");
hSNR->GetXaxis()->SetRange(0,70);
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t np
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
R__EXTERN TStyle * gStyle
1-D histogram with a float per channel (see TH1 documentation)
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
void SetLabelSize(Float_t size=0.04, Option_t *axis="X")
Set size of axis labels.
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
Double_t Gaus(Double_t x, Double_t mean=0, Double_t sigma=1, Bool_t norm=kFALSE)
Calculates a gaussian function with mean and sigma.
Double_t Landau(Double_t x, Double_t mpv=0, Double_t sigma=1, Bool_t norm=kFALSE)
The LANDAU function.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.
static uint64_t sum(uint64_t i)