230 likes | 249 Views
Evaluation report on DATE-based DAQ system tested on Tracker#1 at R8 cosmic-ray test stand. Includes procedures, equipment details, data recording formats, and next steps for implementation and testing.
E N D
DATE-based DAQ Hideyuki Sakamoto CM22, RAL 19/10/08
R8 cosmic-ray test stand • In R8, cosmic-ray test for Tracker#1 is running, and Tracker DAQ has been tested this time. Trigger counter (C3,4) Light-guides Light-guides Tracker#1 Cryo#1 Cryo#2 Lead block Trigger counter (C1,2)
DATE-based DAQ • By the last week, DAQ using DATE with EPICS has been checked to work correctly by the following procedures. • Installation of DATE package • Write test code • Rebuild trigger logic • Take data of C1-4 counters with DATE • Check data • Take data of C1-4 and 8 VLSBs • Check data with that taken by EXCEL • Replace code of AFE with EPICS one • Check data
DATE http://ph-dep-aid.web.cern.ch/ph-dep-aid/ on 15thOct08 Installed
1. Status display 2. DAQRUNCONTROL 3. DATE Logger 4. editDb GUIs for DATE 3 2 1 4
Readout in DATE • User implement following 5 functions in XXX equipment. • ArmXXX - called at starting run • DisArmXX - called at stopping run • AsynchReadoutXXX - called every event • EventArrivedXXX - called after ArmXXX • ReadEventXXX - called after trigger arrived • User register parameters, such as base address in MySQL. • User get those parameters from function’s argument. • User can choose options to generate trigger and/or generate data for XXX equipment.
Our equipments a b c d e f • SBS VME bus adaptor • CAEN V977 I/O Register • CAEN V792N QDC (16ch-lemo) • MIL-1553 • VLSB Trigger module • VLSB module From AFEIIt From C1-4
Equipments in DATE Type : Number to identify the equipment D : GENDATA T : GENTRIGGER #/pars. : Number of parameters registered in MySQL
Start run • AFE 1. Check if AFEIIt boards are configured • If no, run stop, and • User configures boards using EPICS ConfigurationUI. 2. Enabling trigger of AFE boards by EPICS
AFEIIt VLSB Event loop Delay module VETO clock TTL Coin. V977 I/O T560 VLSB Trig Triggger C1-4 2 3 4 LVDS 6 MIL1553 EventArrivedVLSBMaster 1, 5 7 ReadEventVLSBSlave 1 Enable trigger of VLSB 2 Reset VETO 3 Wait until trigger is arrived 4 Check if trigger was accepted to AFE. If no, go back to 2 5 Disable trigger of VLSB 6 Enable monitoring Read Temp/Heat of cassette Disable monitoring 7 Read VLSB data Clear VLSB buffer
Decoding • Following data are recorded. • ADC of trigger counters (4 channels) • Temp/Heater of 4 cassettes (32 channels) • ADC/TDC of 8 VLSBs (4096 channels)
DATE Event Structure event equipment event header equipment header equipment A DATA equipment B
Equipments (GENDATA) 2 AFEIIts & 1 VLSB (includes 2 boards) Events recorded SOR PHYSICS EOR (not seen here) Size of Equipments AFE = 23 words = 92(0x5c) bytes 7(Header) + 8 (temp) + 8 (heater power) VLSB = 1167 words = 4668 (0x123c) bytes 7(Header) + 1160 (145 x 4 links x 2 boards) Size of PHYSICS event 1230 words = 4920 (0x1338) bytes = 17(Header) + 23 x 2(2 AFE) + 1167(1 VLSB w/ 2boards) Raw data (@IC) SOR event Header SOR event Header PHYSICS event Header LHB Header LHB data RHB Header RHB data VLSB header VLSB data
V792N (QDC) Data Format V792N 32bit data format:
AFE Data Format Note that, temperature is NOT integer. Use float (4 bytes) to read its value. Heater value is integer.
VLSB Data Format VLSB32bit data format: 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Counter Status bits Data flag Pair1 Pair0 syncbit Chan/ADC/TDC Chan/ADC/TDC
Summary • Tracker DAQ based on DATE in combination with EPICS has been tested and checked to work correctly at R8 cosmic-ray test stand.
Next step (R8 XXX MLCR) • Modify readout code according to newly updated firmware (VLSB/AFE?) if necessary. • Installing Tracker#1 in MICE Hall. • Move DAQ pc/VME crate to MLCR. • Construct trigger logic using ISIS Spill. • Test/debug • … • Take beam data (Step II.)