rbase

package
v0.34.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package rbase contains the definitions of ROOT base classes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttAxis

type AttAxis struct {
	Ndivs       int32   // number of divisions (10000*n3 + 100*n2 + n1)
	AxisColor   int16   // color of the line axis
	LabelColor  int16   // color of labels
	LabelFont   int16   // font for labels
	LabelOffset float32 // offset of labels
	LabelSize   float32 // size of labels
	Ticks       float32 // length of tick marks
	TitleOffset float32 // offset of axis title
	TitleSize   float32 // size of axis title
	TitleColor  int16   // color of axis title
	TitleFont   int16   // font for axis title
}

func NewAttAxis

func NewAttAxis() *AttAxis

func (*AttAxis) Class

func (*AttAxis) Class() string

func (*AttAxis) MarshalROOT

func (a *AttAxis) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*AttAxis) RMembers added in v0.34.0

func (a *AttAxis) RMembers() (mbrs []rbytes.Member)

func (*AttAxis) RVersion

func (*AttAxis) RVersion() int16

func (*AttAxis) UnmarshalROOT

func (a *AttAxis) UnmarshalROOT(r *rbytes.RBuffer) error

type AttFill

type AttFill struct {
	Color int16
	Style int16
}

func NewAttFill

func NewAttFill() *AttFill

func (*AttFill) Class

func (*AttFill) Class() string

func (*AttFill) MarshalROOT

func (a *AttFill) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*AttFill) RMembers added in v0.34.0

func (a *AttFill) RMembers() []rbytes.Member

func (*AttFill) RVersion

func (*AttFill) RVersion() int16

func (*AttFill) UnmarshalROOT

func (a *AttFill) UnmarshalROOT(r *rbytes.RBuffer) error

type AttLine

type AttLine struct {
	Color int16
	Style int16
	Width int16
}

func NewAttLine

func NewAttLine() *AttLine

func (*AttLine) Class

func (*AttLine) Class() string

func (*AttLine) MarshalROOT

func (a *AttLine) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*AttLine) RMembers added in v0.34.0

func (a *AttLine) RMembers() []rbytes.Member

func (*AttLine) RVersion

func (*AttLine) RVersion() int16

func (*AttLine) UnmarshalROOT

func (a *AttLine) UnmarshalROOT(r *rbytes.RBuffer) error

type AttMarker

type AttMarker struct {
	Color int16
	Style int16
	Width float32
}

func NewAttMarker

func NewAttMarker() *AttMarker

func (*AttMarker) Class

func (*AttMarker) Class() string

func (*AttMarker) MarshalROOT

func (a *AttMarker) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*AttMarker) RMembers added in v0.34.0

func (a *AttMarker) RMembers() []rbytes.Member

func (*AttMarker) RVersion

func (*AttMarker) RVersion() int16

func (*AttMarker) UnmarshalROOT

func (a *AttMarker) UnmarshalROOT(r *rbytes.RBuffer) error

type Datime added in v0.31.0

type Datime time.Time

Datime is a ROOT date + time. Note that ROOT's TDatime is relative to 1995.

func (*Datime) Class added in v0.31.0

func (*Datime) Class() string

func (*Datime) MarshalROOT added in v0.31.0

func (dt *Datime) MarshalROOT(w *rbytes.WBuffer) (int, error)

MarshalROOT implements rbytes.Marshaler

func (*Datime) RVersion added in v0.31.0

func (*Datime) RVersion() int16

func (Datime) String added in v0.31.0

func (dt Datime) String() string

func (Datime) Time added in v0.31.0

func (dt Datime) Time() time.Time

func (*Datime) UnmarshalROOT added in v0.31.0

func (dt *Datime) UnmarshalROOT(r *rbytes.RBuffer) error

UnmarshalROOT implements rbytes.Unmarshaler

type Named

type Named struct {
	// contains filtered or unexported fields
}

The TNamed class is the base class for all named ROOT classes A TNamed contains the essential elements (name, title) to identify a derived object in containers, directories and files. Most member functions defined in this base class are in general overridden by the derived classes.

func NewNamed

func NewNamed(name, title string) *Named

func (*Named) Class

func (*Named) Class() string

func (*Named) MarshalROOT

func (n *Named) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*Named) Name

func (n *Named) Name() string

Name returns the name of the instance

func (*Named) RMembers added in v0.34.0

func (n *Named) RMembers() []rbytes.Member

func (*Named) RVersion

func (*Named) RVersion() int16

func (*Named) SetName

func (n *Named) SetName(name string)

func (*Named) SetTitle

func (n *Named) SetTitle(title string)

func (*Named) Sizeof

func (n *Named) Sizeof() int32

func (*Named) Title

func (n *Named) Title() string

Title returns the title of the instance

func (*Named) UID added in v0.23.0

func (n *Named) UID() uint32

func (*Named) UnmarshalROOT

func (n *Named) UnmarshalROOT(r *rbytes.RBuffer) error

type ObjString

type ObjString struct {
	// contains filtered or unexported fields
}

func NewObjString

func NewObjString(s string) *ObjString

NewObjString creates a new ObjString.

func (*ObjString) Class

func (*ObjString) Class() string

func (*ObjString) MarshalROOT

func (obj *ObjString) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*ObjString) Name

func (obj *ObjString) Name() string

func (*ObjString) RVersion

func (*ObjString) RVersion() int16

func (*ObjString) String

func (obj *ObjString) String() string

func (*ObjString) Title

func (*ObjString) Title() string

func (*ObjString) UID added in v0.23.0

func (obj *ObjString) UID() uint32

func (*ObjString) UnmarshalROOT

func (obj *ObjString) UnmarshalROOT(r *rbytes.RBuffer) error

ROOTUnmarshaler is the interface implemented by an object that can unmarshal itself from a ROOT buffer

type Object

type Object struct {
	ID   uint32
	Bits uint32
}

func NewObject

func NewObject() *Object

func (*Object) Class

func (*Object) Class() string

func (*Object) MarshalROOT

func (obj *Object) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*Object) RMembers added in v0.34.0

func (obj *Object) RMembers() []rbytes.Member

func (*Object) RVersion

func (*Object) RVersion() int

func (*Object) ResetBit added in v0.18.0

func (obj *Object) ResetBit(bit uint32)

func (*Object) SetBit added in v0.18.0

func (obj *Object) SetBit(bit uint32)

func (*Object) SetBits

func (obj *Object) SetBits(bits uint32)

func (*Object) SetID

func (obj *Object) SetID(id uint32)

func (*Object) TestBits added in v0.18.0

func (obj *Object) TestBits(bits uint32) bool

func (*Object) UID added in v0.23.0

func (obj *Object) UID() uint32

func (*Object) UnmarshalROOT

func (obj *Object) UnmarshalROOT(r *rbytes.RBuffer) error

type ProcessID added in v0.23.0

type ProcessID struct {
	// contains filtered or unexported fields
}

ProcessID is ROOT's way to provide a process identifier object.

func (*ProcessID) Class added in v0.23.0

func (*ProcessID) Class() string

func (*ProcessID) MarshalROOT added in v0.23.0

func (pid *ProcessID) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*ProcessID) Name added in v0.23.0

func (pid *ProcessID) Name() string

Name returns the name of the instance

func (*ProcessID) RVersion added in v0.23.0

func (*ProcessID) RVersion() int16

func (*ProcessID) SetName added in v0.23.0

func (pid *ProcessID) SetName(name string)

func (*ProcessID) SetTitle added in v0.23.0

func (pid *ProcessID) SetTitle(title string)

func (*ProcessID) String added in v0.23.0

func (pid *ProcessID) String() string

func (*ProcessID) Title added in v0.23.0

func (pid *ProcessID) Title() string

Title returns the title of the instance

func (*ProcessID) UID added in v0.23.0

func (pid *ProcessID) UID() uint32

func (*ProcessID) UnmarshalROOT added in v0.23.0

func (pid *ProcessID) UnmarshalROOT(r *rbytes.RBuffer) error

type Ref added in v0.23.0

type Ref struct {
	// contains filtered or unexported fields
}

Ref implements a persistent link to a root.Object.

func (*Ref) Class added in v0.23.0

func (*Ref) Class() string

func (*Ref) MarshalROOT added in v0.23.0

func (ref *Ref) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*Ref) Name added in v0.23.0

func (*Ref) Name() string

func (*Ref) Object added in v0.23.0

func (ref *Ref) Object() root.Object

Object returns the root.Object being referenced by this Ref.

func (*Ref) RVersion added in v0.23.0

func (*Ref) RVersion() int16

func (*Ref) String added in v0.23.0

func (ref *Ref) String() string

func (*Ref) Title added in v0.23.0

func (*Ref) Title() string

func (*Ref) UID added in v0.23.0

func (ref *Ref) UID() uint32

func (*Ref) UnmarshalROOT added in v0.23.0

func (ref *Ref) UnmarshalROOT(r *rbytes.RBuffer) error

type UUID

type UUID [16]byte

func (*UUID) Class

func (*UUID) Class() string

func (*UUID) MarshalROOT

func (uuid *UUID) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*UUID) RVersion added in v0.20.0

func (*UUID) RVersion() int16

func (*UUID) Sizeof

func (*UUID) Sizeof() int32

func (*UUID) UnmarshalROOT

func (uuid *UUID) UnmarshalROOT(r *rbytes.RBuffer) error

func (*UUID) UnmarshalROOTv1 added in v0.20.0

func (uuid *UUID) UnmarshalROOTv1(r *rbytes.RBuffer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL