You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Writing an analysis driver

You need to have lcsim installed and compiled. These instructions assume you have symlinks such that "hps-java.jar" points to hps-java/target/hps-java-1.2-SNAPSHOT-bin.jar, and "steering" points to hps-java/src/main/resources/org/lcsim/hps/steering/.

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-java.jar -i recon.slcio steering/StarterAnalysis.lcsim -DoutputFile=analysis_plots

Plots saved to AIDA files can be viewed in JAS3.

Viewing events in JAS3

See instructions in HPS Digitization, Tracking, and Analysis Software and Installing HPS Software to install JAS3 and the lcsim plugin for 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