20void hist028_THStack_multicolor(
Int_t isStack = 0)
24 TH2F *
h1 =
new TH2F(
"h1",
"h1", nbins, -4, 4, nbins, -4, 4);
26 TH2F *h2 =
new TH2F(
"h2",
"h2", nbins, -4, 4, nbins, -4, 4);
28 TH2F *h3 =
new TH2F(
"h3",
"h3", nbins, -4, 4, nbins, -4, 4);
36 for (i = 0; i < 20000; i++)
37 h1->Fill(
r.Gaus(),
r.Gaus());
38 for (i = 0; i < 200; i++) {
46 h1->SetBinContent(bin, 0);
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
2-D histogram with a float per channel (see TH1 documentation)
void SetBinContent(Int_t bin, Double_t content) override
Set bin content.
void Draw(Option_t *chopt="") override
Default Draw method for all objects.
virtual void Add(TH1 *h, Option_t *option="")
This is the base class for the ROOT Random number generators.