hep.physics.event
Interface HEPEvent
-
- All Known Subinterfaces:
- MCEvent
- All Known Implementing Classes:
- BaseEvent, GeneratorEvent
public interface HEPEventA simple event structure. Designed to be used as a base class for experiment specific event descriptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.Objectget(java.lang.String key)Get an object from the eventintgetEventNumber()intgetRunNumber()java.util.MapgetTags()An arbitrary set of tags that can be associated with the event.longgetTimeStamp()Get the current timestamp.java.util.Setkeys()voidput(java.lang.String key, java.lang.Object component)Puts an arbitrary object into the event
-
-
-
Method Detail
-
getEventNumber
int getEventNumber()
- Returns:
- The event number
-
getRunNumber
int getRunNumber()
- Returns:
- The run number for this event
-
getTimeStamp
long getTimeStamp()
Get the current timestamp. By convention this is measured in nS since 1-jan-1970 GMT.- Returns:
- The timestamp.
-
put
void put(java.lang.String key, java.lang.Object component)Puts an arbitrary object into the event- Parameters:
key- The key for this objectcomponent- The object to add
-
get
java.lang.Object get(java.lang.String key) throws java.lang.IllegalArgumentExceptionGet an object from the event- Parameters:
key- The key for the object- Throws:
java.lang.IllegalArgumentException- if the specified object does not exist in the event.
-
getTags
java.util.Map getTags()
An arbitrary set of tags that can be associated with the event. Intended to be used for fast event selection.
-
keys
java.util.Set keys()
- Returns:
- The set of keys stored in the event
-
-
DMelt 3.0 © DataMelt by jWork.ORG