lcsim/src/org/lcsim/event
diff -u -r1.20 -r1.21
--- EventHeader.java 27 Nov 2008 23:57:03 -0000 1.20
+++ EventHeader.java 18 Dec 2008 20:48:59 -0000 1.21
@@ -1,8 +1,12 @@
package org.lcsim.event;
import hep.physics.event.generator.MCEvent;
+
+import java.util.Collection;
import java.util.List;
import java.util.Map;
+import java.util.Set;
+
import org.lcsim.geometry.Detector;
import org.lcsim.geometry.IDDecoder;
@@ -10,7 +14,7 @@
* The event header from which information about the rest of the event
* can be obtained.
* @author Tony Johnson
- * @version $Id: EventHeader.java,v 1.20 2008/11/27 23:57:03 onoprien Exp $
+ * @version $Id: EventHeader.java,v 1.21 2008/12/18 20:48:59 jeremy Exp $
*/
public interface EventHeader extends MCEvent
{
@@ -19,7 +23,7 @@
*/
List<MCParticle> getMCParticles();
List<Track> getTracks();
- List<Cluster> getClusters();
+ List<Cluster> getClusters();
List<SimCalorimeterHit> getSimCalorimeterHits(String name);
List<SimTrackerHit> getSimTrackerHits(String name);
@@ -45,13 +49,27 @@
LCMetaData getMetaData(List x);
/**
+ * Get all the meta data associated with this event.
+ * @return A <code>Collection</code> of <code>LCMetaData</code> objects associated with this event.
+ */
+ Collection<LCMetaData> getMetaData();
+
+ /**
+ * Get all the lists associated with this event.
+ * @return A <code>Set</code> of <code>List</code> objects associated with this event.
+ */
+ public Set<List> getLists();
+
+ /**
* The name of the detector, used to obtain geometry and conditions.
*/
String getDetectorName();
+
/**
* The creation time of this event (in nS since 1-Jan-1970 GMT).
*/
long getTimeStamp();
+
/**
* Get the detector description read from the conditions database
*/
lcsim/src/org/lcsim/event/base
diff -u -r1.5 -r1.6
--- BaseLCSimEvent.java 2 Sep 2008 21:38:15 -0000 1.5
+++ BaseLCSimEvent.java 18 Dec 2008 20:48:59 -0000 1.6
@@ -3,12 +3,14 @@
import hep.physics.event.BaseEvent;
import java.util.ArrayList;
+import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.IdentityHashMap;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import org.lcsim.conditions.ConditionsManager;
import org.lcsim.conditions.ConditionsManager.ConditionsNotFoundException;
@@ -110,6 +112,16 @@
}
return result;
}
+
+ public Collection<LCMetaData> getMetaData()
+ {
+ return metaDataMap.values();
+ }
+
+ public Set<List> getLists()
+ {
+ return metaDataMap.keySet();
+ }
public LCMetaData getMetaData(List x)
{