11 void spectrumpainter()
13 TH2 *h2 =
new TH2F(
"h2",
"h2",40,-8,8,40,-9,9);
15 for (
Int_t i = 0; i < 50000; i++) {
18 h2->
Fill(px+4,py-4,0.5);
19 h2->
Fill(px+4,py+4,0.25);
20 h2->
Fill(px-3,py+4,0.125);
27 h2->
Draw(
"SPEC dm(2,10) zs(1)");
29 h2->
Draw(
"SPEC dm(1,10) pa(2,1,1) ci(1,4,8) a(15,45,0)");
31 h2->
Draw(
"SPEC dm(2,10) pa(1,1,1) ci(1,1,1) a(15,45,0) s(1,1)");
33 h2->
Draw(
"SPEC dm(1,10) pa(2,1,1) ci(1,4,8) a(15,45,0) cm(1,15,4,4,1) cg(1,2)");
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
Service class for 2-Dim histogram classes.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
R__EXTERN TRandom * gRandom
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
Int_t Fill(Double_t)
Invalid Fill method.
THist< 2, float, THistStatContent, THistStatUncertainty > TH2F