Versions Compared

Key

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

...

To compile the sample Driver into code that will be executed when given events from the LCIO record, right-click on the window and click Compile.

You should see a message similar to the following.

No Format

4:09:28 PM ----------- compile successful

This indicates that the code was successfully compiled in a binary class file.

Loading

...

To load the Driver so that it will process events, select Load from the right-click menu.

Subsequent compiles of this file will cause the Driver to be automatically reloaded.

Processing Events

Viewing Histograms

Explanation of Driver Code

...

No Format
public class Analysis101 extends Driver

The Analysis101 class extends Driver, which means that it can override some or all of Driver's public or protected methods to do some useful work, like filling histograms.

The class stores a reference to the default AIDA object.

No Format

private AIDA aida = AIDA.defaultInstance();

This is convenient for creating and filling histograms "on-the-fly".

The single function in this class is called process. Analysis101 inherits this method from Driver.

No Format
protected void process(EventHeader event)

Its single argument is the EventHeader of the current LCIO event. All collections in this event are accessible through the EventHeader interface.

Info
titleEventHeader API

Refer to the EventHeader JavaDoc for information on all the available methods in this interface.