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)
HEPEvent
public int getEventNumber()
getEventNumber
in interface HEPEvent
public int getRunNumber()
getRunNumber
in interface HEPEvent
public Map getTags()
HEPEvent
public Set keys()
public void put(String key, Object component)
HEPEvent
public long getTimeStamp()
HEPEvent
getTimeStamp
in interface HEPEvent
Jas4pp 1.5 © Java Analysis Studio for Particle Physics