User Tools

Site Tools


phase1:phase1:bpixeltools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
phase1:phase1:bpixeltools [2015/02/20 17:13] ngadiubaphase1:phase1:bpixeltools [2015/03/27 17:20] ngadiuba
Line 25: Line 25:
   * to set the bias or the gain do for example: **pohN set b0 30**   * to set the bias or the gain do for example: **pohN set b0 30**
   * to set all the values at the same time do for example: **pohN set all 3 3 3 3 0 0 0 0**    * to set all the values at the same time do for example: **pohN set all 3 3 3 3 0 0 0 0** 
 +
 +To test i2c speed:
 +
 +  * first set the ccu: **ccu 0x7b**
 +  * set the channel (0x13 for L34 and 0x11 for L12): **channel 0x13**  
 +  * set the i2c speed: **i2cspeed 1000**
 +  * NB: the programmable i2c speeds are 100,200,400,1000 kHz
 +
 +====Test Programs====
        
 Run the test program (from a different terminal): Run the test program (from a different terminal):
Line 31: Line 40:
    cd test    cd test
    python testCCUandDCDC.py <ccuaddress>    python testCCUandDCDC.py <ccuaddress>
 +
 +Run the test program for POH bias scan at a specific gain
 +
 +  * open a terminal and run the ccu program
 +  * open a second terminal and run the fed program
 +  * open a third terminal for the test program:
 +
 +   cd TriDAS/pixel/BPixelTools/
 +   source setup.bsh
 +   cd test
 +   python testCCUFED.py --gain <gain>
 +
 +  * the results are stored in the testdata folder (create one if it does not exist)
 +
 +Additional macro to plot the poh bias scan results in the folder "macros" under the test dir
 +
 +  * be sure the input files are called "poh_bias_scan_gain<gain>.root"
 +  * if you want to compare the bias/rms/slope of different channels at fixed gain <gain>
 +
 +   python make-plots.py --gain <gain> --plot bias
 +   python make-plots.py --gain <gain> --plot rms
 +   python make-plots.py --gain <gain> --plot slope
 +
 +  * if you want to compare the bias/rms/slope of one channel <channel> for different gain values
 +
 +   python make-plots.py --channel <channel> --plot bias
 +   python make-plots.py --channel <channel> --plot rms
 +   python make-plots.py --channel <channel> --plot slope
  
 ====Analog FED==== ====Analog FED====
Line 45: Line 82:
    source setup.bsh    source setup.bsh
    ./run.bsh    ./run.bsh
- 
- 
phase1/phase1/bpixeltools.txt · Last modified: 2015/05/21 11:38 by ngadiuba