klm-crt data logging - phys.hawaii.eduidlab/bronson/projects/150812_belleii... · klms= klm...

26
KLM-CRT Data logging Isar Mostafanezhad University of Hawaii at Manoa Belle II Summer School at PNNL August 2015 1

Upload: vuongquynh

Post on 09-Sep-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

KLM-CRT Data loggingIsar Mostafanezhad

University of Hawaii at Manoa

Belle II Summer School at PNNL

August 2015

1

Page 2: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Overview

1. Components

2. Datapath

3. Detector wiring

4. Slow Control and Status Registers

5. Logging in and taking data

2Belle II Summer School, PNNL, August 2015

Page 3: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Belle II: KLM Scintillator Upgrade

• KLM detectors:• Endcap: scintillators

• Barrel: scintillators +RPCs

• Located outside the magnet

• ITEP

High performance readout system for Belle II KLM- IEEE NSS 2014, N47-6: Thursday Nov 13, 2014 11:45 am -12:00 pm

3Belle II Summer School, PNNL, August 2015

Page 4: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Key Hardware Components and Locations

4

RHIC

MotherboardSCROD

10x TXDC

Data Concentrator

PocketDAQ:HSLB, COPPER

FTSWUT3Barrel/Endcap Scintillators

Preamps and Carriers

Detector LayersAtop or around Magnet

E-hut

HV Power Supply

9UVME

6UVME

Belle II Summer School, PNNL, August 2015

RPC FEE13x RPC FEE

Barrel RPC Layers

Page 5: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

KLM Geometry

5

9U+6U crates

6U crate only

http://www.phys.hawaii.edu/~idlab/taskAndSchedule/KLM/KLMcrate_config.pdf

Belle II Summer School, PNNL, August 2015

Page 6: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

BKLM Crate Location

High performance readout system for Belle II KLM- IEEE NSS 2014, N47-6: Thursday Nov 13, 2014 11:45 am -12:00 pm

6

Fully populated KLM barrel crate at KEK.Ribbon cables enter from the bottom.4 Sectors, 2 layers each

Page 7: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

SCROD Rev AScintillator FEEs

FTSW -162FTSW -163

COPPER: cpr7002

Data Concentrator

(DC) +RPC FEEs

SFP (B2Link)

SFP(Aurora)

PrPMC

HSLB,TTRX FWFIFO

Readout PC: klm01

CLK+TRIG

CLK + TRIG

Readout DAQ Chain

9U VME Crate

6U VME Crate

E-hut

Belle II Summer School, PNNL, August 2015

FTSW -66:ttd1

Function Generator-

Aux Trig

Page 8: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Current connections on barrel crate as of 150713

KLMS MB/RHIC Octant Layer Datacon: port

KLMS_0001 1/1 3 0 Datacon 10:Port 3

KLMS_0002 2/2 3 1 Datacon 10:Port 4

KLMS_0006 6/6 2 0 Datacon 13:Port 4

KLMS_0003 3/3 2 1 Datacon 13:Port 3

KLMS_0005 5/5 5 0 Datacon 15:Port 4

KLMS_0004 4/4 5 1 Datacon 15:Port 3

KLMS_0009 9/7 4 0 Datacon 9: Port 3

KLMS_0010 10/8 4 1 Datacon 9: Port 4

8

Datacon VME Addr. Loc. CPR HSLB

0010 0x00 RPC crate cpr7002 a

0013 0x11 Barrel term RPC

cpr7002 b

0015 0x12 VME 6U cpr7002 c

0009 0x13 VME 6U cpr7002 d

Note: Datacon ‘10’ is the original data concentrator capable of reading out RPC signals- has not been touched.KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards

Belle II Summer School, PNNL, August 2015

Page 9: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Barrel KLM DAQ Map

• FTSW 66• Located in E-hut: Master FTSW for the crate FTSWs 163 and 162

• FTSW 163Out 5: Motherboard 6Out 7: Data Concentrator 13 TTDOut 9: Motherboard 3Out 11: Motherboard 4Out 13: Data Concentrator 15 TTDOut 15: Motherboard 5

• FTSW 162Out 5: Motherboard 1Out 7: Data Concentrator 10 TTDOut 9: Motherboard 2Out 11: Motherboard 10Out 13: Data Concentrator 9 TTDOut 15: Motherboard 9Out 6: Data Concentrator 13 remote JtagOut 8: Data Concentrator 15 remote JtagOut 10: Data Concentrator 10 remote Jtag

• CPR7002 HSLB connectionsHslb a: Datacon 10Hslb b: Datacon 13Hslb c: Datacon 15Hslb d: Datacon 9

9Belle II Summer School, PNNL, August 2015

Page 10: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Prerequisites for Operations – Similar to iTOPSee Nakao-san and Istvan’s slides

• Client Machine:• X window (in Windows) or native Linux environment• Must allow X11 tunneling

• Credentials:• KEK VPN OR bpost.kek.jp AND bdaq.local.kek.jp

• Machines, names, domains:• ReadoutPC on daqnet: KLMUSER@klm01• FTSW VME Controller on daqnet: KLMUSER@ttd1• BKLM COPPER via ReadoutPC cpr7002• HV Control PC on daqnet KLMHVUSER@klmhv01• CAEN HV Supply on klmhv01 hvframe02

10Belle II Summer School, PNNL, August 2015

Page 11: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Notes

• Please see Nakao-san and Isvan’s slides for more details.

• Please coordinate prior to attempting any of these steps as it might interfere with other users.

• Usernames, passwords are available upon request

11Belle II Summer School, PNNL, August 2015

Page 12: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

How to Connect

• Connect to KEK VPN (See Istvan’s talk)

• Or connect to bpost: (you need 3 to 5 concurrent sessions)• In Linux:

• ssh [email protected] -XY

• In windows: Use PuTTY or similar (Istvan’s talk)

• Then connect to daqnet:• ssh username@bdaq -XY

12Belle II Summer School, PNNL, August 2015

Page 13: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

How to Connect: CAEN HV Supply

• From one of the bdaq ssh sessions start the following session:• ssh [email protected]

• Then telnet into the scintillator HV Supply:• telnet hvframe02 1527

• Enter HV main frame user/pass

13

V0set, Vmon and Imon

Belle II Summer School, PNNL, August 2015

Page 14: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

How to Connect: COPPER

• From one of the bdaq ssh sessions start the following session

• ssh KLMUSER@klm01 -XY

• Then from the same session, ssh into the COPPER:• ssh cpr7002 -XY

• Setting slow control:• cpr7002 $ cd ~/run/scripts

• cpr7002 $ ./load_klmrcl.sh -a run_ctrl4.dat

• If things go well, you will see a dip in the Imon of HV Supply

14

HSLB –a on COPPER

MB Trig signal being sent to AUX port of FTSW- Scope located next to VME crate on top of Magnet

Slow Control: Initialization:1. Set ASIC Configs2. Calculate Pedestals3. Set Trim DACs4. Listen-in on Triggers

Belle II Summer School, PNNL, August 2015

Try the command only 1 person at a time

Page 15: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

How to Connect: FTSW VME Controller• From one of the bdaq ssh sessions start the following session

• ssh KLMUSER@ttd1 -XY

• Set FTSW registers (once only)• Multiple Trig Blocking:

• regft -66 7f0 0100b000• Trig Delay Reg:

• regft -66 9f0 02290000• Set utime:

• utimeft -66• Reset triggers

• trigft -66 reset

• Monitor FTSW Status:• statft -66

15Belle II Summer School, PNNL, August 2015

Page 16: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

How to Connect: ReadoutPC

• From one of the bdaq ssh sessions start the following session• ssh KLMUSER@klm01 -XY

• If initializing (usually after power outage or updates)• klm01 $ cd ~/run/scripts

• klm01 $ ./load_all.sh cpr7002

• Set the correct TTRX Trigger mask: (see next slide)

• cpr7002 $ regrx 130 1

• Get ready for taking data:• klm01 $ cd ~/basf2/release/daq/copper/daq_scripts

• klm01 $ kill_basf2_all.sh

16Belle II Summer School, PNNL, August 2015

Page 17: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Start Taking Data- one person at a time

1. On ReadoutPC:• klm01 $ ./run_start2.sh 1

• This will create two XTERM windows that show COPPER and ROPC status

2. On FTSW VME Controller:• Fake triggers:

• ttd1$ trigft -66 pulse 100 100

• Or AUX triggers:• ttd1$ trigft -66 aux 100

17

TTRX Trigger bit Mask. For example:1= HSLB –a only5= HSLB –a & -c only

Belle II Summer School, PNNL, August 2015

Page 18: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Start Taking Data: 1) run_start…

18

COPPER Ready to Send Data

ROPC Listening

ROPC Main SSH Session

FTSW Ready to Send Trigs

Belle II Summer School, PNNL, August 2015

Page 19: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Start Taking Data: 2) Send Triggers …

19

COPPER Has Sent the data

ROPC Received the Data

ROPC Main SSH Session Showing Stats

FTSW Is Done Sending Triggers

Belle II Summer School, PNNL, August 2015

Page 20: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Data file location

• On Readout PC:• File name: root_output.sroot

20

KLM Subdetector Dump

Belle II Summer School, PNNL, August 2015

Page 21: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Parsing, Analysis,…

• SCP the data onto bdaq then KEKCC.

• I have a simple MATLAB parser that will generate CSV files for waveform and data quality analysis.

• Yinghui and Anselm are working on BASF2 analysis

21Belle II Summer School, PNNL, August 2015

Page 22: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Debugging

22

Remote Chipscope interface to Motherbards and Data concentrators

Belle II Summer School, PNNL, August 2015

Page 23: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

BACKUP

23Belle II Summer School, PNNL, August 2015

Page 24: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

Analog front end: MPPC Bias, Trigger Scan and Temperature

24

MPPC current vs. voltage and operable region:All channels work well

Trigger threshold scan:All channels work well

Carrier Temperature

Belle II Summer School, PNNL, August 2015

Page 25: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

MPPC Waveform Sampling

25

Overlay plot of 76 MPPC events recorded on a single channel one TARGETX ASIC.

Indicates health of analog path all the way to through sampling

Belle II Summer School, PNNL, August 2015

Page 26: KLM-CRT Data logging - phys.hawaii.eduidlab/bronson/projects/150812_BelleII... · KLMS= KLM Scintillator readout module= Motherboard+RHIC+SCROD+Daughtercards Belle II Summer School,

SW trigger Q and T

26Belle II Summer School, PNNL, August 2015