public class BaseEvent extends Object implements HEPEvent
| Constructor and Description |
|---|
BaseEvent(int run,
int event) |
BaseEvent(int run,
int event,
long timestamp)
Create a new event with an explicit timestamp
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public BaseEvent(int run,
int event)
run - The run numberevent - Create a new event. The timestamp will be set
to the current time.public BaseEvent(int run,
int event,
long timestamp)
run - Teh run numberevent - The event numbertimestamp - The timestamp. By convention this is measured in nS since
1-jan-1970 GMT.public Object get(String key)
HEPEventpublic int getEventNumber()
getEventNumber in interface HEPEventpublic int getRunNumber()
getRunNumber in interface HEPEventpublic Map getTags()
HEPEventpublic Set keys()
public void put(String key, Object component)
HEPEventpublic long getTimeStamp()
HEPEventgetTimeStamp in interface HEPEventJas4pp 1.5 © Java Analysis Studio for Particle Physics