Versions Compared

Key

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

...

This guide will explain how to generate physics events in an HPS setup including the ECal and the tracking detectors.

Preliminaries

The Maven 2 tool must be installed locally (not covered here), as well as a Java JDK.

You will need:

  • SLIC
  • Detector geometry files in hps-detectors (you don't need to build the package)

Build SLIC

You need a copy of SLIC. See the build instructions at: Installing HPS Software

hps-detectors

You must first set CVSROOT to SLAC CVS (example in bash shell; look up how to use "setenv" in csh/tcsh).

No Format
export CVSROOT=:pserver:anonymous@cvs.freehep.org:/cvs/lcd

Other shells like csh have not been tested.

Create a work area where packages will be installed.

No Format

mkdir hps
cd hps

Build SimDist

You need a copy of SLIC. See the build instructions at: Installing HPS Software

These may now be obsolete, because of the new install methods. It used to be that SLAC users with NFS access may use this script.

No Format

/nfs/slac/g/lcd/mc/prj/sw/dist/SimDist/pro/scripts/slic.sh

JLAB users with computer access may use this script.

No Format

/home/clashps/HPS_Software/SimDist/scripts/slic.sh

hps-detectors

In your work area, checkout the hps-detectors module from cvs and install it.

No Format
cvs co hps-detectors
cd hps-detectors
mvn
cd ..

This will locally install the HPS detector data.

...

If you do not have SLAC NFS access, sample signal events can be obtained from this ftp space. Wiki Markup{htmlcomment} h2. Get a Current Version of LCSim Download a current version of the LCSim jar into your work dir. {noformat} wget http://www.lcsim.org/maven2/org/lcsim/lcsim/1.18-SNAPSHOT/lcsim-1.18-SNAPSHOT-bin.jar {noformat} h2. hps-java Checkout _hps-java_ from cvs and build it. {noformat} cvs co hps-java cd hps-java mvn install {noformat} This module contains Java code specific to the HPS experiment. h2. Detector Alias {noformat} echo "HPS-EcalTest-v1pt0: file://$(pwd)/hps-detectors/detectors/HPS-EcalTest-v1pt0" >> ~/.lcsim/alias.properties {noformat} h2. Sample Recon & Analysis {noformat} java -jar ./lcsim-1.18-SNAPSHOT-bin.jar -DinputFile=./hpsEcalTest \ ./hps-java/src/main/resources/org/lcsim/hps/steering/ecal_example.lcsim {noformat} {htmlcomment}