Versions Compared

Key

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

...

  1. If the tag value is a URL with a protocol of file:, the local file (zip format) or directory path specified is assumed to contain the conditions.
  2. If the tag value is the URL of a zip file at a remote URL, an attempt is made to download the file from that location, unless the zip file is already in the local cache (~/.lcsim/cache). In this case, the local copy is used instead.

In the case of an alias to another that the tag value resolves to a detector tag, once the final detector tag is determined, the algorithm searches the following "canonical" locations are searched for a directory or zip file with the same name as the tag in the following "canonical" locations:

  1. In the user home directory.
    No Format
    ~/.lcsim/detectors
    
  2. Within the lcsim.jar file.
    No Format
    /org/lcsim/detector/
  3. On the LCSim website.
    No Format
    http://www.lcsim.org/detectors/

So the following locations would be scanned for sdjan03 conditions.

  1. Within the home directory.
    No Format
    
    ~/.lcsim/detectors/sdjan03.zip
    ~/.lcsim/detectors/sdjan03/
    
  2. In the jar file.
    No Format
    
    /org/lcsim/detector/sdjan03.zip
    /org/lcsim/detector/sdjan03/
    
  3. On the LCSim website.
    No Format
    
    http://www.lcsim.org/detectors/sdjan03.zip
    

If the lookup process does not result in a valid set of conditions, the program will terminate with an error. (In Java, this is a ConditionsNotFoundException).

...