Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Rand *rand.Rand Recorder *Recorder Kinetic struct { Min float64 // in GeV Max float64 // in GeV } Step struct { Min float64 // in meters Max float64 // in meters } TransportRatio float64 EnergyLossRatio float64 MagneticRatio float64 Data interface{} // contains filtered or unexported fields }
func (*Context) Initialize ¶
func (*Context) Propagate ¶
Propagate propagates through a pre-configured set of media using either:
- propagation through a uniform medium
- propagation through a set of media described by a locator function.
func (*Context) SetLocator ¶
type MaterialKind ¶
type MaterialKind int
MaterialKind describes the kind of medium through which a particle propagates.
const ( StandardRock MaterialKind = iota DryAir Concrete Iron Lead )
type Medium ¶
type Medium struct { Material MaterialKind Magnetized bool Density float64 Magnet fmom.Vec3 }
Medium is a medium descriptor.
type PropertyKind ¶
type PropertyKind int
const ( Kinetic PropertyKind = iota Grammage WeightedTime EnergyLoss LarmorIntegral0 LarmorIntegral1 LarmorIntegral2 LarmorIntegral3 LarmorIntegral4 LarmorIntegral5 LarmorIntegral6 LarmorIntegral7 LarmorPhase )
Click to show internal directories.
Click to hide internal directories.