20 void histpalettecolor()
27 TH1F *
h1 =
new TH1F (
"h1",
"Histogram drawn with full circles",100,-4,4);
28 TH1F *h2 =
new TH1F (
"h2",
"Histogram drawn with full squares",100,-4,4);
29 TH1F *h3 =
new TH1F (
"h3",
"Histogram drawn with full triangles up",100,-4,4);
30 TH1F *h4 =
new TH1F (
"h4",
"Histogram drawn with full triangles down",100,-4,4);
31 TH1F *h5 =
new TH1F (
"h5",
"Histogram drawn with empty circles",100,-4,4);
35 for (
Int_t i = 0; i < 25000; i++) {
51 h2->
Draw(
"SAME PLC PMC");
52 h3->
Draw(
"SAME PLC PMC");
53 h4->
Draw(
"SAME PLC PMC");
54 h5->
Draw(
"SAME PLC PMC");
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
Random number generator class based on M.
R__EXTERN TStyle * gStyle
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
tomato 1-D histogram with a float per channel (see TH1 documentation)}
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
void SetOptTitle(Int_t tit=1)