pawgo

command
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: 29 Imported by: 0

README

pawgo

pawgo is a nod to the old PAW physics analysis workstation.

Installation

$ go get -u go-hep.org/x/hep/pawgo

Example

$ pawgo

:::::::::::::::::::::::::::::
:::   Welcome to PAW-Go   :::
:::::::::::::::::::::::::::::

Type /? for help.
^D or /quit to quit.

paw> /?
/!              -- run a shell command
/?              -- print help
/file/close     -- close a file
/file/create    -- create file for write access
/file/list      -- list a file's content
/file/open      -- open file for read access
/hist/open      -- open a histogram
/hist/plot      -- plot a histogram
/quit           -- quit PAW-Go

paw> /file/open f testdata/hsimple.rio
paw> /file/ls f
/file/id/f name=testdata/hsimple.rio
 	- h1	(type="*go-hep.org/x/hep/hbook.H1D")
 	- h2	(type="*go-hep.org/x/hep/hbook.H1D")

paw> /hist/open h /file/id/f/h1
paw> /hist/plot h
== h1d: name="h1"
entries=1000
mean=  -0.059
RMS=   +1.009

Documentation

Overview

pawgo is a simple interactive shell to quickly plot hbook histograms from rio files.

Example:

$> pawgo
paw> /file/open f testdata/issue-120.rio
paw> /file/ls f
/file/id/f name=testdata/issue-120.rio
 	- MonoH_Truth/jets	(type="*go-hep.org/x/hep/hbook.H1D")

paw> /hist/open h /file/id/f/MonoH_Truth/jets
paw> /hist/plot h
== h1d: name="MonoH_Truth/jets"
entries=20000
mean=  +2.554
RMS=   +2.891
paw> /?
/! 		-- run a shell command
/? 		-- print help
/file/close 	-- close a file
/file/create 	-- create file for write access
/file/list 	-- list a file's content
/file/open 	-- open file for read access
/hist/open 	-- open a histogram
/hist/plot 	-- plot a histogram
/quit 		-- quit PAW-Go

Jump to

Keyboard shortcuts

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