package rhist
import "go-hep.org/x/hep/groot/rhist"
Package rhist contains the interfaces and definitions of ROOT types related to histograms and graphs.
Index ¶
- func NewAxis(name string) *taxis
- type Axis
- type ConfidenceLevel
- func (*ConfidenceLevel) Class() string
- func (o *ConfidenceLevel) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (*ConfidenceLevel) RVersion() int16
- func (o *ConfidenceLevel) UnmarshalROOT(r *rbytes.RBuffer) error
- type Efficiency
- func (*Efficiency) Class() string
- func (o *Efficiency) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (*Efficiency) RVersion() int16
- func (o *Efficiency) UnmarshalROOT(r *rbytes.RBuffer) error
- type F1
- func (*F1) Class() string
- func (f *F1) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (f *F1) Name() string
- func (*F1) RVersion() int16
- func (f *F1) String() string
- func (f *F1) Title() string
- func (f *F1) UnmarshalROOT(r *rbytes.RBuffer) error
- type F1Composition
- type F1Convolution
- func (*F1Convolution) Class() string
- func (*F1Convolution) RVersion() int16
- func (f *F1Convolution) String() string
- func (f *F1Convolution) UnmarshalROOT(r *rbytes.RBuffer) error
- type F1NormSum
- func (*F1NormSum) Class() string
- func (*F1NormSum) RVersion() int16
- func (f *F1NormSum) String() string
- func (f *F1NormSum) UnmarshalROOT(r *rbytes.RBuffer) error
- type F1Parameters
- func (*F1Parameters) Class() string
- func (*F1Parameters) RVersion() int16
- func (f *F1Parameters) String() string
- func (f *F1Parameters) UnmarshalROOT(r *rbytes.RBuffer) error
- type Formula
- func (*Formula) Class() string
- func (f *Formula) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (f *Formula) Name() string
- func (*Formula) RVersion() int16
- func (f *Formula) String() string
- func (f *Formula) Title() string
- func (f *Formula) UnmarshalROOT(r *rbytes.RBuffer) error
- type Graph
- type GraphErrors
- func NewGraphAsymmErrorsFrom(s2 *hbook.S2D) GraphErrors
- func NewGraphErrorsFrom(s2 *hbook.S2D) GraphErrors
- func NewGraphMultiErrorsFrom(s2 *hbook.S2D) GraphErrors
- type H1
- type H1D
- func NewH1DFrom(h *hbook.H1D) *H1D
- func (h *H1D) Array() rcont.ArrayD
- func (h *H1D) AsH1D() *hbook.H1D
- func (*H1D) Class() string
- func (h *H1D) Entries() float64
- func (h *H1D) Get(name string) (root.Object, error)
- func (h *H1D) Keys() []string
- func (h *H1D) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (h *H1D) MarshalYODA() ([]byte, error)
- func (h *H1D) NbinsX() int
- func (h *H1D) RMembers() (mbrs []rbytes.Member)
- func (h *H1D) ROOTMerge(src root.Object) error
- func (*H1D) RVersion() int16
- func (h *H1D) Rank() int
- func (h *H1D) SumW() float64
- func (h *H1D) SumW2() float64
- func (h *H1D) SumW2s() []float64
- func (h *H1D) SumWX() float64
- func (h *H1D) SumWX2() float64
- func (h *H1D) UnmarshalROOT(r *rbytes.RBuffer) error
- func (h *H1D) UnmarshalYODA(raw []byte) error
- func (h *H1D) XAxis() Axis
- func (h *H1D) XBinCenter(i int) float64
- func (h *H1D) XBinContent(i int) float64
- func (h *H1D) XBinError(i int) float64
- func (h *H1D) XBinLowEdge(i int) float64
- func (h *H1D) XBinWidth(i int) float64
- type H1F
- func NewH1FFrom(h *hbook.H1D) *H1F
- func (h *H1F) Array() rcont.ArrayF
- func (h *H1F) AsH1D() *hbook.H1D
- func (*H1F) Class() string
- func (h *H1F) Entries() float64
- func (h *H1F) Get(name string) (root.Object, error)
- func (h *H1F) Keys() []string
- func (h *H1F) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (h *H1F) MarshalYODA() ([]byte, error)
- func (h *H1F) NbinsX() int
- func (h *H1F) RMembers() (mbrs []rbytes.Member)
- func (h *H1F) ROOTMerge(src root.Object) error
- func (*H1F) RVersion() int16
- func (h *H1F) Rank() int
- func (h *H1F) SumW() float64
- func (h *H1F) SumW2() float64
- func (h *H1F) SumW2s() []float64
- func (h *H1F) SumWX() float64
- func (h *H1F) SumWX2() float64
- func (h *H1F) UnmarshalROOT(r *rbytes.RBuffer) error
- func (h *H1F) UnmarshalYODA(raw []byte) error
- func (h *H1F) XAxis() Axis
- func (h *H1F) XBinCenter(i int) float64
- func (h *H1F) XBinContent(i int) float64
- func (h *H1F) XBinError(i int) float64
- func (h *H1F) XBinLowEdge(i int) float64
- func (h *H1F) XBinWidth(i int) float64
- type H1I
- func NewH1IFrom(h *hbook.H1D) *H1I
- func (h *H1I) Array() rcont.ArrayI
- func (h *H1I) AsH1D() *hbook.H1D
- func (*H1I) Class() string
- func (h *H1I) Entries() float64
- func (h *H1I) Get(name string) (root.Object, error)
- func (h *H1I) Keys() []string
- func (h *H1I) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (h *H1I) MarshalYODA() ([]byte, error)
- func (h *H1I) NbinsX() int
- func (h *H1I) RMembers() (mbrs []rbytes.Member)
- func (h *H1I) ROOTMerge(src root.Object) error
- func (*H1I) RVersion() int16
- func (h *H1I) Rank() int
- func (h *H1I) SumW() float64
- func (h *H1I) SumW2() float64
- func (h *H1I) SumW2s() []float64
- func (h *H1I) SumWX() float64
- func (h *H1I) SumWX2() float64
- func (h *H1I) UnmarshalROOT(r *rbytes.RBuffer) error
- func (h *H1I) UnmarshalYODA(raw []byte) error
- func (h *H1I) XAxis() Axis
- func (h *H1I) XBinCenter(i int) float64
- func (h *H1I) XBinContent(i int) float64
- func (h *H1I) XBinError(i int) float64
- func (h *H1I) XBinLowEdge(i int) float64
- func (h *H1I) XBinWidth(i int) float64
- type H2
- type H2D
- func NewH2DFrom(h *hbook.H2D) *H2D
- func (h *H2D) Array() rcont.ArrayD
- func (h *H2D) AsH2D() *hbook.H2D
- func (*H2D) Class() string
- func (h *H2D) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (h *H2D) MarshalYODA() ([]byte, error)
- func (h *H2D) NbinsX() int
- func (h *H2D) NbinsY() int
- func (h *H2D) RMembers() (mbrs []rbytes.Member)
- func (*H2D) RVersion() int16
- func (h *H2D) Rank() int
- func (h *H2D) SumWXY() float64
- func (h *H2D) SumWY() float64
- func (h *H2D) SumWY2() float64
- func (h *H2D) UnmarshalROOT(r *rbytes.RBuffer) error
- func (h *H2D) UnmarshalYODA(raw []byte) error
- func (h *H2D) XAxis() Axis
- func (h *H2D) XBinCenter(i int) float64
- func (h *H2D) XBinContent(i int) float64
- func (h *H2D) XBinError(i int) float64
- func (h *H2D) XBinLowEdge(i int) float64
- func (h *H2D) XBinWidth(i int) float64
- func (h *H2D) YAxis() Axis
- func (h *H2D) YBinCenter(i int) float64
- func (h *H2D) YBinContent(i int) float64
- func (h *H2D) YBinError(i int) float64
- func (h *H2D) YBinLowEdge(i int) float64
- func (h *H2D) YBinWidth(i int) float64
- type H2F
- func NewH2FFrom(h *hbook.H2D) *H2F
- func (h *H2F) Array() rcont.ArrayF
- func (h *H2F) AsH2D() *hbook.H2D
- func (*H2F) Class() string
- func (h *H2F) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (h *H2F) MarshalYODA() ([]byte, error)
- func (h *H2F) NbinsX() int
- func (h *H2F) NbinsY() int
- func (h *H2F) RMembers() (mbrs []rbytes.Member)
- func (*H2F) RVersion() int16
- func (h *H2F) Rank() int
- func (h *H2F) SumWXY() float64
- func (h *H2F) SumWY() float64
- func (h *H2F) SumWY2() float64
- func (h *H2F) UnmarshalROOT(r *rbytes.RBuffer) error
- func (h *H2F) UnmarshalYODA(raw []byte) error
- func (h *H2F) XAxis() Axis
- func (h *H2F) XBinCenter(i int) float64
- func (h *H2F) XBinContent(i int) float64
- func (h *H2F) XBinError(i int) float64
- func (h *H2F) XBinLowEdge(i int) float64
- func (h *H2F) XBinWidth(i int) float64
- func (h *H2F) YAxis() Axis
- func (h *H2F) YBinCenter(i int) float64
- func (h *H2F) YBinContent(i int) float64
- func (h *H2F) YBinError(i int) float64
- func (h *H2F) YBinLowEdge(i int) float64
- func (h *H2F) YBinWidth(i int) float64
- type H2I
- func NewH2IFrom(h *hbook.H2D) *H2I
- func (h *H2I) Array() rcont.ArrayI
- func (h *H2I) AsH2D() *hbook.H2D
- func (*H2I) Class() string
- func (h *H2I) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (h *H2I) MarshalYODA() ([]byte, error)
- func (h *H2I) NbinsX() int
- func (h *H2I) NbinsY() int
- func (h *H2I) RMembers() (mbrs []rbytes.Member)
- func (*H2I) RVersion() int16
- func (h *H2I) Rank() int
- func (h *H2I) SumWXY() float64
- func (h *H2I) SumWY() float64
- func (h *H2I) SumWY2() float64
- func (h *H2I) UnmarshalROOT(r *rbytes.RBuffer) error
- func (h *H2I) UnmarshalYODA(raw []byte) error
- func (h *H2I) XAxis() Axis
- func (h *H2I) XBinCenter(i int) float64
- func (h *H2I) XBinContent(i int) float64
- func (h *H2I) XBinError(i int) float64
- func (h *H2I) XBinLowEdge(i int) float64
- func (h *H2I) XBinWidth(i int) float64
- func (h *H2I) YAxis() Axis
- func (h *H2I) YBinCenter(i int) float64
- func (h *H2I) YBinContent(i int) float64
- func (h *H2I) YBinError(i int) float64
- func (h *H2I) YBinLowEdge(i int) float64
- func (h *H2I) YBinWidth(i int) float64
- type Limit
- func (*Limit) Class() string
- func (o *Limit) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (*Limit) RVersion() int16
- func (o *Limit) UnmarshalROOT(r *rbytes.RBuffer) error
- type LimitDataSource
- func (*LimitDataSource) Class() string
- func (o *LimitDataSource) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (*LimitDataSource) RVersion() int16
- func (o *LimitDataSource) UnmarshalROOT(r *rbytes.RBuffer) error
- type MultiGraph
- type Profile1D
- func (*Profile1D) Class() string
- func (p *Profile1D) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (*Profile1D) RVersion() int16
- func (p *Profile1D) UnmarshalROOT(r *rbytes.RBuffer) error
- type Profile2D
- func (*Profile2D) Class() string
- func (p2d *Profile2D) MarshalROOT(w *rbytes.WBuffer) (int, error)
- func (*Profile2D) RVersion() int16
- func (p2d *Profile2D) UnmarshalROOT(r *rbytes.RBuffer) error
- type Scatter
Examples ¶
Functions ¶
func NewAxis ¶
func NewAxis(name string) *taxis
Types ¶
type Axis ¶
type Axis interface { root.Named XMin() float64 XMax() float64 NBins() int XBins() []float64 BinCenter(int) float64 BinLowEdge(int) float64 BinWidth(int) float64 }
Axis describes a ROOT TAxis.
type ConfidenceLevel ¶
type ConfidenceLevel struct {
// contains filtered or unexported fields
}
ConfidenceLevel holds information about 95% confidence level limits.
func (*ConfidenceLevel) Class ¶
func (*ConfidenceLevel) Class() string
func (*ConfidenceLevel) MarshalROOT ¶
func (o *ConfidenceLevel) MarshalROOT(w *rbytes.WBuffer) (int, error)
MarshalROOT implements rbytes.Marshaler
func (*ConfidenceLevel) RVersion ¶
func (*ConfidenceLevel) RVersion() int16
func (*ConfidenceLevel) UnmarshalROOT ¶
func (o *ConfidenceLevel) UnmarshalROOT(r *rbytes.RBuffer) error
UnmarshalROOT implements rbytes.Unmarshaler
type Efficiency ¶
type Efficiency struct {
// contains filtered or unexported fields
}
Efficiency handles efficiency histograms.
func (*Efficiency) Class ¶
func (*Efficiency) Class() string
func (*Efficiency) MarshalROOT ¶
func (o *Efficiency) MarshalROOT(w *rbytes.WBuffer) (int, error)
MarshalROOT implements rbytes.Marshaler
func (*Efficiency) RVersion ¶
func (*Efficiency) RVersion() int16
func (*Efficiency) UnmarshalROOT ¶
func (o *Efficiency) UnmarshalROOT(r *rbytes.RBuffer) error
UnmarshalROOT implements rbytes.Unmarshaler
type F1 ¶
type F1 struct {
// contains filtered or unexported fields
}
F1 is a ROOT 1-dim function.
func (*F1) Class ¶
func (*F1) MarshalROOT ¶
MarshalROOT implements rbytes.Marshaler
func (*F1) Name ¶
Name returns the name of the instance
func (*F1) RVersion ¶
func (*F1) String ¶
func (*F1) Title ¶
Title returns the title of the instance
func (*F1) UnmarshalROOT ¶
type F1Composition ¶
F1Composition describes a 1-dim functions composition.
type F1Convolution ¶
type F1Convolution struct {
// contains filtered or unexported fields
}
F1Convolution is a ROOT composition function describing a convolution between two TF1 ROOT functions.
func (*F1Convolution) Class ¶
func (*F1Convolution) Class() string
func (*F1Convolution) RVersion ¶
func (*F1Convolution) RVersion() int16
func (*F1Convolution) String ¶
func (f *F1Convolution) String() string
func (*F1Convolution) UnmarshalROOT ¶
func (f *F1Convolution) UnmarshalROOT(r *rbytes.RBuffer) error
type F1NormSum ¶
type F1NormSum struct {
// contains filtered or unexported fields
}
F1NormSum is a ROOT composition function describing the linear combination of two TF1 ROOT functions.
func (*F1NormSum) Class ¶
func (*F1NormSum) RVersion ¶
func (*F1NormSum) String ¶
func (*F1NormSum) UnmarshalROOT ¶
type F1Parameters ¶
type F1Parameters struct {
// contains filtered or unexported fields
}
func (*F1Parameters) Class ¶
func (*F1Parameters) Class() string
func (*F1Parameters) RVersion ¶
func (*F1Parameters) RVersion() int16
func (*F1Parameters) String ¶
func (f *F1Parameters) String() string
func (*F1Parameters) UnmarshalROOT ¶
func (f *F1Parameters) UnmarshalROOT(r *rbytes.RBuffer) error
type Formula ¶
type Formula struct {
// contains filtered or unexported fields
}
Formula describes a ROOT TFormula.
func (*Formula) Class ¶
func (*Formula) MarshalROOT ¶
MarshalROOT implements rbytes.Marshaler
func (*Formula) Name ¶
Name returns the name of the instance
func (*Formula) RVersion ¶
func (*Formula) String ¶
func (*Formula) Title ¶
Title returns the title of the instance
func (*Formula) UnmarshalROOT ¶
type Graph ¶
Graph describes a ROOT TGraph
Code:play
Output:Example¶
package main
import (
"fmt"
"log"
"go-hep.org/x/hep/groot"
"go-hep.org/x/hep/groot/rhist"
)
func main() {
f, err := groot.Open("../testdata/graphs.root")
if err != nil {
log.Fatal(err)
}
defer f.Close()
obj, err := f.Get("tg")
if err != nil {
log.Fatal(err)
}
g := obj.(rhist.Graph)
fmt.Printf("name: %q\n", g.Name())
fmt.Printf("title: %q\n", g.Title())
fmt.Printf("#pts: %d\n", g.Len())
for i := 0; i < g.Len(); i++ {
x, y := g.XY(i)
fmt.Printf("(x,y)[%d] = (%+e, %+e)\n", i, x, y)
}
}
name: "tg"
title: "graph without errors"
#pts: 4
(x,y)[0] = (+1.000000e+00, +2.000000e+00)
(x,y)[1] = (+2.000000e+00, +4.000000e+00)
(x,y)[2] = (+3.000000e+00, +6.000000e+00)
(x,y)[3] = (+4.000000e+00, +8.000000e+00)
func NewGraphFrom ¶
NewGraphFrom creates a new Graph from 2-dim hbook data points.
type GraphErrors ¶
type GraphErrors interface { Graph // XError returns two error values for X data. XError(i int) (float64, float64) // YError returns two error values for Y data. YError(i int) (float64, float64) }
GraphErrors describes a ROOT TGraphErrors
Code:play
Output: Code:play
Output:Example¶
package main
import (
"fmt"
"log"
"go-hep.org/x/hep/groot"
"go-hep.org/x/hep/groot/rhist"
)
func main() {
f, err := groot.Open("../testdata/graphs.root")
if err != nil {
log.Fatal(err)
}
defer f.Close()
obj, err := f.Get("tge")
if err != nil {
log.Fatal(err)
}
g := obj.(rhist.GraphErrors)
fmt.Printf("name: %q\n", g.Name())
fmt.Printf("title: %q\n", g.Title())
fmt.Printf("#pts: %d\n", g.Len())
for i := 0; i < g.Len(); i++ {
x, y := g.XY(i)
xlo, xhi := g.XError(i)
ylo, yhi := g.YError(i)
fmt.Printf("(x,y)[%d] = (%+e +/- [%+e, %+e], %+e +/- [%+e, %+e])\n", i, x, xlo, xhi, y, ylo, yhi)
}
}
name: "tge"
title: "graph with errors"
#pts: 4
(x,y)[0] = (+1.000000e+00 +/- [+1.000000e-01, +1.000000e-01], +2.000000e+00 +/- [+2.000000e-01, +2.000000e-01])
(x,y)[1] = (+2.000000e+00 +/- [+2.000000e-01, +2.000000e-01], +4.000000e+00 +/- [+4.000000e-01, +4.000000e-01])
(x,y)[2] = (+3.000000e+00 +/- [+3.000000e-01, +3.000000e-01], +6.000000e+00 +/- [+6.000000e-01, +6.000000e-01])
(x,y)[3] = (+4.000000e+00 +/- [+4.000000e-01, +4.000000e-01], +8.000000e+00 +/- [+8.000000e-01, +8.000000e-01])
Example (AsymmErrors)¶
package main
import (
"fmt"
"log"
"go-hep.org/x/hep/groot"
"go-hep.org/x/hep/groot/rhist"
)
func main() {
f, err := groot.Open("../testdata/graphs.root")
if err != nil {
log.Fatal(err)
}
defer f.Close()
obj, err := f.Get("tgae")
if err != nil {
log.Fatal(err)
}
g := obj.(rhist.GraphErrors)
fmt.Printf("name: %q\n", g.Name())
fmt.Printf("title: %q\n", g.Title())
fmt.Printf("#pts: %d\n", g.Len())
for i := 0; i < g.Len(); i++ {
x, y := g.XY(i)
xlo, xhi := g.XError(i)
ylo, yhi := g.YError(i)
fmt.Printf("(x,y)[%d] = (%+e +/- [%+e, %+e], %+e +/- [%+e, %+e])\n", i, x, xlo, xhi, y, ylo, yhi)
}
}
name: "tgae"
title: "graph with asymmetric errors"
#pts: 4
(x,y)[0] = (+1.000000e+00 +/- [+1.000000e-01, +2.000000e-01], +2.000000e+00 +/- [+3.000000e-01, +4.000000e-01])
(x,y)[1] = (+2.000000e+00 +/- [+2.000000e-01, +4.000000e-01], +4.000000e+00 +/- [+6.000000e-01, +8.000000e-01])
(x,y)[2] = (+3.000000e+00 +/- [+3.000000e-01, +6.000000e-01], +6.000000e+00 +/- [+9.000000e-01, +1.200000e+00])
(x,y)[3] = (+4.000000e+00 +/- [+4.000000e-01, +8.000000e-01], +8.000000e+00 +/- [+1.200000e+00, +1.600000e+00])
func NewGraphAsymmErrorsFrom ¶
func NewGraphAsymmErrorsFrom(s2 *hbook.S2D) GraphErrors
NewGraphAsymmErrorsFrom creates a new GraphAsymErrors from 2-dim hbook data points.
func NewGraphErrorsFrom ¶
func NewGraphErrorsFrom(s2 *hbook.S2D) GraphErrors
NewGraphErrorsFrom creates a new GraphErrors from 2-dim hbook data points.
func NewGraphMultiErrorsFrom ¶
func NewGraphMultiErrorsFrom(s2 *hbook.S2D) GraphErrors
NewGraphMultiErrorsFrom creates a new GraphMultiErrors from 2-dim hbook data points.
type H1 ¶
type H1 interface { root.Named // Entries returns the number of entries for this histogram. Entries() float64 // SumW returns the total sum of weights SumW() float64 // SumW2 returns the total sum of squares of weights SumW2() float64 // SumWX returns the total sum of weights*x SumWX() float64 // SumWX2 returns the total sum of weights*x*x SumWX2() float64 // SumW2s returns the array of sum of squares of weights SumW2s() []float64 // contains filtered or unexported methods }
H1 is a 1-dim ROOT histogram
type H1D ¶
type H1D struct {
// contains filtered or unexported fields
}
H1D implements ROOT TH1D
func NewH1DFrom ¶
NewH1DFrom creates a new 1-dim histogram from hbook.
func (*H1D) Array ¶
func (*H1D) AsH1D ¶
AsH1D creates a new hbook.H1D from this ROOT histogram.
func (*H1D) Class ¶
Class returns the ROOT class name.
func (*H1D) Entries ¶
func (h *H1D) Entries() float64
Entries returns the number of entries for this histogram.
func (*H1D) Get ¶
Get implements the ObjectFinder interface.
func (*H1D) Keys ¶
func (h *H1D) Keys() []string
Keys implements the ObjectFinder interface.
func (*H1D) MarshalROOT ¶
func (*H1D) MarshalYODA ¶
MarshalYODA implements the YODAMarshaler interface.
func (*H1D) NbinsX ¶
NbinsX returns the number of bins in X.
func (*H1D) RMembers ¶
func (*H1D) ROOTMerge ¶
func (*H1D) RVersion ¶
func (*H1D) Rank ¶
Rank returns the number of dimensions of this histogram.
func (*H1D) SumW ¶
func (h *H1D) SumW() float64
SumW returns the total sum of weights
func (*H1D) SumW2 ¶
func (h *H1D) SumW2() float64
SumW2 returns the total sum of squares of weights
func (*H1D) SumW2s ¶
func (h *H1D) SumW2s() []float64
SumW2s returns the array of sum of squares of weights
func (*H1D) SumWX ¶
func (h *H1D) SumWX() float64
SumWX returns the total sum of weights*x
func (*H1D) SumWX2 ¶
func (h *H1D) SumWX2() float64
SumWX2 returns the total sum of weights*x*x
func (*H1D) UnmarshalROOT ¶
func (*H1D) UnmarshalYODA ¶
UnmarshalYODA implements the YODAUnmarshaler interface.
func (*H1D) XAxis ¶
XAxis returns the axis along X.
func (*H1D) XBinCenter ¶
XBinCenter returns the bin center value in X.
func (*H1D) XBinContent ¶
XBinContent returns the bin content value in X.
func (*H1D) XBinError ¶
XBinError returns the bin error in X.
func (*H1D) XBinLowEdge ¶
XBinLowEdge returns the bin lower edge value in X.
func (*H1D) XBinWidth ¶
XBinWidth returns the bin width in X.
type H1F ¶
type H1F struct {
// contains filtered or unexported fields
}
H1F implements ROOT TH1F
func NewH1FFrom ¶
NewH1FFrom creates a new 1-dim histogram from hbook.
func (*H1F) Array ¶
func (*H1F) AsH1D ¶
AsH1D creates a new hbook.H1D from this ROOT histogram.
func (*H1F) Class ¶
Class returns the ROOT class name.
func (*H1F) Entries ¶
func (h *H1F) Entries() float64
Entries returns the number of entries for this histogram.
func (*H1F) Get ¶
Get implements the ObjectFinder interface.
func (*H1F) Keys ¶
func (h *H1F) Keys() []string
Keys implements the ObjectFinder interface.
func (*H1F) MarshalROOT ¶
func (*H1F) MarshalYODA ¶
MarshalYODA implements the YODAMarshaler interface.
func (*H1F) NbinsX ¶
NbinsX returns the number of bins in X.
func (*H1F) RMembers ¶
func (*H1F) ROOTMerge ¶
func (*H1F) RVersion ¶
func (*H1F) Rank ¶
Rank returns the number of dimensions of this histogram.
func (*H1F) SumW ¶
func (h *H1F) SumW() float64
SumW returns the total sum of weights
func (*H1F) SumW2 ¶
func (h *H1F) SumW2() float64
SumW2 returns the total sum of squares of weights
func (*H1F) SumW2s ¶
func (h *H1F) SumW2s() []float64
SumW2s returns the array of sum of squares of weights
func (*H1F) SumWX ¶
func (h *H1F) SumWX() float64
SumWX returns the total sum of weights*x
func (*H1F) SumWX2 ¶
func (h *H1F) SumWX2() float64
SumWX2 returns the total sum of weights*x*x
func (*H1F) UnmarshalROOT ¶
func (*H1F) UnmarshalYODA ¶
UnmarshalYODA implements the YODAUnmarshaler interface.
func (*H1F) XAxis ¶
XAxis returns the axis along X.
func (*H1F) XBinCenter ¶
XBinCenter returns the bin center value in X.
func (*H1F) XBinContent ¶
XBinContent returns the bin content value in X.
func (*H1F) XBinError ¶
XBinError returns the bin error in X.
func (*H1F) XBinLowEdge ¶
XBinLowEdge returns the bin lower edge value in X.
func (*H1F) XBinWidth ¶
XBinWidth returns the bin width in X.
type H1I ¶
type H1I struct {
// contains filtered or unexported fields
}
H1I implements ROOT TH1I
func NewH1IFrom ¶
NewH1IFrom creates a new 1-dim histogram from hbook.
func (*H1I) Array ¶
func (*H1I) AsH1D ¶
AsH1D creates a new hbook.H1D from this ROOT histogram.
func (*H1I) Class ¶
Class returns the ROOT class name.
func (*H1I) Entries ¶
func (h *H1I) Entries() float64
Entries returns the number of entries for this histogram.
func (*H1I) Get ¶
Get implements the ObjectFinder interface.
func (*H1I) Keys ¶
func (h *H1I) Keys() []string
Keys implements the ObjectFinder interface.
func (*H1I) MarshalROOT ¶
func (*H1I) MarshalYODA ¶
MarshalYODA implements the YODAMarshaler interface.
func (*H1I) NbinsX ¶
NbinsX returns the number of bins in X.
func (*H1I) RMembers ¶
func (*H1I) ROOTMerge ¶
func (*H1I) RVersion ¶
func (*H1I) Rank ¶
Rank returns the number of dimensions of this histogram.
func (*H1I) SumW ¶
func (h *H1I) SumW() float64
SumW returns the total sum of weights
func (*H1I) SumW2 ¶
func (h *H1I) SumW2() float64
SumW2 returns the total sum of squares of weights
func (*H1I) SumW2s ¶
func (h *H1I) SumW2s() []float64
SumW2s returns the array of sum of squares of weights
func (*H1I) SumWX ¶
func (h *H1I) SumWX() float64
SumWX returns the total sum of weights*x
func (*H1I) SumWX2 ¶
func (h *H1I) SumWX2() float64
SumWX2 returns the total sum of weights*x*x
func (*H1I) UnmarshalROOT ¶
func (*H1I) UnmarshalYODA ¶
UnmarshalYODA implements the YODAUnmarshaler interface.
func (*H1I) XAxis ¶
XAxis returns the axis along X.
func (*H1I) XBinCenter ¶
XBinCenter returns the bin center value in X.
func (*H1I) XBinContent ¶
XBinContent returns the bin content value in X.
func (*H1I) XBinError ¶
XBinError returns the bin error in X.
func (*H1I) XBinLowEdge ¶
XBinLowEdge returns the bin lower edge value in X.
func (*H1I) XBinWidth ¶
XBinWidth returns the bin width in X.
type H2 ¶
type H2 interface { root.Named // Entries returns the number of entries for this histogram. Entries() float64 // SumW returns the total sum of weights SumW() float64 // SumW2 returns the total sum of squares of weights SumW2() float64 // SumWX returns the total sum of weights*x SumWX() float64 // SumWX2 returns the total sum of weights*x*x SumWX2() float64 // SumW2s returns the array of sum of squares of weights SumW2s() []float64 // SumWY returns the total sum of weights*y SumWY() float64 // SumWY2 returns the total sum of weights*y*y SumWY2() float64 // SumWXY returns the total sum of weights*x*y SumWXY() float64 // contains filtered or unexported methods }
H2 is a 2-dim ROOT histogram
type H2D ¶
type H2D struct {
// contains filtered or unexported fields
}
H2D implements ROOT TH2D
func NewH2DFrom ¶
NewH2DFrom creates a new H2D from hbook 2-dim histogram.
func (*H2D) Array ¶
func (*H2D) AsH2D ¶
AsH2D creates a new hbook.H2D from this ROOT histogram.
func (*H2D) Class ¶
Class returns the ROOT class name.
func (*H2D) MarshalROOT ¶
func (*H2D) MarshalYODA ¶
MarshalYODA implements the YODAMarshaler interface.
func (*H2D) NbinsX ¶
NbinsX returns the number of bins in X.
func (*H2D) NbinsY ¶
NbinsY returns the number of bins in Y.
func (*H2D) RMembers ¶
func (*H2D) RVersion ¶
func (*H2D) Rank ¶
Rank returns the number of dimensions of this histogram.
func (*H2D) SumWXY ¶
func (h *H2D) SumWXY() float64
SumWXY returns the total sum of weights*x*y
func (*H2D) SumWY ¶
func (h *H2D) SumWY() float64
SumWY returns the total sum of weights*y
func (*H2D) SumWY2 ¶
func (h *H2D) SumWY2() float64
SumWY2 returns the total sum of weights*y*y
func (*H2D) UnmarshalROOT ¶
func (*H2D) UnmarshalYODA ¶
UnmarshalYODA implements the YODAUnmarshaler interface.
func (*H2D) XAxis ¶
XAxis returns the axis along X.
func (*H2D) XBinCenter ¶
XBinCenter returns the bin center value in X.
func (*H2D) XBinContent ¶
XBinContent returns the bin content value in X.
func (*H2D) XBinError ¶
XBinError returns the bin error in X.
func (*H2D) XBinLowEdge ¶
XBinLowEdge returns the bin lower edge value in X.
func (*H2D) XBinWidth ¶
XBinWidth returns the bin width in X.
func (*H2D) YAxis ¶
YAxis returns the axis along Y.
func (*H2D) YBinCenter ¶
YBinCenter returns the bin center value in Y.
func (*H2D) YBinContent ¶
YBinContent returns the bin content value in Y.
func (*H2D) YBinError ¶
YBinError returns the bin error in Y.
func (*H2D) YBinLowEdge ¶
YBinLowEdge returns the bin lower edge value in Y.
func (*H2D) YBinWidth ¶
YBinWidth returns the bin width in Y.
type H2F ¶
type H2F struct {
// contains filtered or unexported fields
}
H2F implements ROOT TH2F
func NewH2FFrom ¶
NewH2FFrom creates a new H2F from hbook 2-dim histogram.
func (*H2F) Array ¶
func (*H2F) AsH2D ¶
AsH2D creates a new hbook.H2D from this ROOT histogram.
func (*H2F) Class ¶
Class returns the ROOT class name.
func (*H2F) MarshalROOT ¶
func (*H2F) MarshalYODA ¶
MarshalYODA implements the YODAMarshaler interface.
func (*H2F) NbinsX ¶
NbinsX returns the number of bins in X.
func (*H2F) NbinsY ¶
NbinsY returns the number of bins in Y.
func (*H2F) RMembers ¶
func (*H2F) RVersion ¶
func (*H2F) Rank ¶
Rank returns the number of dimensions of this histogram.
func (*H2F) SumWXY ¶
func (h *H2F) SumWXY() float64
SumWXY returns the total sum of weights*x*y
func (*H2F) SumWY ¶
func (h *H2F) SumWY() float64
SumWY returns the total sum of weights*y
func (*H2F) SumWY2 ¶
func (h *H2F) SumWY2() float64
SumWY2 returns the total sum of weights*y*y
func (*H2F) UnmarshalROOT ¶
func (*H2F) UnmarshalYODA ¶
UnmarshalYODA implements the YODAUnmarshaler interface.
func (*H2F) XAxis ¶
XAxis returns the axis along X.
func (*H2F) XBinCenter ¶
XBinCenter returns the bin center value in X.
func (*H2F) XBinContent ¶
XBinContent returns the bin content value in X.
func (*H2F) XBinError ¶
XBinError returns the bin error in X.
func (*H2F) XBinLowEdge ¶
XBinLowEdge returns the bin lower edge value in X.
func (*H2F) XBinWidth ¶
XBinWidth returns the bin width in X.
func (*H2F) YAxis ¶
YAxis returns the axis along Y.
func (*H2F) YBinCenter ¶
YBinCenter returns the bin center value in Y.
func (*H2F) YBinContent ¶
YBinContent returns the bin content value in Y.
func (*H2F) YBinError ¶
YBinError returns the bin error in Y.
func (*H2F) YBinLowEdge ¶
YBinLowEdge returns the bin lower edge value in Y.
func (*H2F) YBinWidth ¶
YBinWidth returns the bin width in Y.
type H2I ¶
type H2I struct {
// contains filtered or unexported fields
}
H2I implements ROOT TH2I
func NewH2IFrom ¶
NewH2IFrom creates a new H2I from hbook 2-dim histogram.
func (*H2I) Array ¶
func (*H2I) AsH2D ¶
AsH2D creates a new hbook.H2D from this ROOT histogram.
func (*H2I) Class ¶
Class returns the ROOT class name.
func (*H2I) MarshalROOT ¶
func (*H2I) MarshalYODA ¶
MarshalYODA implements the YODAMarshaler interface.
func (*H2I) NbinsX ¶
NbinsX returns the number of bins in X.
func (*H2I) NbinsY ¶
NbinsY returns the number of bins in Y.
func (*H2I) RMembers ¶
func (*H2I) RVersion ¶
func (*H2I) Rank ¶
Rank returns the number of dimensions of this histogram.
func (*H2I) SumWXY ¶
func (h *H2I) SumWXY() float64
SumWXY returns the total sum of weights*x*y
func (*H2I) SumWY ¶
func (h *H2I) SumWY() float64
SumWY returns the total sum of weights*y
func (*H2I) SumWY2 ¶
func (h *H2I) SumWY2() float64
SumWY2 returns the total sum of weights*y*y
func (*H2I) UnmarshalROOT ¶
func (*H2I) UnmarshalYODA ¶
UnmarshalYODA implements the YODAUnmarshaler interface.
func (*H2I) XAxis ¶
XAxis returns the axis along X.
func (*H2I) XBinCenter ¶
XBinCenter returns the bin center value in X.
func (*H2I) XBinContent ¶
XBinContent returns the bin content value in X.
func (*H2I) XBinError ¶
XBinError returns the bin error in X.
func (*H2I) XBinLowEdge ¶
XBinLowEdge returns the bin lower edge value in X.
func (*H2I) XBinWidth ¶
XBinWidth returns the bin width in X.
func (*H2I) YAxis ¶
YAxis returns the axis along Y.
func (*H2I) YBinCenter ¶
YBinCenter returns the bin center value in Y.
func (*H2I) YBinContent ¶
YBinContent returns the bin content value in Y.
func (*H2I) YBinError ¶
YBinError returns the bin error in Y.
func (*H2I) YBinLowEdge ¶
YBinLowEdge returns the bin lower edge value in Y.
func (*H2I) YBinWidth ¶
YBinWidth returns the bin width in Y.
type Limit ¶
type Limit struct{}
func (*Limit) Class ¶
func (*Limit) MarshalROOT ¶
MarshalROOT implements rbytes.Marshaler
func (*Limit) RVersion ¶
func (*Limit) UnmarshalROOT ¶
UnmarshalROOT implements rbytes.Unmarshaler
type LimitDataSource ¶
type LimitDataSource struct {
// contains filtered or unexported fields
}
func (*LimitDataSource) Class ¶
func (*LimitDataSource) Class() string
func (*LimitDataSource) MarshalROOT ¶
func (o *LimitDataSource) MarshalROOT(w *rbytes.WBuffer) (int, error)
MarshalROOT implements rbytes.Marshaler
func (*LimitDataSource) RVersion ¶
func (*LimitDataSource) RVersion() int16
func (*LimitDataSource) UnmarshalROOT ¶
func (o *LimitDataSource) UnmarshalROOT(r *rbytes.RBuffer) error
UnmarshalROOT implements rbytes.Unmarshaler
type MultiGraph ¶
MultiGraph describes a ROOT TMultiGraph
type Profile1D ¶
type Profile1D struct {
// contains filtered or unexported fields
}
Profile1D is a 1-dim profile histogram.
func (*Profile1D) Class ¶
func (*Profile1D) MarshalROOT ¶
MarshalROOT implements rbytes.Marshaler
func (*Profile1D) RVersion ¶
func (*Profile1D) UnmarshalROOT ¶
UnmarshalROOT implements rbytes.Unmarshaler
type Profile2D ¶
type Profile2D struct {
// contains filtered or unexported fields
}
Profile2D is a 2-dim profile histogram.
func (*Profile2D) Class ¶
func (*Profile2D) MarshalROOT ¶
MarshalROOT implements rbytes.Marshaler
func (*Profile2D) RVersion ¶
func (*Profile2D) UnmarshalROOT ¶
UnmarshalROOT implements rbytes.Unmarshaler
type Scatter ¶
Scatter implements ROOT's TScatter. A scatter plot able to draw four variables on a single plot.
func (*Scatter) Class ¶
func (*Scatter) MarshalROOT ¶
ROOTMarshaler is the interface implemented by an object that can marshal itself to a ROOT buffer
func (*Scatter) RMembers ¶
func (*Scatter) ROOTMerge ¶
func (*Scatter) RVersion ¶
func (*Scatter) UnmarshalROOT ¶
ROOTUnmarshaler is the interface implemented by an object that can unmarshal itself from a ROOT buffer
Source Files ¶
axis.go confidence_level.go efficiency.go formula.go func1.go graph.go h1_gen.go h2_gen.go hist.go limit.go multigraph.go p1d.go p2d.go rhist.go scatter.go
- Version
- v0.36.0 (latest)
- Published
- Nov 15, 2024
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 2 days ago –
Tools for package owners.