4 from os.path
import join
5 from HandyFuncs
import MakeGradient
7 if "PYTHONSTARTUP" in os.environ:
9 execfile(os.environ[
"PYTHONSTARTUP"])
10 elif os.path.exists(
"rootlogon.py"):
11 execfile(
"rootlogon.py")
26 hists[nexp] = TH1D(
"h%i"%nexp,
";Mean;", 101, 0, 1.01)
27 for t
in range(trials):
30 sum += rand.Integer(2)
32 hists[nexp].
Fill(mean)
37 c1 = TCanvas(
"c1",
"c1")
41 gStyle.SetOptFit(
False)
43 for nexp, color
in zip(Nexps, colors):
45 hists[nexp].
Fit(
"gaus")
46 fits[nexp] = hists[nexp].FindObject(
"gaus")
49 fits[nexp].
Draw(
"same")
53 l1 = TLatex(0.3, 0.5,
"%s"%nexp)
55 l1.SetTextColor(color)
58 c1.Print(
"clt_%i.png"%nexp)
def MakeGradient(nsteps, start, end)
correl_yv Fill(-(dy[iP-1][iC-1]), hyv->GetBinContent(iP, iC))