itk:fei4b
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
itk:fei4b [2016/03/03 21:33] – [Data analysis] rwang | itk:fei4b [2017/01/12 19:12] (current) – asc | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== | ====== | ||
+ | This wiki describes UsbPix teststand. | ||
+ | Alternatively, | ||
===== Setup documentation ===== | ===== Setup documentation ===== | ||
- | |||
- | |||
[[http:// | [[http:// | ||
Line 15: | Line 15: | ||
Afterwards, you can configure the FPGA, connect FE-I4B and run a digital scan. | Afterwards, you can configure the FPGA, connect FE-I4B and run a digital scan. | ||
- | ==== Ubuntu instructions ==== | ||
- | Prepare for USB3 connections: | ||
- | < | ||
- | sudo apt-get install python-pip | ||
- | apt-get install git | ||
- | pip install git+https:// | ||
- | pip install pySiLibUSB | ||
- | </ | ||
- | |||
- | ===== CentOS7 instruction ===== | ||
- | |||
- | |||
- | |||
- | |||
- | <code bash> | ||
- | rpm -iUvh http:// | ||
- | yum -y update | ||
- | yum -y install python-pip | ||
- | pip install --upgrade pip | ||
- | yum install libgusb libusbx libusb-devel | ||
- | yum install libudev-devel | ||
- | yum install libgudev1 libgudev1-devel python-pyudev | ||
- | sudo pip install pyusb | ||
- | tar -jvxf libusb-1.0.20.tar.bz2; | ||
- | pip install pySiLibUSB | ||
- | # get Anaconda2-2.4.1-Linux-x86_64.sh | ||
- | ./ | ||
- | # get ViTables-develop_py27.zip | ||
- | unzip ViTables-develop_py27.zip | ||
- | cd ViTables-develop/ | ||
- | python setup.py install | ||
- | # get from github | ||
- | unzip pyusb-master.zip # from github | ||
- | cd pyusb-master/ | ||
- | python setup.py install | ||
- | # get master pyBar | ||
- | cd pyBAR-master | ||
- | python setup.py install | ||
- | </ | ||
- | |||
- | |||
- | Run this code: | ||
- | |||
- | <code python> | ||
- | import SiLibUSB | ||
- | sidev = SiLibUSB.SiUSBDevice() | ||
- | print " | ||
- | </ | ||
===== Windows 7 instruction ===== | ===== Windows 7 instruction ===== | ||
Line 76: | Line 28: | ||
- Download Java Runtime Environment 8 (32 bits, to be consistent with Eclipse) from http:// | - Download Java Runtime Environment 8 (32 bits, to be consistent with Eclipse) from http:// | ||
- Download Eclipse with PyDev (32-bit Eclipse IDE for C/C++ Developers) from http:// | - Download Eclipse with PyDev (32-bit Eclipse IDE for C/C++ Developers) from http:// | ||
- | - Download git | + | - Download git https:// |
- Download vivoda Lab Edition from http:// | - Download vivoda Lab Edition from http:// | ||
- Download unzip from http:// | - Download unzip from http:// | ||
Line 82: | Line 34: | ||
====Install usb3.0==== | ====Install usb3.0==== | ||
Follow the steps in https:// | Follow the steps in https:// | ||
- | - make sure no driver installed for the cypress usb3.0 | + | - make sure no driver installed for the cypress usb3.0 |
- in Device manager looking in the "other device" | - in Device manager looking in the "other device" | ||
- | - install the cypress kit from http:// | + | - install the cypress kit from [[http:// |
+ | - If you use Windows 10, use these dedicated drives [[http:// | ||
- right click on the " | - right click on the " | ||
- Ordered List Itemopen the control center, the " | - Ordered List Itemopen the control center, the " | ||
- | - Ordered List Itemupload the .img file " | + | - Ordered List Itemupload the .img file " |
- | - **Not Need** | + | - use Zadig to reinstall FX3 device |
- | - reboot PC | + | - the USB devices " |
- | - select " | + | - select " |
- install driver WinUSB(v6.1.7600.16385) | - install driver WinUSB(v6.1.7600.16385) | ||
- download libusb 1.0.20 from http:// | - download libusb 1.0.20 from http:// | ||
Line 99: | Line 52: | ||
==Install basil mio3== | ==Install basil mio3== | ||
- | change " | + | change " |
+ | You will need the branch " | ||
+ | If you will use wrong basil, when running " | ||
Download pySiLibUSB from https:// | Download pySiLibUSB from https:// | ||
Line 135: | Line 91: | ||
- | ====Data analysis==== | + | =====Data analysis===== |
by default the raw data are converted and stored inform of HDF5 file. | by default the raw data are converted and stored inform of HDF5 file. | ||
The .h5 file can be opened using: | The .h5 file can be opened using: | ||
Line 141: | Line 97: | ||
vitables 56_module_test_digital_scan_fe1.h5 | vitables 56_module_test_digital_scan_fe1.h5 | ||
</ | </ | ||
- | ===Data structure=== | + | ====Data structure==== |
- | ==Raw data== | + | ===Raw data=== |
The raw data contains all FE words + FPGA trigger words + FPGA TDC words in an one dimensional array. | The raw data contains all FE words + FPGA trigger words + FPGA TDC words in an one dimensional array. | ||
Every word is a 32-bit unsigned int. The format is: 82444303 = **0** 000 __0100__ 1110 1010 0000 0000 0000 1111 | Every word is a 32-bit unsigned int. The format is: 82444303 = **0** 000 __0100__ 1110 1010 0000 0000 0000 1111 | ||
Line 183: | Line 139: | ||
* service_record: | * service_record: | ||
* event_status: | * event_status: | ||
- | | + | |
- | ===Simple data convertion=== | + | ===Clustered Data=== |
+ | |||
+ | Clustered data is usually stored as additional nodes in the analyzed data file or in a new file. The nodes are cluster hits, cluster or histograms. | ||
+ | |||
+ | ==Cluster hits== | ||
+ | {{: | ||
+ | |||
+ | The table ClusterHits is a copy of the Hits table (see above) but with four additional columns: | ||
+ | * cluster_id: The cluster ID of the hit [0:number of cluster in the event] | ||
+ | * is_seed: Is one if the hit is the seed hit, otherwise 0. | ||
+ | * cluster_size: | ||
+ | * n_cluster: The number of cluster of the event the hit belongs to. | ||
+ | |||
+ | ==Cluster== | ||
+ | The table Cluster stores the infos for each cluster. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The columns are: | ||
+ | * event_number: | ||
+ | * id: The cluster ID of the cluster [0:number of cluster in the event]. | ||
+ | * size: The number of hits that belong to the cluster. | ||
+ | * tot: The tot sum of all hits. | ||
+ | * charge: The charge sum of all hits (not used yet). | ||
+ | * seed_column: | ||
+ | * seed_row: The row of the seed pixel. | ||
+ | * event_status: | ||
+ | |||
+ | |||
+ | ====Simple data convertion==== | ||
pyBAR provide few scripts under pybar/scan for raw data analysis. | pyBAR provide few scripts under pybar/scan for raw data analysis. | ||
< | < | ||
Line 207: | Line 192: | ||
======Data analysis====== | ======Data analysis====== | ||
+ | |||
+ | |||
+ | --- // | ||
+ | --- // |
itk/fei4b.1457040800.txt.gz · Last modified: 2016/03/03 21:33 by rwang