package rtests

import "go-hep.org/x/hep/groot/internal/rtests"

Index

Variables

var (
	HasROOT   = false // HasROOT is true when a C++ ROOT installation could be detected.
	ErrNoROOT = errors.New("rtests: no C++ ROOT installed")
)

Functions

func GenROOTDictCode

func GenROOTDictCode(event, linkdef string) ([]byte, error)

GenROOTDictCode generates the ROOT dictionary code from the given event and linkdef definitions. GenROOTDictCode invokes rootcling and returns the generated code.

func RunCxxROOT

func RunCxxROOT(fct string, code []byte, args ...interface{}) ([]byte, error)

RunCxxROOT executes the function fct in the provided C++ code with optional arguments args. RunCxxROOT creates a temporary file named '<fct>.C' from the provided C++ code and executes it via ROOT C++. RunCxxROOT returns the combined stdout/stderr output and an error, if any. If 'fct' ends with a '+', RunCxxROOT will run the macro through ACliC.

func XrdRemote

func XrdRemote(fname string) string

Types

type ROOTError

type ROOTError struct {
	Err  error
	Cmd  string
	Args []string
	Out  []byte
}

func (ROOTError) Error

func (err ROOTError) Error() string

func (ROOTError) Unwrap

func (err ROOTError) Unwrap() error

type ROOTer

type ROOTer interface {
	root.Object
	rbytes.Marshaler
	rbytes.Unmarshaler
}

Source Files

rtests.go

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

Tools for package owners.