Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (30 sloc) 1.41 KB
// Copyright 2017 The go-hep Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package hepevt provides access to the HEPEVT event format record from FORTRAN-77.
package hepevt // import ""
// Event is the Go representation of the FORTRAN-77 HEPEVT common block:
type Event struct {
Nevhep int // event number (or some special meaning, see doc for details)
Nhep int // actual number of entries in current event
Isthep []int // status code for n'th entry
Idhep []int // particle identifier according to PDG
Jmohep [][2]int // index of 1st and 2nd mother
Jdahep [][2]int // index of 1st and 2nd daughter
Phep [][5]float64 // particle 5-vector (px,py,pz,e,m)
Vhep [][4]float64 // vertex 4-vector (x,y,z,t)
// Particle holds informations about a MC-truth particle, in the
// HEPEVT format.
type Particle struct {
Status int32 // status code (see hepevt doc)
Id int32 // barcode
Mothers [2]int32 // indices of 1st and 2nd mothers
Daughters [2]int32 // indices of 1st and 2nd mothers
P [5]float64 // (px,py,pz,e,m)
V [4]float64 // vertex position (x,y,z,t)