Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
h1. LCDetectors

h3. Overview

LCDetectors contains detector data for the 

LCDetectors

Overview

...

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.

...



h3. 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].

h3.

...

 Getting from CVS

...



LCDetectors is kept at the SLAC CVS.

...



Instructions to checkout of CVS.

...



{code
}
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.

Code Block

{code}

h3. 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*

{code}
make zip DETECTOR=sdjan03
{code}

Build LCDD file for single detector

...

Code Block
.  The LCDD file will be placed at *detectors/$DETECTOR/$DETECTOR.lcdd*

{code}
make lcdd DETECTOR=sdjan03
{code}

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

...



{code
}
make build DETECTOR=sdjan03
{code}

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

...



{code
}
make taglist
{code}

Rebuild all the detectors in place.

...



{code
}
make build_all
{code}

Update the WWW with new detectors.

...



{code
}
make update_www
{code}

Commit a new taglist to CVS.

...



{code
}
make taglist_commit
{code}

Update your LCDetectors module.

...



{code
}
make cvs_update
{code}

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

...



{code
}
make update_all
{code}

Make all the LCDD files

...

Code Block
 locally.  

{code}
make lcdd_all
{code}

Make all the zip files locally.

...



{code
}
make zip_all
{code}

Update single detector to lcsim WWW from local copy.

...



{code
}
make update DETECTOR=sdjan03
{code}

h3. 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.

{copy}
sdjan03: file:/my/LCDetectors/detectors/sdjan03/
{copy}

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