LISTSERV mailing list manager LISTSERV 16.5

Help for LCDET-SVN Archives


LCDET-SVN Archives

LCDET-SVN Archives


LCDET-SVN@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

LCDET-SVN Home

LCDET-SVN Home

LCDET-SVN  December 2014

LCDET-SVN December 2014

Subject:

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

From:

[log in to unmask]

Reply-To:

Notification of commits to the lcdet svn repository <[log in to unmask]>

Date:

Mon, 15 Dec 2014 19:31:52 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (141 lines)

Author: [log in to unmask]
Date: Mon Dec 15 11:31:47 2014
New Revision: 3451

Log:
removed references to cell raw energies

Modified:
    projects/lcsim/trunk/event-model/src/main/java/org/lcsim/event/base/BaseCluster.java   (contents, props changed)

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	Mon Dec 15 11:31:47 2014
@@ -12,21 +12,22 @@
 import org.lcsim.geometry.IDDecoder;
 import org.lcsim.geometry.compact.Subdetector;
 
-
 /**
  * Default implementation of Cluster Interface for Simulation
  *
  * @author cassell
+ * 
+ * @version $Id:
  */
 public class BaseCluster implements Cluster
 {
     protected List<CalorimeterHit> hits = new ArrayList<CalorimeterHit>();
     protected List<Cluster> clusters = new ArrayList<Cluster>();
     protected List<Subdetector> detectors = new ArrayList<Subdetector>();
-    protected double raw_energy;
+//    protected double raw_energy;
     protected double corrected_energy;
     protected double energyError;
-    protected double[] subdetector_raw_energies = new double[10];
+//    protected double[] subdetector_raw_energies = new double[10];
     protected double[] subdetector_corrected_energies = new double[10];
     protected List<Double> hit_energies = new ArrayList<Double>();
     protected ClusterPropertyCalculator cluster_property_calculator = new TensorClusterPropertyCalculator();
@@ -40,11 +41,11 @@
 
     public BaseCluster()
     {
-        raw_energy = 0.;
+    //    raw_energy = 0.;
         corrected_energy = 0.;
         for(int i=0;i<10;i++)
         {
-            subdetector_raw_energies[i] = 0.;
+//            subdetector_raw_energies[i] = 0.;
             subdetector_corrected_energies[i] = 0.;
         }
         position = new double[3];
@@ -59,7 +60,7 @@
     {
         hits.add(hit);
         double hre = hit.getRawEnergy();
-        raw_energy += hre;
+    //    raw_energy += hre;
         double hce = hit.getCorrectedEnergy();
         IDDecoder idc = hit.getIDDecoder();
         idc.setID(hit.getCellID());
@@ -69,7 +70,7 @@
         if((detector_index > 9 )|(detector_index < 0))detector_index = 0;
         corrected_energy += hce;
         hit_energies.add(hce);
-        subdetector_raw_energies[detector_index] += hre;
+//        subdetector_raw_energies[detector_index] += hre;
         subdetector_corrected_energies[detector_index] += hce;
         needsPropertyCalculation = true;
     }
@@ -93,7 +94,7 @@
         int indx = hits.indexOf(hit);
         hits.remove(hit);
         double hre = hit.getRawEnergy();
-        raw_energy -= hre;
+    //    raw_energy -= hre;
         double hce = hit.getCorrectedEnergy();
         IDDecoder idc = hit.getIDDecoder();
         idc.setID(hit.getCellID());
@@ -101,7 +102,7 @@
         if((detector_index > 9 )|(detector_index < 0))detector_index = 0;
         corrected_energy -= hce;
         hit_energies.remove(indx);
-        subdetector_raw_energies[detector_index] -= hre;
+//        subdetector_raw_energies[detector_index] -= hre;
         subdetector_corrected_energies[detector_index] -= hce;
         needsPropertyCalculation = true;
     }
@@ -121,16 +122,16 @@
             needsPropertyCalculation = true;
         }
         corrected_energy += cluster.getEnergy();
-        if(cluster instanceof BaseCluster)
-        {
-            BaseCluster bcl = (BaseCluster) cluster;
-            raw_energy += bcl.getRawEnergy();
-        }
+//        if(cluster instanceof BaseCluster)
+//        {
+//            BaseCluster bcl = (BaseCluster) cluster;
+//            raw_energy += bcl.getRawEnergy();
+//        }
         double[] sde = cluster.getSubdetectorEnergies();
         for(int i=0;i<sde.length;i++)
         {
             subdetector_corrected_energies[i] += sde[i];
-            subdetector_raw_energies[i] += sde[i];
+//            subdetector_raw_energies[i] += sde[i];
         }
     }
 
@@ -279,13 +280,13 @@
         return 0;
     }
 
-    /**
-     * Return the sum of the raw energies from the hits in the cluster
-     */
-    public double getRawEnergy()
-    {
-        return raw_energy;
-    }
+//    /**
+//     * Return the sum of the raw energies from the hits in the cluster
+//     */
+//    public double getRawEnergy()
+//    {
+//        return raw_energy;
+//    }
 
     /**
      * Allow for recalculation of cluster properties, or

########################################################################
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

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use