Variables | |
| ampl1 = ROOT.RooProduct("ampl1", "amplitude 1", [poly1, coshG]) | |
| ampl2 = ROOT.RooProduct("ampl2", "amplitude 2", [poly2, sinhG]) | |
| c = ROOT.TCanvas("rf704_amplitudefit", "rf704_amplitudefit", 800, 800) | |
| Components | |
| cosa = ROOT.RooRealVar("cosa", "cos(alpha)", -1.0, 1.0) | |
| coshG = ROOT.RooFormulaVar("coshGBasis", "exp(-@0/ @1)*cosh(@0*@2/2)", [t, tau, deltaGamma]) | |
| data = pdf.generate({t, cosa}, 10000) | |
| deltaGamma = ROOT.RooRealVar("deltaGamma", "deltaGamma", 0.3) | |
| f1 = ROOT.RooRealVar("f1", "f1", 1, 0, 2) | |
| f2 = ROOT.RooRealVar("f2", "f2", 0.5, 0, 2) | |
| frame1 = t.frame() | |
| frame2 = cosa.frame() | |
| hh_cos = ampl1.createHistogram("hh_cos", t, Binning=50, YVar=dict(var=cosa, Binning=50)) | |
| hh_sin = ampl2.createHistogram("hh_sin", t, Binning=50, YVar=dict(var=cosa, Binning=50)) | |
| LineColor | |
| LineStyle | |
| pdf = ROOT.RooRealSumPdf("pdf", "pdf", [ampl1, ampl2], [f1, f2]) | |
| poly1 = ROOT.RooPolyVar("poly1", "poly1", cosa, [0.5, 0.2, 0.2], 0) | |
| poly2 = ROOT.RooPolyVar("poly2", "poly2", cosa, [1.0, -0.2, 3.0], 0) | |
| PrintLevel | |
| sinhG = ROOT.RooFormulaVar("sinhGBasis", "exp(-@0/ @1)*sinh(@0*@2/2)", [t, tau, deltaGamma]) | |
| t = ROOT.RooRealVar("t", "time", -1.0, 15.0) | |
| tau = ROOT.RooRealVar("tau", "#tau", 1.5) | |
| rf704_amplitudefit.ampl1 = ROOT.RooProduct("ampl1", "amplitude 1", [poly1, coshG]) |
Definition at line 33 of file rf704_amplitudefit.py.
| rf704_amplitudefit.ampl2 = ROOT.RooProduct("ampl2", "amplitude 2", [poly2, sinhG]) |
Definition at line 34 of file rf704_amplitudefit.py.
| rf704_amplitudefit.c = ROOT.TCanvas("rf704_amplitudefit", "rf704_amplitudefit", 800, 800) |
Definition at line 79 of file rf704_amplitudefit.py.
| rf704_amplitudefit.Components |
Definition at line 67 of file rf704_amplitudefit.py.
| rf704_amplitudefit.cosa = ROOT.RooRealVar("cosa", "cos(alpha)", -1.0, 1.0) |
Definition at line 21 of file rf704_amplitudefit.py.
| rf704_amplitudefit.coshG = ROOT.RooFormulaVar("coshGBasis", "exp(-@0/ @1)*cosh(@0*@2/2)", [t, tau, deltaGamma]) |
Definition at line 25 of file rf704_amplitudefit.py.
Definition at line 47 of file rf704_amplitudefit.py.
| rf704_amplitudefit.deltaGamma = ROOT.RooRealVar("deltaGamma", "deltaGamma", 0.3) |
Definition at line 24 of file rf704_amplitudefit.py.
| rf704_amplitudefit.f1 = ROOT.RooRealVar("f1", "f1", 1, 0, 2) |
Definition at line 40 of file rf704_amplitudefit.py.
| rf704_amplitudefit.f2 = ROOT.RooRealVar("f2", "f2", 0.5, 0, 2) |
Definition at line 41 of file rf704_amplitudefit.py.
| rf704_amplitudefit.frame1 = t.frame() |
Definition at line 64 of file rf704_amplitudefit.py.
| rf704_amplitudefit.frame2 = cosa.frame() |
Definition at line 73 of file rf704_amplitudefit.py.
| rf704_amplitudefit.hh_cos = ampl1.createHistogram("hh_cos", t, Binning=50, YVar=dict(var=cosa, Binning=50)) |
Definition at line 56 of file rf704_amplitudefit.py.
| rf704_amplitudefit.hh_sin = ampl2.createHistogram("hh_sin", t, Binning=50, YVar=dict(var=cosa, Binning=50)) |
Definition at line 57 of file rf704_amplitudefit.py.
| rf704_amplitudefit.LineColor |
Definition at line 68 of file rf704_amplitudefit.py.
| rf704_amplitudefit.LineStyle |
Definition at line 67 of file rf704_amplitudefit.py.
Definition at line 44 of file rf704_amplitudefit.py.
| rf704_amplitudefit.poly1 = ROOT.RooPolyVar("poly1", "poly1", cosa, [0.5, 0.2, 0.2], 0) |
Definition at line 29 of file rf704_amplitudefit.py.
| rf704_amplitudefit.poly2 = ROOT.RooPolyVar("poly2", "poly2", cosa, [1.0, -0.2, 3.0], 0) |
Definition at line 30 of file rf704_amplitudefit.py.
| rf704_amplitudefit.PrintLevel |
Definition at line 50 of file rf704_amplitudefit.py.
| rf704_amplitudefit.sinhG = ROOT.RooFormulaVar("sinhGBasis", "exp(-@0/ @1)*sinh(@0*@2/2)", [t, tau, deltaGamma]) |
Definition at line 26 of file rf704_amplitudefit.py.
| rf704_amplitudefit.t = ROOT.RooRealVar("t", "time", -1.0, 15.0) |
Definition at line 20 of file rf704_amplitudefit.py.
| rf704_amplitudefit.tau = ROOT.RooRealVar("tau", "#tau", 1.5) |
Definition at line 23 of file rf704_amplitudefit.py.