SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Det. Search
Who's who?
Meetings
FAQ
Images
Archive
Systems
Performance
Intern. region
Vertex Tracker
Drift chamber
DIRC
Calorimeter
IFR
LST
Magnet
Electronics
Trigger
Operations
Run Coordination
Contact Experts
Shift Takers Info
Operations Manual
Electronic Logbook
Ops Hypernews
Shift Signup
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)

How to Configure the ZPD

WARNING: Pages like this tend to get out of date as code is changed to "improve" things.  This page is believed to be correct on 25 March 2004.  Contact Stephen Bailey if you find anything out of date.

Introduction

In general, the ZPDs will wake up with the correct LUT configuration, etc. which is sufficient for most testing. There are two exceptions:
  • IP Corrections: The ZPDs wake up with no IP offset corrections, i.e. they assume that the IP is at (x,y) = (0,0).
  • Decision Module Cuts: The ZPDs will wake up with some set of cuts, but it probably will be an old set which isn't exactly what you want.

If you need to change how the ZPDs are configured, read on...

ZPD Configuration Code and Files

The ZPD configuration code lives in L1DctOdf/L1DctBltZpdConfigure. Configuration information comes from several files:

  • /nfs/bbr-srv02/dataflow/7F/06/app/DczConfig/bltZpdMap.txt
  • /nfs/bbr-srv02/dataflow/7F/06/app/DczConfig/zpdLutList.txt
  • /nfs/bbr-srv02/dataflow/7F/06/app/DczConfig/zpdConfig.txt

These files contain the following information:

Which boards are where: bltZpdMap.txt

This file contains the map information of which ZPDs are in which slots. The format is:

slot boardtype octant

where boardtype 0=BLT and 1=ZPD.  It appears that comments starting with # are allowed at the end of the file, but not the beginning.  newTsfxMap.txt contains the equivalent information for the TSF map, where boardtype 0=TSFx and 1=TSFy.

Which XTC configuration files to download: zpdLutList.txt

This file contains a list of XTC files to load. These include: Follow the links for each file for instructions on how to generate/use it. Example file:
  # ZPD LUT XTC files to load

  zpdFinder.xtc
  zpdFitter.xtc
  zpdCuts.xtc
  zpdiMask.xtc
  # zpdIpCorr.xtc
  zpdNoIpCorr.xtc

Miscellaneous other configuration information: zpdConfig.txt

This file contains the DAQ and error reporting configuration parameters. There are seven values on the first line, followed by comments. The values are:
  • daqMode
  • DAQ window width in clk4 ticks
  • segment DAQ offset
  • output  DAQ offset
  • ship data every n events
  • print error message every n events
  • prescale factor for the segment mask data
If you don't know what these numbers are, you probably aren't expert enough to change them. Proceed with caution.

Further notes: