hepgo-hep.org/x/hep/groot/rbase Index | Files

package rbase

import "go-hep.org/x/hep/groot/rbase"

Package rbase contains the definitions of ROOT base classes.

Index

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

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

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

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

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 AttPad

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

func (*AttPad) Class

func (*AttPad) Class() string

func (*AttPad) MarshalROOT

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

func (*AttPad) RVersion

func (*AttPad) RVersion() int16

func (*AttPad) UnmarshalROOT

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

type Datime

type Datime time.Time

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

func (*Datime) Class

func (*Datime) Class() string

func (*Datime) MarshalROOT

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

MarshalROOT implements rbytes.Marshaler

func (*Datime) RVersion

func (*Datime) RVersion() int16

func (Datime) String

func (dt Datime) String() string

func (Datime) Time

func (dt Datime) Time() time.Time

func (*Datime) UnmarshalROOT

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

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

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

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

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

func (*Object) RVersion

func (*Object) RVersion() int

func (*Object) ResetBit

func (obj *Object) ResetBit(bit uint32)

func (*Object) SetBit

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

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

func (*Object) UID

func (obj *Object) UID() uint32

func (*Object) UnmarshalROOT

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

type ProcessID

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

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

func (*ProcessID) Class

func (*ProcessID) Class() string

func (*ProcessID) MarshalROOT

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

func (*ProcessID) Name

func (pid *ProcessID) Name() string

Name returns the name of the instance

func (*ProcessID) RVersion

func (*ProcessID) RVersion() int16

func (*ProcessID) SetName

func (pid *ProcessID) SetName(name string)

func (*ProcessID) SetTitle

func (pid *ProcessID) SetTitle(title string)

func (*ProcessID) String

func (pid *ProcessID) String() string

func (*ProcessID) Title

func (pid *ProcessID) Title() string

Title returns the title of the instance

func (*ProcessID) UID

func (pid *ProcessID) UID() uint32

func (*ProcessID) UnmarshalROOT

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

type QObject

type QObject struct {
}

func (*QObject) Class

func (*QObject) Class() string

func (*QObject) RVersion

func (*QObject) RVersion() int16

func (*QObject) UnmarshalROOT

func (qo *QObject) UnmarshalROOT(r *rbytes.RBuffer) error

type Ref

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

Ref implements a persistent link to a root.Object.

func (*Ref) Class

func (*Ref) Class() string

func (*Ref) MarshalROOT

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

func (*Ref) Name

func (*Ref) Name() string

func (*Ref) Object

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

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

func (*Ref) RVersion

func (*Ref) RVersion() int16

func (*Ref) String

func (ref *Ref) String() string

func (*Ref) Title

func (*Ref) Title() string

func (*Ref) UID

func (ref *Ref) UID() uint32

func (*Ref) UnmarshalROOT

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

type String

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

String is a bare-bone string value implementing root.Object

func NewString

func NewString(v string) *String

func (*String) Class

func (*String) Class() string

func (*String) MarshalROOT

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

func (*String) RVersion

func (*String) RVersion() int16

func (*String) String

func (v *String) String() string

func (*String) UnmarshalROOT

func (obj *String) 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

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

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

type VirtualPad

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

func (*VirtualPad) Class

func (*VirtualPad) Class() string

func (*VirtualPad) RVersion

func (*VirtualPad) RVersion() int16

func (*VirtualPad) UnmarshalROOT

func (vpad *VirtualPad) UnmarshalROOT(r *rbytes.RBuffer) error

Source Files

attaxis.go attfill.go attline.go attmarker.go attpad.go consts.go datime.go named.go object.go objstring.go processid.go qobject.go rbase.go ref.go string.go uuid.go vpad.go

Version
v0.36.0 (latest)
Published
Nov 15, 2024
Platform
linux/amd64
Imports
9 packages
Last checked
2 days ago

Tools for package owners.