36 TH1D *h2 =
new TH1D(
"h2",
"h2",
n, 4, 16);
38 h1->SetTitle(
"Unweighted Histogram");
41 h1->SetBinContent(1, 0);
42 h1->SetBinContent(2, 1);
43 h1->SetBinContent(3, 0);
44 h1->SetBinContent(4, 1);
45 h1->SetBinContent(5, 1);
46 h1->SetBinContent(6, 6);
47 h1->SetBinContent(7, 7);
48 h1->SetBinContent(8, 2);
49 h1->SetBinContent(9, 22);
50 h1->SetBinContent(10, 30);
51 h1->SetBinContent(11, 27);
52 h1->SetBinContent(12, 20);
53 h1->SetBinContent(13, 13);
54 h1->SetBinContent(14, 9);
55 h1->SetBinContent(15, 9 + w);
56 h1->SetBinContent(16, 13);
57 h1->SetBinContent(17, 19);
58 h1->SetBinContent(18, 11);
59 h1->SetBinContent(19, 9);
60 h1->SetBinContent(20, 0);
108 h1->Chi2Test(h2,
"UW P",res);
111 for (
Int_t i=0; i<
n; i++)
x[i]= 4.+i*12./20.+12./40.;
119 resgr->
SetTitle(
"Normalized Residuals");
122 TF1 *
f =
new TF1(
"f",
"TMath::Gaus(x,0,1)",-10,10);
127 qqplot->
SetTitle(
"Q-Q plot of Normalized Residuals");
135 h1->SetMarkerColor(4);
136 h1->SetMarkerStyle(20);
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual void SetRangeUser(Double_t ufirst, Double_t ulast)
Set the viewing range for the axis from ufirst to ulast (in user coordinates, that is,...
This class allows to draw quantile-quantile plots.
void Draw(Option_t *chopt="") override
Default Draw method for all objects.
void SetTitle(const char *title="") override
Set the title of the TNamed.
1-D histogram with a double per channel (see TH1 documentation)
void SetTitle(const char *title) override
Change/set the title.
virtual void SetBinError(Int_t bin, Double_t error)
Set the bin Error Note that this resets the bin eror option to be of Normal Type and for the non-empt...
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content see convention for numbering bins in TH1::GetBin In case the bin number is greater th...
virtual void SetEntries(Double_t n)
virtual void SetTitle(const char *title="")
Set the title of the TNamed.