18 void multicolor(
Int_t stack=0) {
21 TH2F *h1 =
new TH2F(
"h1",
"h1",nbins,-4,4,nbins,-4,4);
23 TH2F *h2 =
new TH2F(
"h2",
"h2",nbins,-4,4,nbins,-4,4);
25 TH2F *h3 =
new TH2F(
"h3",
"h3",nbins,-4,4,nbins,-4,4);
39 if (val <= 0)
continue;
The Histogram stack class.
virtual Double_t Rndm(Int_t i=0)
Machine independent random number generator.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual void Draw(Option_t *chopt="")
Draw this multihist with its current attributes.
This is the base class for the ROOT Random number generators.
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
virtual void SetFillColor(Color_t fcolor)
2-D histogram with a float per channel (see TH1 documentation)}
virtual Int_t GetBin(Int_t binx, Int_t biny, Int_t binz=0) const
Return Global bin number corresponding to binx,y,z.
virtual void Add(TH1 *h, Option_t *option="")
add a new histogram to the list Only 1-d and 2-d histograms currently supported.
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
Int_t Fill(Double_t)
Invalid Fill method.