func (g *tgrapherrs) UnmarshalROOT(r *rbytes.RBuffer) error {
	beg := r.Pos()

	vers, pos, bcnt := r.ReadVersion(g.Class())

	err := g.tgraph.UnmarshalROOT(r)
	if err != nil {
		return err
	}

	if vers < 2 {
		_ = r.ReadI8()
		xerrs := make([]float32, g.tgraph.npoints)
		r.ReadArrayF32(xerrs)
		_ = r.ReadI8()
		yerrs := make([]float32, g.tgraph.npoints)
		r.ReadArrayF32(yerrs)
		g.xerr = make([]float64, len(xerrs))
		g.yerr = make([]float64, len(yerrs))
		for i := range xerrs {
			g.xerr[i] = float64(xerrs[i])
			g.yerr[i] = float64(yerrs[i])
		}

	} else {
		_ = r.ReadI8()
		g.xerr = make([]float64, g.tgraph.npoints)
		r.ReadArrayF64(g.xerr)
		_ = r.ReadI8()
		g.yerr = make([]float64, g.tgraph.npoints)
		r.ReadArrayF64(g.yerr)
	}
	r.CheckByteCount(pos, bcnt, beg, g.Class())
	return r.Err()
}
// ROOTUnmarshaler is the interface implemented by an object that can
// unmarshal itself from a ROOT buffer
ROOTUnmarshaler is the interface implemented by an object that can
unmarshal itself from a ROOT buffer
// ROOTUnmarshaler is the interface implemented by an object that can // unmarshal itself from a ROOT buffer
func (g *tgrapherrs) UnmarshalROOT(r *rbytes.RBuffer) error {
	beg := r.Pos()
	vers, pos, bcnt := r.ReadVersion(g.Class())
	err := g.tgraph.UnmarshalROOT(r)
	if err != nil {
		return err
	}
	if vers < 2 {
		_ = r.ReadI8()
		xerrs := make([]float32, g.tgraph.npoints)
		r.ReadArrayF32(xerrs)
		_ = r.ReadI8()
		yerrs := make([]float32, g.tgraph.npoints)
		r.ReadArrayF32(yerrs)
		g.xerr = make([]float64, len(xerrs))
		g.yerr = make([]float64, len(yerrs))
		for i := range xerrs {
			g.xerr[i] = float64(xerrs[i])
			g.yerr[i] = float64(yerrs[i])
		}
	} else {
		_ = r.ReadI8()
		g.xerr = make([]float64, g.tgraph.npoints)
		r.ReadArrayF64(g.xerr)
		_ = r.ReadI8()
		g.yerr = make([]float64, g.tgraph.npoints)
		r.ReadArrayF64(g.yerr)
	}
	r.CheckByteCount(pos, bcnt, beg, g.Class())
	return r.Err()
}
func ( g * tgrapherrs ) UnmarshalROOT ( r * rbytes . RBuffer ) error { beg := r . Pos ( ) vers , pos , bcnt := r . ReadVersion ( g . Class ( ) ) err := g . tgraph . UnmarshalROOT ( r ) if err != nil { return err } if vers < 2 { _ = r . ReadI8 ( ) xerrs := make ( [ ] float32 , g . tgraph . npoints ) r . ReadArrayF32 ( xerrs ) _ = r . ReadI8 ( ) yerrs := make ( [ ] float32 , g . tgraph . npoints ) r . ReadArrayF32 ( yerrs ) g . xerr = make ( [ ] float64 , len ( xerrs ) ) g . yerr = make ( [ ] float64 , len ( yerrs ) ) for i := range xerrs { g . xerr [ i ] = float64 ( xerrs [ i ] ) g . yerr [ i ] = float64 ( yerrs [ i ] ) } } else { _ = r . ReadI8 ( ) g . xerr = make ( [ ] float64 , g . tgraph . npoints ) r . ReadArrayF64 ( g . xerr ) _ = r . ReadI8 ( ) g . yerr = make ( [ ] float64 , g . tgraph . npoints ) r . ReadArrayF64 ( g . yerr ) } r . CheckByteCount ( pos , bcnt , beg , g . Class ( ) ) return r . Err ( ) }
ROOTUnmarshaler is the interface implemented by an object that can
unmarshal itself from a ROOT buffer
ROOTUnmarshaler is the interface implemented by an object that can unmarshal itself from a ROOT buffer