TTC related information




LTC external trigger connector

should be connected to the PCB as shown in the picture: dscn4726-small.jpg

and fitted to the front panel as shown here: dscn4727-small.jpg


  • Seems not to transmit B broadcast frames with data content equal to 0x00
  • Seems to swallow the lowest to bits (i.e. set them to zero). Bit 0 is BC0, bit 1 is EC0 (Event counter reset)
  • G3 PCI card: EP 680-1125-500-A (UNI_PCIB), see also D.Gigi's FEDKIT page
  • "TTCrx monitoring" schematics: EP 680-1125-700

TTC clock and orbit fanout

TTCRQ VME adaptor board

  • Jumper settings (derived from schematics), jumper set means logic 0 (connected to GND) unless where otherwise specified. Vcc is 5 Volt in the schematic, QPLL supply voltage is 2.5 Volts, thus pins connected to half of Vcc are set to logic 1.

Jumper signal description
ST3 MODE frequency multiplication mode (depends on external crystal)
ST4 FREQRANGE0 jumper set = 1
ST10 FREQRANGE1 jumper set = 1
ST9 FREQRANGE2 jumper set = 1
ST7 RESET active low: 0 (jumper set) = reset, 1 (jumper missing) = normal operation
ST5 EXTCONTROL jumper set = logic 1 = frequency selection lines used
ST6 AUTORESTART 1 (jumper missing) = automatic recalibration

  • The QPLL locked information can be probed (e.g. with a scope) as shown in the following picture:


External packages


See here


See here

TTCSoftware release procedure

  • Make sure the files TTCSoftware/releasedate and TTCSoftware/buildversion are updated ! (edit buildversion by hand and run utils/
  • Run the following (you need to use the proper version number):
          export VERSION=6.06.02 ; \
          export CVSTAG=$(echo $VERSION | perl -npe 's/\./-/g; $_ ="v$_";') ; \
          rm -f /tmp/TTCSoftware-${VERSION}.tgz; \
          ./utils/ --cvstag=${CVSTAG} /tmp/TTCSoftware-${VERSION}.tgz && \
          ./utils/ --xdaq-root=/opt/xdaq /tmp/TTCSoftware-${VERSION}.tgz

(note that the option --xdaq-root can be specified more than once to test against multiple XDAQ releases [this was done for SLC3 as we had the RPM installation and the older one]).

RPM building

This assumes that you have created a source archive as described in the previous step.

  • on the development PC, assuming the source archive is /tmp/TTCSoftware-xyz.tgz, do the following (after having adapted the version number):

       export VERSION=6.06.02 ; \
       ./utils/ \
         --no-python \
         --version=${VERSION} \

This will produce a binary RPM as well as the source RPMS. The --no-python option is used at the moment because the RF2TTC code causes problems (segmentation faults at building time !) if the corresponding python bindings are built.

Copy the source RPM to the distribution area in AFS and to the online cluster in ~ttcpro/ttc-rpms/srpms.

To produce the binary RPM for the online cluster, we recommend taking the SOURCE RPM to the online cluster (as the xdaq version might be slightly different there) and rebuild the RPM, using

       export XDAQ_ROOT=/opt/xdaq 
        rpmbuild --rebuild ~ttcpro/ttc-rpms/srpms/TTCSoftware-x.y.z-a.src.rpm


(yes, building the binary RPM on the development PC could be left out).

RRD Tool

how I installed RRD tool (on SLC4):

  • installed the following rpms:


(get them from here:

Do not install python-rrdtool-1.2.15-1.el4.rf.i386.rpm as this causes problems.


Some general notes and my notes on using the TS monitoring infrastructure.

See also my notes on XDAQ monitoring.

JSPGui (L1 trigger key configuration)


TTCci L1A from BGO:

  • When configuring a BGO to be a 'short B frame' followed by one trigger, the trigger seems to come at BX = BX(B frame) + Delay2 + 6
  • make sure that the BGO is configured as a double command !
  • on the main config page: Enabling 'SCOM' as trigger source seems to be sufficient, enabling 'BCHANNEL' on the other hand seems NOT TO WORK !!

SLP stuff

  • copy /etc/slp.conf from e.g. vmepcS2g17-04.cms (this contains a line
    net.slp.DAAddresses =
  • after modifying /etc/slp.conf, the slp daemon needs to be restarted: sudo /etc/init.d/slp restart.
  • check whether any services on the TTC pcs are registered: slptool -i $(hostname -f) findsrvs service:peer:http | grep -i vmepcs2b16

Frequency meter

(Preliminary) database table:

CREATE TABLE cms_ttc_pro.mon_freqmeter
  TIME    timestamp(9) DEFAULT sys_extract_utc(systimestamp) NOT NULL

To plot offsets with respect to 40079000:

CREATE OR REPLACE VIEW mon_freqmeter_offs AS
SELECT frequency - 40079000 freq_offs, time
FROM mon_freqmeter;


ORACLE stuff

Dumping the trigger key database

  • From lxplus (with bash/zsh):
   export ORACLE_HOME=/afs/
  • create an ssh tunnel with e.g. a lifetime of 10 minutes (600 seconds):
   ssh -L 10121:cmsonr1-v.cms:10121 -fN cmsusr0b 'sleep 600'
  • run exp:

Misc. stuff

  • check software out from the TriDAS repository: cvs -z3 co TriDAS/trigger/ttc/TTCSoftware

     /sbin/lspci  -vn | grep -B 1 'Subsystem: 10b5:3057'

  • USC55 interactive machines: usc55ucr01 etc.

  • how to run the generic slink receiver program (from XDAQ):
    • Make sure the fedkit_kernel module is loaded, if not, do:
              sudo insmod $XDAQ_ROOT/daq/itools/packages/fedkit/fedkit_kernel.o
    • Run the program as follows:

  • how to start chainsaw:
    CLASSPATH=$CLASSPATH:~aholz/Desktop/chainsaw_rcms.jar java org.apache.log4j.chainsaw.LogUI

-- AndreHolzner - 22 Dec 2006

Topic attachments
I Attachment History Action Size Date Who Comment
JPEGjpg dscn4726-small.jpg r1 manage 154.8 K 2008-07-01 - 14:10 AndreHolzner  
JPEGjpg dscn4727-small.jpg r1 manage 46.5 K 2008-07-01 - 14:17 AndreHolzner  
PNGpng dscn4730-small.png r1 manage 328.6 K 2008-07-01 - 14:33 AndreHolzner  
Unknown file formatxcf dscn4730-small.xcf r1 manage 587.8 K 2008-07-01 - 14:33 AndreHolzner  

This topic: Main > TWikiUsers > AndreHolzner > AndreHolznerTTC
Topic revision: r89 - 2009-11-18 - AndreHolzner
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