Versions Compared

Key

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

...

  1. If the name is a URL with a file: protocol, the local file (zip format) or directory path specified is assumed to contain the conditions.
  2. If the name is 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.

If the translated name is not a URL, then it is an alias.

The algorithm searches for a directory or zip file with that name in the following "canonical" locations:

    1. ~/.lcsim/detectors
    2. Within the lcsim.jar file at
      No Format
      /org/lcsim/detector/
    3. At
      No Format
      http://www.lcsim.org/detectors/

If none of these succeed in finding the conditions for the specied detector the translation does not result in a valid set of conditions, the program will terminate with an error. (In Java, this is a ConditionsNotFoundException).

Java Example

Here is an example of accessing conditions of the sdjan03 detector from Java code.

...