All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class hep.analysis.EventHandler

java.lang.Object
   |
   +----hep.analysis.EventHandler

public abstract class EventHandler
extends Object
The base class for EventAnalyzer and EventGenerator.

See Also:
EventAnalyzer, EventGenerator

Variable Index

 o out
The log stream used to send messages.

Constructor Index

 o EventHandler()

Method Index

 o afterLastEvent()
Called after the last event is handled.
 o beforeFirstEvent()
Called before the first event is handled.
 o histogram(String)
Returns the Histogram object with the given name.
 o histogram(String, HistogramFolder)
Returns the Histogram object with the given name.
 o sendMessage(String)
Displays a message.

Variables

 o out
 protected PrintWriter out
The log stream used to send messages.

Constructors

 o EventHandler
 public EventHandler()

Methods

 o beforeFirstEvent
 public void beforeFirstEvent()
Called before the first event is handled. Does nothing by default. Override to have something happen.

 o afterLastEvent
 public void afterLastEvent()
Called after the last event is handled. Does nothing by default. Override to have something happen.

 o sendMessage
 public void sendMessage(String message)
Displays a message.

Parameters:
message - the message to display
 o histogram
 protected final Histogram histogram(String name)
Returns the Histogram object with the given name. Looks in the default folder.

Parameters:
name - the name of the histogram to find
Returns:
the Histogram object with the name given by the parameter name.
 o histogram
 protected final Histogram histogram(String name,
                                     HistogramFolder parent)
Returns the Histogram object with the given name. Looks in the given folder.

Parameters:
name - the name of the histogram to find
parent - the folder to look in
Returns:
the Histogram object with the name given by the parameter name.

All Packages  Class Hierarchy  This Package  Previous  Next  Index