Versions Compared

Key

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

Writing an analysis driver

You need to have lcsim installed and compiled. These instructions assume you have symlinks such that "hps-javadistribution.jar" points to hps-java/target/is the hps-java -1.2-SNAPSHOT-bin.jar, and "steering" points to hps-java/src/main/resources/org/lcsim/hps/steering/jar file you downloaded using the instructions on Running HPS Java, or compiled yourself.

This will read the reconstructed LCIO file recon.slcio, run the drivers listed in StarterAnalysis.lcsim, and save plots to analysis_plots.aida:

No Format

java -jar hps-javadistribution.jar -i recon.slcio -r /org/hps/steering/analysis/StarterAnalysis.lcsim -DoutputFile=analysis_plots

Plots saved to AIDA files can be viewed in JAS3.

Viewing events in JAS3

...

Open the reconstructed LCIO file using either "File->Open File" or "File->Open Data Source." The name of the file should appear in the toolbar along with buttons for moving forward and backwards through the file, and for opening the LCSim event browser.


LCSim event browser

Open the event browser using the rightmost button on the toolbar shown above. This lists all collections saved in the current LCIO event.

WIRED event viewer

Open the WIRED viewer using "File->New->Wired4 View." This shows the detector, and all track and hit objects in the current LCIO event.

...