These instructions assume "hps-distribution.jar" is the hps-java jar file you downloaded using the instructions on Running HPS Java, or compiled yourself.

The input data for this step is SLIC output; download from one of the sources listed on Finding Monte Carlo data at SLAC or generate using the instructions on Using SLIC to Generate MC Data.

Photon beam data

Filter and space out events

Photon beam events are simulated without pileup, so empty events must be inserted. (FilterMCBunches also deletes events unlikely to cause triggers.)

java -cp hps-distribution-bin.jar org.hps.users.meeg.FilterMCBunches in.slcio filtered.slcio -e250

Run simulation

The "runNumber" variable corresponds to run numbers in HPS Test Run - Run List; it sets the calibration constants to those seen in data from the specified run.

java -jar hps-distribution-bin.jar -r /org/hps/steering/readout/TestRunReadoutToEvio.lcsim -i filtered.slcio -DoutputFile=readout -DrunNumber=1351
java -jar hps-distribution-bin.jar -r /org/hps/steering/readout/TestRunReadoutToLcio.lcsim -i filtered.slcio -DoutputFile=readout -DrunNumber=1351

Electron beam data for 2014 run

Filter and space out events

If you're running A' or trident events for which a high trigger rate (more than around 1 trigger per 1000 events) is expected, you should insert empty bunches (or use the no-pileup simulation - see below - which runs much faster but is less realistic in simulating detector timing and efficiencies) since the readout simulation simulates pileup in the detectors assuming input events correspond to consecutive 2 ns beam bunches.

java -cp hps-distribution-bin.jar org.hps.users.meeg.FilterMCBunches in.slcio filtered.slcio -a -e250

"-a" tells FIlterMCBunches not to filter out any events. Running FIlterMCBunches without input or output files will print a full list of filter options.

Run simulation

Output to EVIO format:

java -jar hps-distribution-bin.jar -r /org/hps/steering/readout/HPS2014ReadoutToEvio.lcsim -i in.slcio -DoutputFile=readout

Output to LCIO format:

java -jar hps-distribution-bin.jar -r /org/hps/steering/readout/HPS2014ReadoutToLcio.lcsim -i in.slcio -DoutputFile=readout

Simulate without pileup (each event is treated independently, all detectors are reset between events), output to LCIO format:

java -jar hps-distribution-bin.jar -r /org/hps/steering/readout/HPS2014ReadoutNoPileup.lcsim -i in.slcio -DoutputFile=readout
  • No labels