FreeHEP API
Version current

hep.physics.event
Interface HEPEvent

All Known Subinterfaces:
MCEvent
All Known Implementing Classes:
BaseEvent, GeneratorEvent

public interface HEPEvent

A simple event structure. Designed to be used as a base class for experiment specific event descriptions.

Author:
Tony Johnson
Source Code:
HEPEvent.java

Method Summary
 Object get(String key)
          Get an object from the event
 int getEventNumber()
           
 int getRunNumber()
           
 Map getTags()
          An arbitrary set of tags that can be associated with the event.
 long getTimeStamp()
          Get the current timestamp.
 Set keys()
           
 void put(String key, Object component)
          Puts an arbitrary object into the event
 

Method Detail

getEventNumber

public int getEventNumber()
Returns:
The event number

getRunNumber

public int getRunNumber()
Returns:
The run number for this event

getTimeStamp

public long getTimeStamp()
Get the current timestamp. By convention this is measured in nS since 1-jan-1970 GMT.

Returns:
The timestamp.

put

public void put(String key,
                Object component)
Puts an arbitrary object into the event

Parameters:
key - The key for this object
component - The object to add

get

public Object get(String key)
           throws IllegalArgumentException
Get an object from the event

Parameters:
key - The key for the object
Throws:
IllegalArgumentException - if the specified object does not exist in the event.

getTags

public Map getTags()
An arbitrary set of tags that can be associated with the event. Intended to be used for fast event selection.


keys

public Set keys()
Returns:
The set of keys stored in the event

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.