Date Installation and EPICS Integration for Tracker DAQ
E N D
Presentation Transcript
Tracker DAQ Hideyuki Sakamoto CM22, RAL 19/10/08
Tracker DAQ with EPICS • 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
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)
AFEIIt (512 channels/board) Light-guides Light to VLPC LVDS To VLSB Clock from VLSB trigger board DATA FGPA D-FGPA A-FGPA ADC Tript preamp Signal VLPC array in bottom of cassette convert light to signal
VME modules 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
DATE installation http://ph-dep-aid.web.cern.ch/ph-dep-aid/ on 15thOct08 Installed
Notes on v6.28 • Few codes were needed to fix to start readout process. • Path to readout exe. file is changed as below. ${DATE_SITE}/hostname (@v6.09) ${DATE_SITE}/aloneldc (@6.28)
List of equipments at cosmic-ray test Type : Number to identify the equipment D : GENDATA T : GENTRIGGER #/pars. : Number of parameters registered in MySQL
Responsibility of DATE and EPICS in Tracker DAQ • DATE • Readout data from VLSB • Enable/Disable trigger of VLSB • Clear VLSB buffer • EPICS • Configure AFEIIt boards • Enable/Disable trigger of AFE • Read temp./heater values of cassette
1. EPICS server 2. RunControlUI 3. Logger 4. ConfigurationUI 5. AFEIItMonitor GUIs forEPICS 2 1 3 4 5
Embedding EPICS code in DATE • EPICS - wrapped with C++ • DATE - written by C • Compile equipmentList file by g++, then linked with other DATE object files to make readout exe. file. • ~10 lines in “infoLogger.h” were changed as below. - extern void infoLog extern “C” void inforLog #ifdef __cplusplus #endif __cplusplus
Start run • ArmAFE() 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
Data taking • Latest run(#323) is currently taking data, now it has 2k events. • Trigger rate is about 0.016 Hz (1 event/min)
Decoding • There 3 equipments to record data • V792N: ADC of trigger counters (4 channels) • AFE: Temp/Heater of 4 cassettes (32 channels) • VLSBSlave: ADC/TDC of 8 VLSBs (4096 channels)
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
Temperatures/Heater values of Cassettes Data unpacked from recorded data
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 is to take data for Step II.