Print

Print


Commit in hps-java/src/main/java/org/lcsim/hps/users/phansson on MAIN
ParticleHelixProducer.java+4-61.6 -> 1.7
Return if the event doesn't contain MC particles

hps-java/src/main/java/org/lcsim/hps/users/phansson
ParticleHelixProducer.java 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- ParticleHelixProducer.java	20 Oct 2012 10:07:04 -0000	1.6
+++ ParticleHelixProducer.java	9 Nov 2012 01:46:50 -0000	1.7
@@ -32,6 +32,7 @@
 /**
  *
  * @author phansson
+ * @version $Id: ParticleHelixProducer.java,v 1.7 2012/11/09 01:46:50 omoreno Exp $
  */
 public class ParticleHelixProducer extends Driver {
     
@@ -241,16 +242,13 @@
         }
         else {
             System.out.println(this.getClass().getSimpleName() + ": no MC particles in this event");
+            return;
         }
         
         if(debug) System.out.println(this.getClass().getSimpleName() + ": created " + tracks.size() + " MC particle helix tracks");
         
-        // event.put(this.trackOutputCollectionName, tracks, HelicalTrackFit.class, 0);
-        event.put(this.trackOutputCollectionName, tracks, HpsHelicalTrackFit.class, 0);
-        _totalTracks += tracks.size();
-        
-        
-        
+            event.put(this.trackOutputCollectionName, tracks, HpsHelicalTrackFit.class, 0);
+            _totalTracks += tracks.size();
     }
     
     /**
CVSspam 0.2.12


Use REPLY-ALL to reply to list

To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1