TWiki> BL4S Web>BeamLineForSchools>HowTo (revision 17)EditAttachPDF
HowTo Documents will be here

Cherenkov gas settings

After todays(26.08.2014) mini talk, we decided to redo the pion decay experiment for different beam energies. Looking at the reference plots in

/afs/cern.ch/user/d/daquser/public/daq_extras/gas_mix/root/co2_final.root

Beam Energy CH1 CH2

4GeV ~1.1bar >1.6bar

6GeV ~0.5bar >0.6bar

8GeV ~0.3bar >0.5bar

10GeV ~0.2bar >0.3bar; <2.7bar

CH1 selects electrons and muons and CH2 selects electons, muons and pions.

Computer location in 157

  • WebcamServer1: Control room, no peripherals, any ethernet cable
  • WebcamServer2: Experimental area, with Fisheye lense, no peripherals, short ethernet cable(?)
  • WebcamServer3: Above T9 (near stairs), no peripherals, 20m ethernet cable, long power cable (from area or from Beam control room)

  • bl4sdaq: Shift leader, has everything
  • bl4sdaqclone: Run Control Shifter, has everything
  • newPC1: Detector Shifter, SLC6, has everything (we'll get from offices)
  • newpc2: in barracks, for students. windows(?) + virtual box. has peripherals from around (screen from markus (14))
  • newpc3: in barracks, for students. windows(?) + virtual box. has peripherals from around (screen from markus (4))

How to setup a CCT VP 717 Single Board Computer.

VP717 VME single board computers are items that can be rented from CERN Electronics Pool. One can plug in a monitor, keyboard and mouse and use it as a normal computer. After installing SLC6, one should log in as root, and do the following steps.

Installing vme drivers

cd root
mkdir ATLAS
cd ATLAS
mkdir bin lib driver   
cd driver
cp ~joos/public/tdaq-05-03-00/drvers-05-03-00-x86_64/vme_rcc_tsi._KERNELNO__x86_64.ko vme_rcc_tsi.ko
cp ~joos/public/tdaq-05-03-00/drvers-05-03-00-x86_64/io_rcc._KERNELNO__x86_64.ko io_rcc.ko
cp ~joos/public/tdaq-05-03-00/drvers-05-03-00-x86_64/cmem_rcc._KERNELNO__x86_64.ko cmem_rcc.ko

cd ../bin/
cp ~joos/public/tdaq-05-03-00/installed/x86.../bin/tsiscope .
cp ~joos/public/tdaq-05-03-00/installed/x86.../bin/scanvme_tsci .
cp ~joos/public/tdaq-05-03-00/installed/x86.../bin/vme_rcc .
cp ~joos/public/tdaq-05-03-00/installed/x86.../bin/tsiconf .

cd ../lib/

Copying missing library shared objects

ldd command will show the missing libraries for each binary file, and they should be copied to /ATLAS/lib directory. One should repeat the following 3 lines until the command does not give more missing libraries such as "libSomething.so.3 => not found"

ldd ../bin/* |grep found
cp ~joos/public/tdaq-05-03-00/installed/x86.../library/MISSING_LIB_NAME
export LD_LIBRARY_PATH=.

During the installation for BL4S, we had to copy the following ones.

#Copy until nothing else appears. Example:
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libvme_rcc.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libDFDebug.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libgetinput.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libDFDebug.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libio_rcc.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/librcc_error.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/librcc_time_stamp.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libcmem_rcc.so .

Setting up the system so that drivers are loaded at every boot

cd /etc/init.d
cp ~joos/public/drivers_tdaq_vme .
cd ../rc5.d
ln -s ../init.d/drivers_tdaq_vme S98drivers_tdaq_vme
cd ../init.d
./drivers_tdaq_vme start

Setting up the A32 and A24 mapping in the VME memory.

#Setting the A32 and A24 mapping in the memory.
cd /ATLAS/lib/
../bin/tsiconfig -a ../driver/vmetab

To see what to do inside the tsiconfig, here's a howTo from the master himself: /afs/cern.ch/user/c/cyildiz/public/vme_mastermapping.mp4

To see the mapping, one can use tsciscope

../bin/tsiscope  

=======================================================================================
LSI|                       VME address range|                       PCI address range|  EN| MRPFD|     PFS|     2eSST|        TM|       DBW|  SUP|  PGM|     AM|    OTBS
===|========================================|========================================|====|======|========|==========|==========|==========|=====|=====|=======|========
  0| 0x0000000000000000 - 0x0000000000ffffff| 0x0000000040000000 - 0x0000000040ffffff| Yes|    No| 2 lines|  160 MB/s|    single|    32 bit| User| Data|    A24| 0x00000
  1| 0x0000000000000000 - 0x000000000fffffff| 0x0000000041000000 - 0x0000000050ffffff| Yes|    No| 2 lines|  160 MB/s|    single|    32 bit| User| Data|    A32| 0x00000
  2| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
  3| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
  4| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
  5| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
  6| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
  7| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
=======================================================================================



Running DAQ School Exercise 4

Exercise 4 was originally run on CCT VP 110 VME SBC(32 bit), with operating system SLC4, and tdaq version 02-00-03. With help of experts the exercise is upgraded to run on CCT VP 717 VME SCB(64 bit), with operating system SLC6, and tdaq version 05-03-00.

Running exercise on this hardware with newer software requires the following steps.

Setting up the VME SBC.

  • Install SLC 6
  • Login as root. Create account daquser
    addusercern daquser
  • Install tdaq locally

Checking the database

Running monitoring

./emon_task -p part_Scintillator1 -t ReadoutApplication -e 1000 -v2

Running BL4S Daq

Setting up computers

The computers have to be set up to be able to handle the DAQ. On all the computers you'll use as DAQ components do the following:

Write following in /etc/security/limits.d/99-max-files.conf

# set the max number of open files - issue
*               soft    nofile          65536
*               hard    nofile          65536

Write following in /etc/security/limits.d/99-nproc.conf

## Managed by Puppet ##
*      soft        nproc       192751

Downloading source code

There are 2 repositories that have the BL4S daq related source code.
  • DAQ Software and the database: The source code of the DAQ,
  • DAQ Extras: The extra programs.

Setting up database

Setting up hosts

The hosts that will be used in the DAQ system should be created. To do this a bash script is used, and this script takes a python program as input.

Monitoring

ROOT version runs with command line arguments:
./emon_task2 -p part_BL4S -t ReadoutApplication -e 1000 -v 2

Labview Event Display

  • Install labview by doing following steps. Note that we use 32 bit version, because VIPM does not work on 64bit (At least I(Cenk) could not get it to run). Answer all questions yes when you run the install script. You can just omit installing NI VISA Drivers, they are not needed.
       cd /afs/cern.ch/sw/natinst/LabVIEW2013/32bit/labview_core 
       ./INSTALL  
       
  • NOTE: Only in one of the PC's (bl4sdaq) I had to install libXinerama.i686 and mesa-libGL.i686 to get 32 bit labview to run.
       yum install  libXinerama.i686 mesa-libGL.i686
       
  • Install "Asynchronous Message Communication" extension
    • Download VI Package Manager (VIPM) from http://jki.net/vipm/download, extract the zip file, start the executable "vipm"
    • When the VIPM window opens, search for "Asynchronous Message Communication" on right top. Install the package (If it has problem communicating with labview, in labview go to Tools->Option->VI Server, and click on TCP/IP to activate port 3363, then press OK)
  • Get the event_display source code from Joseph Tag

Controlling HV mainframe remotely

The SY2527 H.V. Mainframe has ethernet connection, It can be controlled remotely following the steps:

  • Register it to network going to CERN Network DataBase. Current one is registered as bl4shv on Cenk Yildiz.
  • Start telnet in a windows or linux PC (Windows: go to Command Promt, type "telnet" and press enter, Linux: Open up a terminal, type "telnet" and press enter)
  • Connect to the HV mainframe with the following command:
o bl4shv 1527
  • The rest is same as using the HV module from its own screen.

Connecting to Webcam PC's

rdesktop -d cern -u daquser -g 95% pcbl4swebcam

rdesktop -d cern -u daquser -g 95% pcbl4swebcam2

rdesktop -d cern -u daquser -g 95% pcbl4swebcam3

Installing AE1200 Wireless adapter to RH6

su
yum --enablerepo=elrepo install ndiswrapper-utils kmod-ndiswrapper
cd /afs/cern.ch/user/c/cyildiz/public/ae1200wireless
ndiswrapper -i bcmwlhigh5.inf
depmod -a
modprobe ndiswrapper

Using DIP to publish data for a client in Technical Network(TN)

Installing DIM

Hello Cenk,

Concerning DIM, there is an RPM package produced by LHCb that features a neat dns daemon.

http://lhcb-daq.web.cern.ch/lhcb-daq/cgi-bin/rpmrepo_scripts/list_rpms.sh

For instance, SLC6 64 bits DIM :

wget http://lhcb-daq.web.cern.ch/lhcb-daq/cgi-bin/rpmrepo_scripts/details.sh?/afs/cern.ch/lhcb/project/web/online/online-rpm-repo/slc6X/x86_64/RPMS/dim-v20r7-1.RHEL6.x86_64.rpm wget http://lhcb-daq.web.cern.ch/lhcb-daq/cgi-bin/rpmrepo_scripts/details.sh?/afs/cern.ch/lhcb/project/web/online/online-rpm-repo/slc6X/x86_64/RPMS/dim-programs-v20r7-1.el6.x86_64.rpm yum localinstall dim-v20r7-1.RHEL6.x86_64.rpm dim-programs-v20r7-1.el6.x86_64.rpm

It should resolve all dependencies for you and install the DNS daemon in /etc/init.d/dnsd

You can install it, then all you need is to run...

# echo "export DIM_DNS_PORT=2506" >> /etc/sysconfig/dnsd

... and restart the dnsd service ...

# service dnsd restart

... to have a standard DIP name server running.

You can then point your DIP API to "localhost".

Let me know if you have further questions,

Brice

Installing DIP

  • Download DIP from http://j2eeps.cern.ch/wikis/display/EN/DIP+API
  • unzip the file.
  • In the folder run "source setenv64.sh"
  • Go to examples directory, compile Server.cpp and Client.cpp by saying "make all"
  • If there are errors, try to fix them by adding relevant C header files. (You may need to add "stdlib.h" and change a function Sleep to sleep (big to small caps))

-- CenkYildiz - 13 Mar 2014 - 27 Jun 2014 -- CenkYildiz - 07 Jul 2014 -- CenkYildiz - 29 Aug 2014

Edit | Attach | Watch | Print version | History: r22 | r19 < r18 < r17 < r16 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r17 - 2014-09-02 - CenkYildiz
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    BL4S All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback