Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: removing outdated info on field map data

...

The default main method can be used when you are processing LCIO files using XML steering configurations.

Finding the Fieldmap

Most of the HPS detector geometries require a magnetic field map for the reconstruction or analysis to run. These maps must be located in a directory called fieldmap located in the directory from which you are running the executable or accessible via a symbolic link. The fieldmaps can be found online at: http://www.lcsim.org/resources/hps/fieldmap/

On Windows, you can create a symbolic link as follows:

Open a Command Prompt window with administrator privileges by clicking on Start -> All Programs -> Accessories and then right - clicking on Command Prompt and selecting Run as administrator. Navigate to the directory from which you will be running your program and create the symbolic link using mklink. Instead of linking directly to a specific fieldmap file, it's suggested that you link to a directory in which you maintain copies of all of the HPS fieldmaps. In the following example command, /D specifies linking to a directory and C:\work\hpsAnalysis\fieldmap is a common working directory (customize it to your installation).

Code Block
 mklink /D fieldmap C:\work\hpsAnalysis\fieldmap

Running a Specified Class's Main

...

Normal tests are run from the command-line using a syntax like this:

 

Code Block
languagebash
mvn test -Dtest=ClassNameOfTest

Integration tests are run from the integration-tests module directory with this syntax:

Code Block
languagebash
mvn verify -Dit.test=ClassNameOfTest

In both cases, the class should be provided without the package name.

More information about running integration tests can be found here.

...