DATEbased DAQ Hideyuki Sakamoto CM 22 RAL 191008
DATE-based DAQ Hideyuki Sakamoto CM 22, RAL 19/10/08 1
R 8 cosmic-ray test stand • In R 8, cosmic-ray test for Tracker#1 is running, and Tracker DAQ has been tested this time. Trigger counter (C 3, 4) Light-guides Cryo#1 Tracker#1 Light-guides Lead block Cryo#2 Trigger counter (C 1, 2) 2
DATE-based DAQ • By the last week, DAQ using DATE with EPICS has been checked to work correctly by the following procedures. 1. 2. 3. 4. 5. 6. 7. 8. 9. Installation of DATE package Write test code Rebuild trigger logic Take data of C 1 -4 counters with DATE Check data Take data of C 1 -4 and 8 VLSBs Check data with that taken by EXCEL Replace code of AFE with EPICS one Check data 3
DATE http: //ph-dep-aid. web. cern. ch/ph-dep-aid/ on 15 th. Oct 08 Installed 4
GUIs for DATE 2 1 1. 2. 3. 4. Status display DAQRUNCONTROL DATE Logger edit. Db 3 4 5
Readout in DATE • User implement following 5 functions in XXX equipment. 1. 2. 3. 4. 5. Arm. XXX Dis. Arm. XX Asynch. Readout. XXX Event. Arrived. XXX Read. Event. XXX - called called at starting run at stopping run every event after Arm. XXX after trigger arrived • User register parameters, such as base address in My. SQL. • User get those parameters from function’s argument. • User can choose options to generate trigger and/or generate data for XXX equipment. 6
Our equipments a b c d e a. b. c. d. e. f. SBS VME bus adaptor CAEN V 977 I/O Register CAEN V 792 N QDC (16 ch-lemo) MIL-1553 VLSB Trigger module VLSB module f From AFEIIt From C 1 -4 7
Equipments in DATE Name Description Type D T #/pars. VME bus adapter 40 0 AFE AFEIIt boards 50 1 V 977 CAEN I/O Register 60 0 1 2 V 792 N CAEN QDC (16 ch-lemo) 70 1 0 2 VLSBSlave VLSB board 80 1 0 6 VLSBMaster VLSB trigger board/ VLSBSlave controller 90 0 1 10 Type D T #/pars. : : Number to identify the equipment GENDATA GENTRIGGER Number of parameters registered in My. SQL 8
Start run • AFE 1. Check if AFEIIt boards are configured – If no, run stop, and – User configures boards using EPICS Configuration. UI. 2. Enabling trigger of AFE boards by EPICS 9
Event loop Delay module VETO Coin. C 1 -4 V 977 I/O T 560 TTL VLSB Trig clock Triggger 2 3 4 LVDS 6 Event. Arrived. VLSBMaster Read. Event. VLSBSlave 1 2 3 4 5 6 7 AFEIIt 7 1, 5 MIL 1553 VLSB Enable trigger of VLSB Reset VETO Wait until trigger is arrived Check if trigger was accepted to AFE. If no, go back to 2 Disable trigger of VLSB Enable monitoring Read Temp/Heat of cassette Disable monitoring 10 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) 11
DATE Event Structure event header equipment A equipment header DATA equipment B 12
DATE Event Header (17 words) name #/words description event. Size (byte) 1 event. Magic 1 event. Header. Size (byte) 1 event. Version 1 event. Type 1 SOR/EOR, PHYSICS, … event. Run. Nb 1 Run# event. Id 2 Event# event. Trigger. Pattern 2 event. Detector. Pattern 1 event. Type. Attribute 3 event. Ldc. Id 1 Ldc# event. Gdc. Id 1 Gdc# (=0 xffff for no GDCs) event. Timestamp 1 Timestamp Header (17 words) + Data 68(0 x 44) byte = 17 word 13
DATE Equipment Header (7 words) names #/words descriptions equipment. Size (byte) 1 Header (7 words) + Data equipment. Type 1 # to identify different type of equipment. ID 1 # to identify same type of equipment. Type. Attribute 3 Not used equipment. Basic. Element. Size (byte) 1 Not used 14
Raw data (@IC) SOR event Header • Equipments (GENDATA) – 2 AFEIIts & 1 VLSB (includes 2 boards) SOR event Header • Events recorded – SOR – PHYSICS event Header – EOR (not seen here) • Size of Equipments LHB Header – AFE = 23 words = 92(0 x 5 c) bytes • 7(Header) + 8 (temp) + 8 (heater power) – VLSB = 1167 words = 4668 (0 x 123 c) bytes LHB data • 7(Header) + 1160 (145 x 4 links x 2 boards) RHB Header • Size of PHYSICS event – 1230 words = 4920 (0 x 1338) bytes RHB data = 17(Header) + 23 x 2(2 AFE) + 1167(1 VLSB w/ 2 boards) VLSB header VLSB data 15
V 792 N (QDC) Data Format name #/words description data 16 Raw data (ch 0 – ch 15) V 792 N 32 bit data format: 16
AFE Data Format name #/words description cassette. Size 1 #/cassettes (currently 4) temp. Size 1 #/temperatures (should be 8) temperature temp. Size Temperature (9. 0 etc. ) heater. Size 1 #/heater values (should be 8) heatervalue heat. Size Heater value (100 etc. ) …continue to the next cassette Note that, temperature is NOT integer. Use float (4 bytes) to read its value. Heater value is integer. 17
VLSB Data Format name #/words description trig. Size 1 #/triggers (currently, 1) bank 1 Size 1 #/data (180, etc. . ) bank 1 data bank 1 Size VLSB 32 bit data bank 2 Size 1 bank 2 data bank 2 Size bank 3 Size 1 bank 3 data bank 3 Size bank 4 Size 1 bank 4 data bank 4 Size …continue to the next trigger VLSB 32 bit data format: 31 30 29 28 27 Counter 26 25 24 23 22 21 Status bits 20 19 18 17 Data flag 16 15 14 13 12 11 Pair 1 Chan/ADC/TDC 10 9 8 7 6 5 4 3 Pair 0 Chan/ADC/TDC 2 1 0 syncbit 18
C 1 -4 ADC distribution 19
Temperatures/Heater values of Cassettes 20
VLPC ADC distribution 21
Summary • Tracker DAQ based on DATE in combination with EPICS has been tested and checked to work correctly at R 8 cosmic-ray test stand. 22
Next step (R 8 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. ) 23
- Slides: 23