Commit in lcsim/src/org/lcsim/recon/cluster/analysis on MAIN
ClusterAnalysisDriver.java+15-81.2 -> 1.3
(RC) Add try/catch to avoid exception when FSParticle list not there

lcsim/src/org/lcsim/recon/cluster/analysis
ClusterAnalysisDriver.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- ClusterAnalysisDriver.java	21 Jun 2006 18:34:18 -0000	1.2
+++ ClusterAnalysisDriver.java	1 Jul 2006 22:10:42 -0000	1.3
@@ -57,11 +57,11 @@
         {
             cllist += ", "+clustercollnames[i];
         }
-        System.out.println("ClusterAnalysisDriver initialized");
-        System.out.println("Hit lists = "+hclist);
-        System.out.println("Cluster lists = "+cllist);
-        System.out.println("FSParticle list = "+fsParticleListName);
-        System.out.println("Folder name = "+foldername);
+//        System.out.println("ClusterAnalysisDriver initialized");
+//        System.out.println("Hit lists = "+hclist);
+//        System.out.println("Cluster lists = "+cllist);
+//        System.out.println("FSParticle list = "+fsParticleListName);
+//        System.out.println("Folder name = "+foldername);
         DefaultClusterAnalysis defanal = new DefaultClusterAnalysis(MCPCname,
             CMCPname, foldername);
         analyzer = defanal;
@@ -73,14 +73,21 @@
     {
         analyzer = anal;
     }
-    protected void process(EventHeader event)
+    public void process(EventHeader event)
     {
         if(first)
         {
             gotit = false;
             first = false;
-            Collection<MCParticle> mclist = event.get(MCParticle.class, fsParticleListName);
-	    if(mclist!=null && mclist.size()>0) gotit = true;
+            Collection<MCParticle> mclist = null;
+            try
+            {
+                mclist = event.get(MCParticle.class, fsParticleListName);
+            }
+            catch(IllegalArgumentException e)
+            {
+            }
+            if(mclist!=null && mclist.size()>0) gotit = true;
 
             if(!gotit)
             {
CVSspam 0.2.8