You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

LCDetectors

Overview

LCDetectors contains detector data for the org.lcsim framework. Each detector has a directory in the detectors directory of LCDetectors with a compact description, properties files, and other detector data. These directories are zipped and placed in canonical locations on the LCSIM website. The org.lcsim conditions system can download the zip files from the WWW based on the tag in the LCIO file.

LCSIM WWW

LCDetectors is periodically replicated to the org.lcsim website.

Detector zip resource files are kept at the base URL http://www.lcsim.org/detectors.

For instance, the sdjan03 zip file is at http://www.lcsim.org/detectors/sdjan03.zip.

There also exist directories for each detector. The sdjan03 directory is http://www.lcsim.org/detectors/sdjan03/. The LCDD file for sdjan03 is kept at http://www.lcsim.org/detectors/sdjan03/sdjan03.lcdd and the compact file is kept at http://www.lcsim.org/detectors/sdjan03/compact.xml.

A list of all the current detector tags can be downloaded from http://www.lcsim.org/detectors/taglist.txt.

Getting from CVS

LCDetectors is kept at the SLAC CVS.

Instructions to checkout of CVS.

cvs -d :pserver:anonymous@cvs.freehep.org:/cvs/lcd
cvs co LCDetectors

Build Commands

The following instructions assume that the current directory is LCDetectors checkout dir.

It also assumes that the detector being working with is sdjan03. Replace this name with whatever detector you are working on.

Build zip file locally for single detector. The LCDD file will be placed at detectors/$DETECTOR.lcdd

make zip DETECTOR=sdjan03

Build LCDD file for single detector. The LCDD file will be placed at detectors/$DETECTOR/$DETECTOR.lcdd

make lcdd DETECTOR=sdjan03

Build the LCDD file and zip file for single local detector.

make build DETECTOR=sdjan03

Remake the taglist and update to WWW (if on SLAC Linux).

make taglist

Rebuild all the detectors in place.

make build_all

Update the WWW with new detectors.

make update_www

Commit a new taglist to CVS.

make taglist_commit

Update your LCDetectors module.

make cvs_update

Update all the detectors on lcsim WWW from your local copies.

make update_all

Make all the LCDD files locally.

make lcdd_all

Make all the zip files locally.

make zip_all

Update single detector to lcsim WWW from local copy.

make update DETECTOR=sdjan03

Custom Detectors

You can configure org.lcsim to use your custom detector configurations using the conditions system. Basically, org.lcsim needs to know how to translate from the tag in the LCIO file to a zip file or directory containing the detector information.

It is possible to point org.lcsim at a detector from your local LCDetectors copy with an alias similar to the following.

Unknown macro: {copy}

sdjan03: file:/my/LCDetectors/detectors/sdjan03/

Refer to the Conditions Database Overview writeup under "Detector Alias File" for additional details.

  • No labels