|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.physics.event.BaseEvent
A simple implementation of HEPEvent
Constructor Summary | |
BaseEvent(int run,
int event)
|
|
BaseEvent(int run,
int event,
long timestamp)
Create a new event with an explicit timestamp |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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.Method Detail |
public Object get(String key)
HEPEvent
get
in interface HEPEvent
key
- The key for the objectpublic int getEventNumber()
getEventNumber
in interface HEPEvent
public int getRunNumber()
getRunNumber
in interface HEPEvent
public Map getTags()
HEPEvent
getTags
in interface HEPEvent
public Set keys()
keys
in interface HEPEvent
public void put(String key, Object component)
HEPEvent
put
in interface HEPEvent
key
- The key for this objectcomponent
- The object to addpublic long getTimeStamp()
HEPEvent
getTimeStamp
in interface HEPEvent
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |