public interface EventHeader extends MCEvent
Modifier and Type | Interface and Description |
---|---|
static interface |
EventHeader.LCMetaData
List of elements stored in the event may have meta-data associated with
them.
|
MC_PARTICLES
Modifier and Type | Method and Description |
---|---|
<T> List<List<T>> |
get(Class<T> type)
Get a collection of data from the event.
|
<T> List<T> |
get(Class<T> type,
String name)
Obtain a collection of objects associated with this event, specified by type and name.
|
Detector |
getDetector()
Get the detector description read from the conditions database
|
String |
getDetectorName()
The name of the detector, used to obtain geometry and conditions.
|
Map<String,float[]> |
getFloatParameters() |
Map<String,int[]> |
getIntegerParameters() |
Set<List> |
getLists()
Get all the lists associated with this event.
|
List<MCParticle> |
getMCParticles()
Get the list of MC particles associated with this event.
|
Collection<EventHeader.LCMetaData> |
getMetaData()
Get all the meta data associated with this event.
|
EventHeader.LCMetaData |
getMetaData(List x)
Get the meta data associated with a list obtained from this event.
|
Map<String,String[]> |
getStringParameters() |
long |
getTimeStamp()
The creation time of this event (in nS since 1-Jan-1970 GMT).
|
float |
getWeight()
Get the event weight
|
boolean |
hasCollection(Class type)
Test if the event contains at least one collection of the given type.
|
boolean |
hasCollection(Class type,
String collection)
Test if the event contains a collection of a given type and name.
|
boolean |
hasItem(String name)
Test if the event contains a given item.
|
void |
put(String name,
List collection,
Class type,
int flags)
Add a collection to the event.
|
void |
put(String name,
List collection,
Class type,
int flags,
Map intMap,
Map floatMap,
Map stringMap) |
void |
put(String name,
List collection,
Class type,
int flags,
String readoutName)
Add a collection to the event.
|
void |
remove(String name)
Removes an item from the event
|
get, getEventNumber, getRunNumber, getTags, keys, put
List<MCParticle> getMCParticles()
getMCParticles
in interface MCEvent
<T> List<List<T>> get(Class<T> type)
type
- The type of object requested.<T> List<T> get(Class<T> type, String name)
type
- The class of items stored in the requested collectionname
- The name of the requested collectionEventHeader.LCMetaData getMetaData(List x)
Collection<EventHeader.LCMetaData> getMetaData()
Collection
of LCMetaData
objects associated with this event.Set<List> getLists()
Set
of List
objects associated with this event.String getDetectorName()
long getTimeStamp()
getTimeStamp
in interface HEPEvent
Detector getDetector()
void put(String name, List collection, Class type, int flags)
name
- The name used to stored this collection in the event.collection
- The data collectiontype
- The class of objects stored in the collection.flags
- The LCIO flags associated with the collection.void put(String name, List collection, Class type, int flags, String readoutName)
name
- The name used to stored this collection in the event.collection
- The data collectiontype
- The class of objects stored in the collection.flags
- The LCIO flags associated with the collection.readoutName
- The name of the readout to be used to decode hits in this collectionvoid put(String name, List collection, Class type, int flags, Map intMap, Map floatMap, Map stringMap)
name
- collection
- type
- flags
- intMap
- floatMap
- stringMap
- void remove(String name)
boolean hasCollection(Class type, String collection)
boolean hasCollection(Class type)
boolean hasItem(String name)
name
- The name of the item to look fortrue
if the event contains an item with the given name.float getWeight()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.