Generating and Analyzing Events in a Standalone Application

This update assumes that you have successfully set up the event generation environment.

Once you have finalized your analysis program and are ready to run over large data samples, it is sometimes convenient to internally generate the Monte Carlo events. Here is an example which continues in the command-line mode. Copy the following three source files to your EvtGen area, add  C:\Program Files\Java Analysis Studio\extensions\lcd.jar to your CLASSPATH and you should be able to generate and analyze events with the following command:

>java Standalone XX YY

where XX and YY are the same arguments as for EvtGen, viz. number of events and event generator.

the output histograms will appear as Standalone.javahist . You can then open and analyze these within JAS itself via the "File -> Open" command then selecting "Java Histogram File (*.javahist)"

The Event Generator class:

StdhepEventGenerator.java

An example standalone, command-line java program which generates and analyzes events (using the following skeleton analysis, replace with your own).

Standalone.java

A skeleton analysis program, to be replaced by yours.

MCParticleAnalysis.java