This is an old revision of the document!
Two crates are read by the Sweeper DAQ software (one CAMAC and one VME), but more could be easily added to the software. This section describes the data format coming from each controller. (Please, note that this data format is irrelevant for the user; this is so because the USB data are “pre-unpacked” by the Sweeper Pre-unpacker software before being distributed to the user.)
The CCUSB controller used to read data out of the CAMAC crate generates buffers of variable length. The first two words (16 bits each) are the buffer headers where information about the buffer is encoded. Events then follow until a single word 0xFFFF which is the buffer terminator. The format is as follows:
Header1 | Header2 | Events… | 0xFFFF |
---|
Header1 codes the number of events in bits 0-11. Bit14=1 indicates a scaler buffer, while bit15=1 indicates a watchdog buffer (not used in this implementation).
Header2 codes the number of words in the buffer in bits 0-11.
The format of events is as follows:
Length | 0xC801 | Event counter bits 0-15 | Event counter bits 16-23 | Event counter bits 24-39 | Event counter bits 40-47 | Tag | Data… | End Tag | Tag | Data… | End Tag | … |
---|
The length is the number of words following in the event. Note that IT IS NOT SELF-INCLUSIVE!
The word 0xC801 identifies the origin of the event as from the Sweeper CAMAC crate
The following 6 words encode the 48 bit event number
The tags and end tags identify the modules being read and encapsulate the data from each. The tags, end tags and their corresponding modules are listed below:
0x2367, 0xf367: LeCroy ULM2367 Trigger module
0x4300, 0xf300: LeCroy4300B FERA module for plastic scintillator energies
0x7164, 0xf164: Phillips7164 ADC module for ion chamber energies
0x7167, 0xf167: Phillips7164 ADC module for CRDC anodes (energies and TAC)
0x7186, 0xf168: Phillips7186 TDC module for time-of-flights (OBSOLETE)