Commit 63542796 authored by David Blyth's avatar David Blyth

Updated for new go-proio

parent 6bab5333
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
"gonum.org/v1/plot" "gonum.org/v1/plot"
"gonum.org/v1/plot/vg" "gonum.org/v1/plot/vg"
"github.com/decibelcooper/eicplot" "eicweb.phy.anl.gov/EIC/eicplot"
) )
func printUsage() { func printUsage() {
...@@ -78,7 +78,7 @@ func makeInvMassHist(filename string) *hbook.H1D { ...@@ -78,7 +78,7 @@ func makeInvMassHist(filename string) *hbook.H1D {
log.Fatal(err) log.Fatal(err)
} }
for event := range reader.ScanEvents() { for event := range reader.ScanEvents(10) {
ids := event.TaggedEntries("Reconstructed") ids := event.TaggedEntries("Reconstructed")
tracks := []*eic.Track{} tracks := []*eic.Track{}
......
module eicweb.phy.anl.gov/EIC/eicplot module eicweb.phy.anl.gov/EIC/eicplot
require ( require (
github.com/ajstarks/svgo v0.0.0-20180830174826-7338bd80e790 // indirect github.com/ajstarks/svgo v0.0.0-20181006003313-6ce6a3bcf6cd // indirect
github.com/awalterschulze/gographviz v0.0.0-20180911070532-316953eb472f // indirect github.com/awalterschulze/gographviz v0.0.0-20181013152038-b2885df04310 // indirect
github.com/go-gl/glfw v0.0.0-20180813204114-2484f3e51bc4 // indirect github.com/cznic/mathutil v0.0.0-20181021201202-eba54fb065b7 // indirect
github.com/hanwen/go-fuse v0.0.0-20180924081158-815666ab119f // indirect github.com/go-gl/gl v0.0.0-20181020191150-629e6eb0370b // indirect
github.com/go-gl/glfw v0.0.0-20181014061658-691ee1b84c51 // indirect
github.com/hanwen/go-fuse v0.0.0-20181015130005-a53ed6b9b54d // indirect
github.com/llgcode/draw2d v0.0.0-20180825133448-f52c8a71aff0 // indirect github.com/llgcode/draw2d v0.0.0-20180825133448-f52c8a71aff0 // indirect
github.com/pborman/uuid v1.2.0 // indirect github.com/pborman/uuid v1.2.0 // indirect
github.com/pierrec/lz4 v2.0.5+incompatible // indirect github.com/pierrec/lz4 v2.0.5+incompatible // indirect
github.com/pkg/profile v1.2.1 github.com/pkg/profile v1.2.1
github.com/proio-org/go-proio v0.3.0 github.com/proio-org/go-proio v0.4.0
github.com/proio-org/go-proio-pb v0.0.0-20180925224606-222cd78bbf2f github.com/proio-org/go-proio-pb v0.0.0-20181010213421-017d1def0591
go-hep.org/x/hep v0.15.0 go-hep.org/x/hep v0.15.0
golang.org/x/crypto v0.0.0-20180910181607-0e37d006457b // indirect golang.org/x/crypto v0.0.0-20181024171144-74cb1d3d52f4 // indirect
golang.org/x/exp v0.0.0-20180907224206-e88728d35e99 // indirect golang.org/x/exp v0.0.0-20181022080537-42ba7d4b6eb2 // indirect
golang.org/x/image v0.0.0-20180926015637-991ec62608f3 // indirect golang.org/x/image v0.0.0-20181023232108-9b1e201e7c4c // indirect
golang.org/x/mobile v0.0.0-20180922163855-920b52be609a // indirect golang.org/x/mobile v0.0.0-20181010163405-92f3b9caf7ba // indirect
golang.org/x/net v0.0.0-20180926154720-4dfa2610cdf3 // indirect golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519 // indirect
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f // indirect golang.org/x/sys v0.0.0-20181024145615-5cd93ef61a7c // indirect
golang.org/x/sys v0.0.0-20180926160741-c2ed4eda69e7 // indirect golang.org/x/tools v0.0.0-20181024171208-a2dc47679d30 // indirect
golang.org/x/tools v0.0.0-20180926203008-ef4a2a23bb35 // indirect gonum.org/v1/gonum v0.0.0-20181019200927-f0982070f509 // indirect
gonum.org/v1/gonum v0.0.0-20180925042723-1b7b288aabab // indirect gonum.org/v1/netlib v0.0.0-20181018051557-57e1e4db57a7 // indirect
gonum.org/v1/netlib v0.0.0-20180925085438-7a718cd5f57a // indirect gonum.org/v1/plot v0.0.0-20181024024241-4632fe2bf7c6
gonum.org/v1/plot v0.0.0-20180905080458-5f3c436ce602
) )
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
"gonum.org/v1/plot" "gonum.org/v1/plot"
"gonum.org/v1/plot/vg" "gonum.org/v1/plot/vg"
"github.com/decibelcooper/eicplot" "eicweb.phy.anl.gov/EIC/eicplot"
) )
func printUsage() { func printUsage() {
...@@ -84,7 +84,7 @@ func makeHists(filename string) []*hbook.H1D { ...@@ -84,7 +84,7 @@ func makeHists(filename string) []*hbook.H1D {
log.Fatal(err) log.Fatal(err)
} }
for event := range reader.ScanEvents() { for event := range reader.ScanEvents(10) {
ids := event.TaggedEntries("Reconstructed") ids := event.TaggedEntries("Reconstructed")
tracks := []*eic.Track{} tracks := []*eic.Track{}
for _, id := range ids { for _, id := range ids {
......
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
"gonum.org/v1/plot" "gonum.org/v1/plot"
"gonum.org/v1/plot/vg" "gonum.org/v1/plot/vg"
"github.com/decibelcooper/eicplot" "eicweb.phy.anl.gov/EIC/eicplot"
) )
func printUsage() { func printUsage() {
...@@ -85,7 +85,7 @@ func makeHists(filename string) []*hbook.H1D { ...@@ -85,7 +85,7 @@ func makeHists(filename string) []*hbook.H1D {
log.Fatal(err) log.Fatal(err)
} }
for event := range reader.ScanEvents() { for event := range reader.ScanEvents(10) {
ids := event.TaggedEntries("Reconstructed") ids := event.TaggedEntries("Reconstructed")
tracks := []*eic.Track{} tracks := []*eic.Track{}
for _, id := range ids { for _, id := range ids {
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"math" "math"
"os" "os"
"github.com/decibelcooper/eicplot" "eicweb.phy.anl.gov/EIC/eicplot"
"github.com/proio-org/go-proio" "github.com/proio-org/go-proio"
"github.com/proio-org/go-proio-pb/model/eic" "github.com/proio-org/go-proio-pb/model/eic"
"go-hep.org/x/hep/hbook" "go-hep.org/x/hep/hbook"
...@@ -51,7 +51,7 @@ func main() { ...@@ -51,7 +51,7 @@ func main() {
hist := hbook.NewH1D(100, -9, 2) hist := hbook.NewH1D(100, -9, 2)
for event := range reader.ScanEvents() { for event := range reader.ScanEvents(10) {
trackerIDs := event.TaggedEntries("Tracker") trackerIDs := event.TaggedEntries("Tracker")
for _, id := range trackerIDs { for _, id := range trackerIDs {
eDep, ok := event.GetEntry(id).(*eic.EnergyDep) eDep, ok := event.GetEntry(id).(*eic.EnergyDep)
......
...@@ -16,7 +16,7 @@ import ( ...@@ -16,7 +16,7 @@ import (
"gonum.org/v1/plot/plotutil" "gonum.org/v1/plot/plotutil"
"gonum.org/v1/plot/vg" "gonum.org/v1/plot/vg"
"github.com/decibelcooper/eicplot" "eicweb.phy.anl.gov/EIC/eicplot"
) )
func printUsage() { func printUsage() {
...@@ -103,7 +103,7 @@ func makeTrackEffPlotters(filename string, pTMin, pTMax, fracCut, etaLimit float ...@@ -103,7 +103,7 @@ func makeTrackEffPlotters(filename string, pTMin, pTMax, fracCut, etaLimit float
} }
eventNum := 0 eventNum := 0
for event := range reader.ScanEvents() { for event := range reader.ScanEvents(10) {
ids := event.TaggedEntries("Reconstructed") ids := event.TaggedEntries("Reconstructed")
for _, id := range ids { for _, id := range ids {
track, ok := event.GetEntry(id).(*eic.Track) track, ok := event.GetEntry(id).(*eic.Track)
......
...@@ -16,7 +16,7 @@ import ( ...@@ -16,7 +16,7 @@ import (
"gonum.org/v1/plot/vg/draw" "gonum.org/v1/plot/vg/draw"
"gonum.org/v1/plot/vg/vgimg" "gonum.org/v1/plot/vg/vgimg"
"github.com/decibelcooper/eicplot" "eicweb.phy.anl.gov/EIC/eicplot"
) )
var ( var (
...@@ -62,7 +62,7 @@ func main() { ...@@ -62,7 +62,7 @@ func main() {
log.Fatal(err) log.Fatal(err)
} }
for event := range reader.ScanEvents() { for event := range reader.ScanEvents(10) {
ids := event.TaggedEntries("Reconstructed") ids := event.TaggedEntries("Reconstructed")
for _, id := range ids { for _, id := range ids {
track, ok := event.GetEntry(id).(*eic.Track) track, ok := event.GetEntry(id).(*eic.Track)
......
...@@ -16,7 +16,7 @@ import ( ...@@ -16,7 +16,7 @@ import (
"gonum.org/v1/plot/vg/draw" "gonum.org/v1/plot/vg/draw"
"gonum.org/v1/plot/vg/vgimg" "gonum.org/v1/plot/vg/vgimg"
"github.com/decibelcooper/eicplot" "eicweb.phy.anl.gov/EIC/eicplot"
) )
var ( var (
...@@ -62,7 +62,7 @@ func main() { ...@@ -62,7 +62,7 @@ func main() {
log.Fatal(err) log.Fatal(err)
} }
for event := range reader.ScanEvents() { for event := range reader.ScanEvents(10) {
ids := event.TaggedEntries("Reconstructed") ids := event.TaggedEntries("Reconstructed")
for _, id := range ids { for _, id := range ids {
track, ok := event.GetEntry(id).(*eic.Track) track, ok := event.GetEntry(id).(*eic.Track)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment