ROOT Tutorial Parte 3
ROOT Tutorial Parte 3. Esempio: distribuzione uniforme in x, gaussiana in y. void randomGaus(){ Double_t x, y; TH2D *h2 = new TH2D(“h2”,”Uniform Distribution”, 100,0,10,100,0,10); for(Int_t i=0; i < 100000; i++){ x = gRandom->Uniform(0,10); y = gRandom->Gaus(5,1); h2->Fill(x,y); }
267 views • 16 slides