public class BaseLCSimEvent extends BaseEvent implements EventHeader
Modifier and Type | Class and Description |
---|---|
private class |
BaseLCSimEvent.MetaData |
EventHeader.LCMetaData
Modifier and Type | Field and Description |
---|---|
private ConditionsManager |
conditionsManager |
private String |
detectorName |
private Map<String,float[]> |
floatParameters |
private Map<String,int[]> |
intParameters |
private Map<List,EventHeader.LCMetaData> |
metaDataMap |
private static int |
NANO_SECONDS |
static String |
READOUT_NAME |
private Map<String,String[]> |
stringParameters |
MC_PARTICLES
Constructor and Description |
---|
BaseLCSimEvent(int run,
int event,
String detectorName)
Creates a new instance of BaseLCSimEvent
|
BaseLCSimEvent(int run,
int event,
String detectorName,
long timeStamp) |
BaseLCSimEvent(int run,
int event,
String detectorName,
long timeStamp,
boolean triggerConditionsUpdate) |
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() |
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 name)
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 |
put(String name,
Object component) |
void |
remove(String name)
Removes a collection from the event.
|
private void |
setCollectionMetaData(List collection,
Class type,
EventHeader.LCMetaData meta) |
String |
toString() |
get, getEventNumber, getRunNumber, getTags, getTimeStamp, keys
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTimeStamp
get, getEventNumber, getRunNumber, getTags, keys
private static final int NANO_SECONDS
public static final String READOUT_NAME
private final ConditionsManager conditionsManager
private final String detectorName
private final Map<List,EventHeader.LCMetaData> metaDataMap
public BaseLCSimEvent(int run, int event, String detectorName)
public BaseLCSimEvent(int run, int event, String detectorName, long timeStamp)
public BaseLCSimEvent(int run, int event, String detectorName, long timeStamp, boolean triggerConditionsUpdate)
public <T> List<List<T>> get(Class<T> type)
EventHeader
get
in interface EventHeader
type
- The type of object requested.public <T> List<T> get(Class<T> type, String name)
EventHeader
get
in interface EventHeader
type
- The class of items stored in the requested collectionname
- The name of the requested collectionpublic Detector getDetector()
EventHeader
getDetector
in interface EventHeader
public String getDetectorName()
EventHeader
getDetectorName
in interface EventHeader
public Map<String,float[]> getFloatParameters()
getFloatParameters
in interface EventHeader
public Map<String,int[]> getIntegerParameters()
getIntegerParameters
in interface EventHeader
public Set<List> getLists()
EventHeader
getLists
in interface EventHeader
Set
of List
objects associated with this event.public List<MCParticle> getMCParticles()
EventHeader
getMCParticles
in interface MCEvent
getMCParticles
in interface EventHeader
public Collection<EventHeader.LCMetaData> getMetaData()
EventHeader
getMetaData
in interface EventHeader
Collection
of LCMetaData
objects associated with this event.public EventHeader.LCMetaData getMetaData(List x)
EventHeader
getMetaData
in interface EventHeader
public Map<String,String[]> getStringParameters()
getStringParameters
in interface EventHeader
public float getWeight()
EventHeader
getWeight
in interface EventHeader
public boolean hasCollection(Class type)
EventHeader
hasCollection
in interface EventHeader
public boolean hasCollection(Class type, String name)
EventHeader
hasCollection
in interface EventHeader
public boolean hasItem(String name)
EventHeader
hasItem
in interface EventHeader
name
- The name of the item to look fortrue
if the event contains an item with the given name.public void put(String name, List collection, Class type, int flags)
EventHeader
put
in interface EventHeader
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.public void put(String name, List collection, Class type, int flags, Map intMap, Map floatMap, Map stringMap)
put
in interface EventHeader
public void put(String name, List collection, Class type, int flags, String readoutName)
EventHeader
put
in interface EventHeader
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 collectionpublic void remove(String name)
remove
in interface EventHeader
private void setCollectionMetaData(List collection, Class type, EventHeader.LCMetaData meta)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.