Versions Compared

Key

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

...

The current system uses the following algorithm for accessing conditions based on detector name.

As an example we will use the name "myDetector".

Recursively translate the detector name using alias files. The alias files are property files stored in one or more of the following locations.

...

  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
    
    myDetector: file:/path/to/myDetector.zip
    
    Here is an example directory.
    No Format
    
    myDetector: file:/path/to/myDetector
    
  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).
  3. If the name is not a URL, we search for a directory or zip file in the following locations:
    1. ~/.lcsim/detectors
    2. In the lcsim.jar file itself
    3. In
      No Format
      http://www.lcsim.org/detectors/

...