MDT Endcap Alignment: Overview and System Architecture


MDT Endcap Alignment: Overview and System Architecture

Computers and Equipment in USA15

The six VME Crates for the Endcap Alignment system are located in USA15,

The production computer on which all processes run     pcatlmdtlwdaq01.

The development machine used for rebuilding C code     vm-tdq-build-02

The top directory is   /det/dcs/Development/ATLAS_DCS_MDT/EAlignment/slc6/

under this are:   scripts, ltxdir, cyclog, lwdaqlt, LWDAQ_8.1.3, DB13, test13

In the home directory .tcshrc executes source which goes to /scripts

Starting the alignment system

Crate Control

The VME crates can be turned on or off using the Infrastructure Panel

on Remote Desktop - CERNTSATLDCS     or from panels in CR or SCR.


Login with P1 user name to control crates


Endcap Alignment Monitoring Panel

This is visible using Remote Desktop or from panels in CR or SCR

on Remote Desktop - CERNTSATLDCS


The panel is also visible on Web

Starting the Processes

1. Log in to the machine pcatlmdtlwdaq01 using ssh and your P1 username.

ssh -X

become a superuser:     sudo su - mdtecalign

2. Start three processes which communicate with the Endcap Alignment Monitoring Panel

  • this starts     expsend, checkProc, countDimONL


3. Start 10 instances of tclsh8.5 (communication with lwdaq) and five instances of java (for DB storage)

sq64 (see /scripts/


4. Start ltx and cycleLogic


5. List the running processes


6. Start the run

cd cyclog

./sockinit 10 (sends socket information to lwdaq; wait for completion)


load (loads the scripts; wait for completion)

start (start running)

      after a short time the DCS Panel will show number of devices that have been read and results of previous cycle (from the Data Base)

<img width="511" alt="ltx.bmp" src="" height="409"> </img>

Stopping a run

In commandCenter enter

stop (this will stop at end of cycle; wait for cycle to end)

  • If a run stops in mid-cycle
    • the crates must be turned off using the Crate Control panel described above.
    • If there is a communication failure then the crates must be switched off by hand in USA15
    • the cycle number should be increased by 1 in /cyclog/cycleFile.txt

Processes can be killed

kq (kills the tclsh processes, ltx, and cycleLogic)

kjava (kills java processes)

kprocs (kills the three communications processes)

  • The DIM DNS Server for the endcap alignment system is automatically started on pcatlmdtlwdaq01 as a cron job, The process name is dns.

Check the Database

How to check last data in the ATLR database from lxplus

To check that data has been written and replicated to ATLR,

  • log onto lxplus as user align

  • give the command Db

  • This will print information on the last cycles, in the format

cycle no. - minutes - timestamp (GMT) - num BCAM - errors - num Rasnik - errors -num Temp - errors  Drivers

If you want to look at cycles taken in a different month or year:

Db -month SEP

Db -month NOV -year 2014

If you want to see a larger number of recent cycles (for example 30) type:

Db -maxcyc 30

To see which R and B devices have errors in a cycle (cyc1) compared to a different cycle (cyc2):

        cyc1 and cyc2 are the cycle numbers

Err cyc1 cyc2

Other Commands

Change the pause time (seconds) between cycles in commandCenter

  • for images cycle_pause 240

  • for hardware cycle_pause 4144     120 minute cycles

Check Crate status (can be run from development machine) /scripts/source

Some Files

  • /cyclog
  • cycleFile.txt last cycle number; read and used by cycleLogic8

  • cycleLogicLog.out Log file with cycle numbers and time of end of running

  • /DB13/expval.txt Expected values iand tolerance for Panel display

  • /ltxdir
  • resSendCut.c data send procedures used by ltx

  • errLog.txt Error Log file

  • port_config12.txt Communication ports for lwdaq

  • /LWDAQ_8.1.3
  • lwdaq config1090.tcl, etc.

Storing to the integration DB: INT8R

  • To start java DB programs sjavaINT instead of sjava
  • To start communications processes sprocsINT instead of sprocs
  • Use the correct last cycle number modify /cyclog/cycleFile.txt
  • To read DB from align DbINT may need the month argument

Device Scripts in /cyclog/

  • Hardware Devices groupListPolB.txt size= 674

  • Images groupListLocalP1.txt size= 874

  • Copy either of these to groupListTest.txt before starting processes

Test reception of DIM messages

  • on either machine in P1     /test13 run   ./servrec

Time to end of Pause state

  • on either machine in P1     /test13 run   ./pauserec


-- Main.zimmerst - 2010-05-20

  • ltx.bmp: Main operations PVSS panel for the MDT endcap alignment
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2015-06-30 - SaminderDhaliwal
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

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