Documentation ¶
Overview ¶
Package dif holds functions to manipulate data from DIFs.
Index ¶
Constants ¶
View Source
const ( MaxEventSize = (hardrocV2SLCFrameSize+1)*MaxNumASICs + (20*ASICMemDepth+2)*MaxNumASICs + 3 + MaxFwHeaderSize + 2 + MaxAnalogDataSize + 50 MaxAnalogDataSize = 1024*64*2 + 20 MaxFwHeaderSize = 50 MaxNumASICs = 48 // max number of hardrocs per dif that the system can handle MaxNumDIFs = 200 // max number of difs that the system can handle ASICMemDepth = 128 // memory depth of one asic . 128 is for hardroc v1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DIF ¶
type DIF struct { Header GlobalHeader Frames []Frame }
DIF represents a detector interface.
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder reads and decodes DIF data from an input stream. Decoder computes the CRC-16 checksums on the fly, during the acquisition of DIF Frames.
func NewDecoder ¶
NewDecoder returns a new Decoder that reads from r.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder writes DIF data to an output stream. Encoder computes the CRC-16 checksum on the fly and appends it at the end of the stream.
func NewEncoder ¶
NewEncoder returns a new Encoder that writes to w.
type GlobalHeader ¶
type Readout ¶
type Readout struct {
// contains filtered or unexported fields
}
Readout reads data out of a digital interface board (DIF).
func NewReadout ¶
NewReadout creates a new DIF readout.
Click to show internal directories.
Click to hide internal directories.