from ROOT import TRandom, TH1F, TCanvas

rnd = TRandom()

h1 = TH1F("h1",";Data;Enries",50,0,10)
h2 = TH1F("h2",";Data;Enries",50,0,10)

h1.SetFillStyle(3375);
h1.SetFillColor(2);

h2.SetFillStyle(3357);
h2.SetFillColor(4);

for i in range(1,10000):
    r1 = rnd.Gaus(3,1.0)
    r2 = rnd.Gaus(6,1.5)
    h1.Fill(r1);
    h2.Fill(r2);

c1 = TCanvas("c1","c1",800,600)

h1.Draw()
h2.Draw("same")
c1.Update()

input("Press Enter to continue...")
