detector

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2018 License: GPL-3.0, GPL-3.0-or-later Imports: 5 Imported by: 2

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

func (g Cylinder) MarshalJSON() ([]byte, error)

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

func (m *Detector) UnmarshalJSON(b []byte) error

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

func (g Geomap) MarshalJSON() ([]byte, error)

MarshalJSON json.Marshaller implementation.

type Geometry

type Geometry interface {
	json.Marshaler
}

Geometry is interface for detector type. It must implement json.Marshaler to marshal detector Type dependant on detector Type implementation type.

type ID

type ID int64

ID is a key type in detector map.

type LetTypeScoring

type LetTypeScoring struct {
	Type     string      `json:"type"`
	Material material.ID `json:"material"`
}

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

func (m Mesh) MarshalJSON() ([]byte, error)

MarshalJSON json.Marshaller implementation.

type Plane

type Plane struct {
	Point  common.Point `json:"point"`
	Normal common.Vec3D `json:"normal"`
}

Plane detector.

func (Plane) MarshalJSON

func (g Plane) MarshalJSON() ([]byte, error)

MarshalJSON json.Marshaller implementation.

type PredefinedParticleRecord

type PredefinedParticleRecord struct {
	Value string `json:"value"`
	Name  string `json:"name"`
}

PredefinedParticleRecord ...

func ParticleTypes

func ParticleTypes() []PredefinedParticleRecord

ParticleTypes ...

type PredefinedScoring

type PredefinedScoring string

PredefinedScoring ...

func (PredefinedScoring) MarshalJSON

func (g PredefinedScoring) MarshalJSON() ([]byte, error)

MarshalJSON json.Marshaller implementation.

type ScoringType

type ScoringType interface {
	json.Marshaler
}

ScoringType is interface for scoring particles.

type ScoringTypeRecord

type ScoringTypeRecord struct {
	Value string `json:"value"`
	Name  string `json:"name"`
}

ScoringTypeRecord ...

func ScoringTypes

func ScoringTypes() []ScoringTypeRecord

ScoringTypes ...

type Zone

type Zone struct {
	Zones []zone.ID `json:"zones"`
}

Zone detector used to debug geometry.

func (Zone) MarshalJSON

func (z Zone) MarshalJSON() ([]byte, error)

MarshalJSON json.Marshaller implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL