Print

Print


Author: [log in to unmask]
Date: Fri May 22 13:56:10 2015
New Revision: 3616

Log:
Change copy constructor to use Cluster interface because SIOCluster will be used frequently and not just BaseCluster.

Modified:
    projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/base/BaseCluster.java

Modified: projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/base/BaseCluster.java
 =============================================================================
--- projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/base/BaseCluster.java	(original)
+++ projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/base/BaseCluster.java	Fri May 22 13:56:10 2015
@@ -125,7 +125,7 @@
      * 
      * @param cluster the <code>BaseCluster</code> to copy
      */
-    public BaseCluster(BaseCluster cluster) {
+    public BaseCluster(Cluster cluster) {
                
         // Copy the hit list; the hits themselves are *not* copied.
         for (CalorimeterHit hit : cluster.getCalorimeterHits()) {
@@ -165,9 +165,6 @@
         // Copy type and PID.
         this.type = cluster.getType();
         this.pid = cluster.getParticleId();
-        
-        // Set needs property calculation.
-        this.needsPropertyCalculation = cluster.needsPropertyCalculation();
     }   
     
     /**

########################################################################
Use REPLY-ALL to reply to list

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