Writing an analysis driver

These instructions assume "hps-distribution.jar" is the hps-java 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:

java -jar hps-distribution.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.

Tracks and some track hits appear in the rotated "tracking frame." Positions of some hits are unphysical due to details of their representation in LCIO (ECal hits may all be at (0,0,0), strip hits do not appear as strips, etc.).

  • No labels