Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Recursively translate the detector name using alias files. The alias files are property files An alias file is a property file named alias.properties that is stored in one or more of the following locations.

  1. The user home directory.
    No Format
    ~/.lcsim/
    alias.properties
  2. Within alias.properties stored in the lcsim.jar file itself in the path .
    No Format
    org/lcsim/detector/
    alias.properties
  3. At a URL on the LCSim website.
    No Format
    http://www.lcsim.org/detectors/

Your custom aliases belong at

No Format
~/.lcsim/alias.properties

as this is likely the only place to which you'll have write access.

Once this translation is complete, the resulting name is checked as follows.

  1. If the name is a URL with a file: protocol, the file or directory specified is assumed to contain the conditions.
    Here is an example zipfile location.
    No Format
    sdjan03: file:/path/to/sdjan03.zip
    
    Here is an example directory.
    No Format
    sdjan03: file:/path/to/sdjan03
    
  2. If the name is a remote URL then an attempt is made to download a zip file from that location (if the zip file is already in the local cache and up-to-date it is used from there).
    This is an example URL.
    No Format
    
    http://www.example.com/path/to/sdjan03.zip
    
  3. If the name is not a URL, we search for a directory or zip file with that name in the following locations:
    1. ~/.lcsim/detectors
    2. In Within the lcsim.jar file itselfat
      No Format
      /org/lcsim/detector/
    3. At In
      No Format
      http://www.lcsim.org/detectors/

...