Documentation
¶
Overview ¶
Package trackml exposes facilities to ease handling of TrackML datasets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dataset ¶
type Dataset struct {
// contains filtered or unexported fields
}
Dataset is an Event container.
Dataset logically contains many Events, iterating throught the list of Events via the Next method.
Example:
ds, err := NewDataset("./example_standard/dataset", 0, -1, nil) for ds.Next() { evt := ds.Event() } if err := ds.Err(); err != nil { panic(err) }
func NewDataset ¶
func NewDataset(name string, beg, end int, reader EventReader) (Dataset, error)
NewDataset returns the list of datasets from name, a directory or zip file, containing many events data.
beg and end control the number of events to iterate over.
The returned Dataset will use the reader function to load events from a path. If reader is nil, ReadMcEvent is used.
func (*Dataset) Event ¶
Event returns the current event from the dataset. The returned value is valid until a call to Next.
type Event ¶
type Event struct { ID int // event id Hits []Hit // collection of hits for this event Cells []Cell // collection of cells for this event Ps []Particle // collection of reconstructed particles for this event Mcs []Truth // Monte-Carlo truth for this event }
Event stores informations about a complete HEP event.
func ReadEvent ¶
ReadEvent reads a complete Event value from the given path+prefix, but without the Monte-Carlo informations.
func ReadMcEvent ¶
ReadMcEvent reads a complete Event value from the given path+prefix, including Monte-Carlo informations.
type EventReader ¶
EventReader is a function to read an event from a path
type Submission ¶
type Submission struct {
// contains filtered or unexported fields
}
Submission creates a CSV file ready for submission to Kaggle
func NewSubmission ¶
func NewSubmission() (*Submission, error)
func (*Submission) Close ¶
func (sub *Submission) Close() error
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
trkml-hough
trkml-hough is a simple TrackML example using a Hough transform to make predictions, similar to the Jupyter notebook from https://github.com/LAL/trackml-library.
|
trkml-hough is a simple TrackML example using a Hough transform to make predictions, similar to the Jupyter notebook from https://github.com/LAL/trackml-library. |