16 Float_t x[6] = { 1, 2, 1, -1, -2, -1 };
17 Float_t y[6] = { 2, 0, -2, -2, 0, 2 };
19 TH2F *hist =
new TH2F(
"hist",
"Histogram with cut", 40, -10., 10., 40, -10., 10.);
20 for (
int i = 0; i < 100000; i++)
23 hist->
Draw(
"col [cut]");
R__EXTERN TRandom * gRandom
void Draw(Option_t *chopt="") override
Draw this graph with its current attributes.
void Draw(Option_t *option="") override
Draw this histogram with options.
2-D histogram with a float per channel (see TH1 documentation)
Int_t Fill(Double_t) override
Invalid Fill method.
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...