Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cylinder ¶
type Cylinder struct {
Radius common.Range `json:"radius"`
Angle common.Range `json:"angle"`
ZValue common.Range `json:"zValue"`
Slices common.Vec3DCylindricalInt `json:"slices"`
}
Cylinder is detector with cylindrical shape directed along z-axis.
func (Cylinder) MarshalJSON ¶
MarshalJSON json.Marshaller implementation.
type Detector ¶
type Detector struct {
ID ID `json:"id"`
Name string `json:"name"`
DetectorGeometry Geometry `json:"detectorGeometry"`
ScoredParticle common.Particle `json:"particle"`
ScoringType ScoringType `json:"scoring"`
}
Detector describes where and what values are scored during simulation.
func (*Detector) UnmarshalJSON ¶
UnmarshalJSON custom Unmarshal function. detector.Type is recognized by detector/type in json.
type Geomap ¶
type Geomap struct {
Center common.Point `json:"center"`
Size common.Vec3D `json:"size"`
Slices common.Vec3DInt `json:"slices"`
}
Geomap detector used to debug geometry.
func (Geomap) MarshalJSON ¶
MarshalJSON json.Marshaller implementation.
type Geometry ¶
Geometry is interface for detector type. It must implement json.Marshaler to marshal detector Type dependant on detector Type implementation type.
type LetTypeScoring ¶
LetTypeScoring ...
func (LetTypeScoring) MarshalJSON ¶
func (s LetTypeScoring) MarshalJSON() ([]byte, error)
MarshalJSON json.Marshaller implementation.
type Mesh ¶
type Mesh struct {
Center common.Point `json:"center"`
Size common.Vec3D `json:"size"`
Slices common.Vec3DInt `json:"slices"`
}
Mesh detector.
func (Mesh) MarshalJSON ¶
MarshalJSON json.Marshaller implementation.
type PredefinedParticleRecord ¶
PredefinedParticleRecord ...
type PredefinedScoring ¶
type PredefinedScoring string
PredefinedScoring ...
func (PredefinedScoring) MarshalJSON ¶
func (g PredefinedScoring) MarshalJSON() ([]byte, error)
MarshalJSON json.Marshaller implementation.
type ScoringType ¶
ScoringType is interface for scoring particles.
type ScoringTypeRecord ¶
ScoringTypeRecord ...