entities

package
v0.0.0-...-658d53b Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoardID

type BoardID string
const (
	GBKB00 BoardID = "GBKB00"
	GBKB01 BoardID = "GBKB01"
	GBKB03 BoardID = "GBKB03"
	GBKB10 BoardID = "GBKB10"
	GBKB11 BoardID = "GBKB11"
	GBKB13 BoardID = "GBKB13"
)

func NewBoardID

func NewBoardID(boardID string) (BoardID, error)

type ClockCounter

type ClockCounter uint32

type EncodingClockDepth

type EncodingClockDepth uint16

type FlushAdc

type FlushAdc [4][entconst.Clock]uint16

type InputCh2Counter

type InputCh2Counter uint32

type InvalidBoardIDError

type InvalidBoardIDError struct {
	Got string
}

func (InvalidBoardIDError) Error

func (e InvalidBoardIDError) Error() string

type InvalidFlushAdcHeaderError

type InvalidFlushAdcHeaderError struct {
	Got      uint16
	Expected byte
}

func (InvalidFlushAdcHeaderError) Error

type InvalidHeaderError

type InvalidHeaderError struct {
	Got      []byte
	Expected []byte
}

func (InvalidHeaderError) Error

func (e InvalidHeaderError) Error() string

type MadaEvent

type MadaEvent struct {
	Trigger            TriggerCounter
	Clock              ClockCounter
	InputCh2           InputCh2Counter
	Version            Version
	EncodingClockDepth EncodingClockDepth
	FlushADC           FlushAdc
	Hits               []MadaHit
}

type MadaHit

type MadaHit struct {
	Clock uint16
	IsHit [128]bool
}

type RawEvent

type RawEvent struct {
	Trigger               TriggerCounter
	ClockMap              map[BoardID]ClockCounter
	InputCh2Map           map[BoardID]InputCh2Counter
	VersionMap            map[BoardID]Version
	EncodingClockDepthMap map[BoardID]EncodingClockDepth
	FlushAdcMap           map[BoardID]FlushAdc
	HitsMap               map[BoardID]RawHits
}

type RawHits

type RawHits [entconst.Clock][128]bool

func RawHitsFromMadaHits

func RawHitsFromMadaHits(madaHits []MadaHit) RawHits

type TriggerCounter

type TriggerCounter uint32

type Version

type Version struct {
	Year  uint8
	Month uint8
	Sub   uint8
}

Jump to

Keyboard shortcuts

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