Difference between revisions of "BigBite DAQ"

From Hall A Wiki
Jump to: navigation, search
(Reset Computer==)
(Start CODA)
Line 161: Line 161:
 
     6. In codamaster has runcontrol used to take data.
 
     6. In codamaster has runcontrol used to take data.
  
 +
== Look at raw data file ==
  
 +
To look at raw data file we need to look up manual to see how the module work and open the raw data file
  
 +
    - Open a terminal
 +
    - Source dosetupcoda
 +
    - Type : xcefdmp
 +
    - View File
 +
    - Data Source
  
 
== Testing TDCs ==
 
== Testing TDCs ==

Revision as of 18:05, 20 April 2015

Main computer in Test Lab

 srcdaq

DAQ files are in a-onl account

booting CPU / portserver

 portserver bbts-tlab

To connect to a CPU :

 telnet bbts-tlab 200x
 bbsfi

CPU parameters ROC1

 boot device          : dc0 
 processor number     : 0 
 host name            : srcdaq 
 file name            : /home/a-onl/bbite/vxworks/vx2400_v2 
 inet on ethernet (e) : 129.57.36.180:fffffc00 
 inet on backplane (b): 
 host inet (h)        : 129.57.37.93 
 gateway inet (g)     : 129.57.36.1 
 user (u)             : a-onl 
 ftp password (pw) (blank = use rsh): 
 flags (f)            : 0x20 
 target name (tn)     : bbsfi1-tlab 
 startup script (s)   : /home/a-onl/bbite/vxworks/bb_sfi1.boot 
 other (o)            :


To reprogram ROC1 bootparameters you can use the python script :

 progROC1

it is located in /home/a-onl

CPU parameters ROC2

 boot device          : dc0 
 processor number     : 0 
 host name            : srcdaq 
 file name            : /home/a-onl/bbite/vxworks/vx2400_v2 
 inet on ethernet (e) : 129.57.36.196:fffffc00 
 inet on backplane (b): 
 host inet (h)        : 129.57.37.93 
 gateway inet (g)     : 129.57.36.1 
 user (u)             : a-onl 
 ftp password (pw) (blank = use rsh): 
 flags (f)            : 0x20 
 target name (tn)     : bbsfi2-tlab 
 startup script (s)   : /home/a-onl/bbite/vxworks/bb_sfi2.boot 
 other (o)            :

CPU parameters Trigger supervisor crate

 boot device          : dc0 
 processor number     : 0 
 host name            : srcdaq 
 file name            : /home/a-onl/bbite/vxworks/vx2400_v2 
 inet on ethernet (e) : 129.57.37.90:fffffc00 
 inet on backplane (b): 
 host inet (h)        : 129.57.37.93 
 gateway inet (g)     : 129.57.36.1 
 user (u)             : a-onl 
 ftp password (pw) (blank = use rsh): 
 flags (f)            : 0x20 
 target name (tn)     : intela1n1 
 startup script (s)   : /home/a-onl/bbite/vxworks/bb_ts.boot 
 other (o)            :

Killing the booting

when booting the ROCs go wrong we can kill all them and start again

    - Telnet telnet bbts-tlab
    - Login :  type root
    - Password: dbps
    - Type : kill tty = x (x is the telnet we are using)
    - Quit

=> Start booting again


Reset Computer

whenever we restart computer need to do:

 -Type : msqld & 
 -Source dosetupcoda

Fastbus test programs

Location on srcdaq

 /home/a-onl/bbite/test/fastbus


To load , type on the CPU :

 cd "/home/a-onl/bbite/test/fastbus"
 ld < test_1877.o
 test_1877 slot_number

Fastbus detector map

ROC Slot Module Detector
1 9 1877 VDC


Fastbus readout lists

Files are located in

/home/a-onl/bbite/crl

there is one file for each ROCs

readout line 1: bb_sfi2(1).o readout line 2: the same event_list_ppc.o



To compile a crl file do :

 makelist filename ppc

Fastbus user manual

[1877 manuals]

CODA

coda website

https://coda.jlab.org/drupal/

https://coda.jlab.org/drupal/content/install-instructions


Data analyzer

Install root :

  https://root.cern.ch/drupal/

Install analyzer :

 http://hallaweb.jlab.org/podd/index.html#docs
 http://hallaweb.jlab.org/podd/download/analyzer-1.5.28.tar.gz

Start CODA

Follow these steps to open the CODA:

   1. Open a terminal. 
   2. Source dosetupcoda.
   3. type rcplatform.
   4. open other terminal, source dosetupcoda.
   5. type codamaster to open other windown.
   6. In codamaster has runcontrol used to take data.

Look at raw data file

To look at raw data file we need to look up manual to see how the module work and open the raw data file

   - Open a terminal 
   - Source dosetupcoda
   - Type : xcefdmp
   - View File
   - Data Source

Testing TDCs

Following

   1. Open CODA
   2. Take a Run
   3. Replay the raw data
   4. Look at the root file

=> Do plots with root file, plots will show the number of slot we have TDCs and the number of channel we are taking data on that TDC.

=> Make table for

   - Run number
   - Number of the slot 
   - Model of TDC
   - Number of the channel

V1495 programming

Use the quartus software

/home/a-onl/altera/10.1sp1/quartus/bin/quartus

The fan program is in :

/home/a-onl/V1495/V1495_User_Demo_QuartusII_Project_2_0

Open the project :

/home/a-onl/V1495/V1495_User_Demo_QuartusII_Project_2_0/FIT/v1495usr_demo.qpf

and modify coinc_reference.vhd

To program :

open programmer

and hit start button after compilation if needed