lcsim/src/org/lcsim/contrib/uiowa
diff -u -r1.3 -r1.4
--- FlushReconstructedParticlesDriver.java 8 Mar 2008 20:49:23 -0000 1.3
+++ FlushReconstructedParticlesDriver.java 5 Jun 2008 21:59:13 -0000 1.4
@@ -44,6 +44,11 @@
for (CalorimeterHit hit : event.get(CalorimeterHit.class, "EcalEndcapHits")) { hitMap.put(hit.getCellID(), hit); }
for (CalorimeterHit hit : event.get(CalorimeterHit.class, "HcalEndcapHits")) { hitMap.put(hit.getCellID(), hit); }
+ if (!event.hasCollection(ReconstructedParticle.class, m_inputParticleListName)) {
+ // Collection is missing this event
+ return;
+ }
+
List<ReconstructedParticle> inputList = event.get(ReconstructedParticle.class, m_inputParticleListName);
Vector<ReconstructedParticle> outputList = new Vector<ReconstructedParticle>();
Vector<Cluster> outputClusterList = new Vector<Cluster>();