LISTSERV mailing list manager LISTSERV 16.5

Help for HPS-SVN Archives


HPS-SVN Archives

HPS-SVN Archives


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

HPS-SVN Home

HPS-SVN Home

HPS-SVN  January 2015

HPS-SVN January 2015

Subject:

r1921 - /java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/

From:

[log in to unmask]

Reply-To:

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

Date:

Tue, 13 Jan 2015 20:12:33 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (163 lines)

Author: [log in to unmask]
Date: Tue Jan 13 12:12:24 2015
New Revision: 1921

Log:
Change some file names.

Added:
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterEnergyCorrection.java
      - copied, changed from r1909, java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterEnergyCorrection.java
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterPositionCorrection.java
      - copied, changed from r1909, java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterPositionCorrection.java
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/DefaultClusterPropertyCalculator.java
      - copied, changed from r1909, java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterPropertyCalculator.java
Removed:
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterEnergyCorrection.java
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterPositionCorrection.java
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterPropertyCalculator.java
Modified:
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterUtilities.java

Copied: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterEnergyCorrection.java (from r1909, java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterEnergyCorrection.java)
 =============================================================================
--- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterEnergyCorrection.java	(original)
+++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterEnergyCorrection.java	Tue Jan 13 12:12:24 2015
@@ -8,7 +8,7 @@
  * 
  * @author Jeremy McCormick <[log in to unmask]>
  */
-public final class ReconClusterEnergyCorrection {
+public final class ClusterEnergyCorrection {
         
     // Variables for electron energy corrections.
     static final double ELECTRON_ENERGY_A = -0.0027;

Copied: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterPositionCorrection.java (from r1909, java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterPositionCorrection.java)
 =============================================================================
--- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterPositionCorrection.java	(original)
+++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterPositionCorrection.java	Tue Jan 13 12:12:24 2015
@@ -11,7 +11,7 @@
  * 
  * @author Jeremy McCormick <[log in to unmask]>
  */
-public final class ReconClusterPositionCorrection {
+public final class ClusterPositionCorrection {
            
     // Variables for electron position corrections.
     static final double ELECTRON_POS_A = 0.0066;

Modified: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterUtilities.java
 =============================================================================
--- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterUtilities.java	(original)
+++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ClusterUtilities.java	Tue Jan 13 12:12:24 2015
@@ -23,9 +23,6 @@
  * @see org.lcsim.event.base.BaseCluster
  */
 public final class ClusterUtilities {
-    
-    // Use the HPS specific property calculator.
-    private static final ReconClusterPropertyCalculator propertyCalculator = new ReconClusterPropertyCalculator();
     
     private ClusterUtilities() {        
     }
@@ -324,9 +321,9 @@
     /**
      * Apply HPS-specific energy and position corrections to a list of clusters in place.
      * 
-     * @see ReconClusterPropertyCalculator
-     * @see ReconClusterPositionCorrection
-     * @see ReconClusterEnergyCorrection
+     * @see DefaultClusterPropertyCalculator
+     * @see ClusterPositionCorrection
+     * @see ClusterEnergyCorrection
      */
     public static void applyCorrections(List<Cluster> clusters) {
                 
@@ -336,46 +333,14 @@
             if (cluster instanceof BaseCluster) {
             
                 BaseCluster baseCluster = (BaseCluster)cluster;            
+                        
+                // Apply PID based position correction, which should happen before final energy correction.
+                ClusterPositionCorrection.setCorrectedPosition(baseCluster);
             
-                // First calculate the cluster properties, if needed.
-                if (baseCluster.needsPropertyCalculation()) {                
-                    // Calculate the properties of the cluster.
-                    baseCluster.setPropertyCalculator(propertyCalculator);
-                    baseCluster.calculateProperties();
-                }
-            
-                // Apply position correction, which should happen before final energy correction.
-                ReconClusterPositionCorrection.setCorrectedPosition(baseCluster);
-            
-                // Apply energy correction.
-                ReconClusterEnergyCorrection.setCorrectedEnergy(baseCluster);
-            }
-        }
-    }
-    
-    /**
-     * Apply HPS-specific energy and position corrections to a single Cluster.
-     * 
-     * @see ReconClusterPropertyCalculator
-     * @see ReconClusterPositionCorrection
-     * @see ReconClusterEnergyCorrection
-     */
-    public static void applyCorrections(Cluster cluster) {
-
-        BaseCluster baseCluster = (BaseCluster)cluster;            
-
-        // First calculate the cluster properties, if needed.
-        if (baseCluster.needsPropertyCalculation()) {                
-            // Calculate the properties of the cluster.
-            baseCluster.setPropertyCalculator(propertyCalculator);
-            baseCluster.calculateProperties();
-        }
-
-        // Apply position correction, which should happen before final energy correction.
-        ReconClusterPositionCorrection.setCorrectedPosition(baseCluster);
-
-        // Apply energy correction.
-        ReconClusterEnergyCorrection.setCorrectedEnergy(baseCluster);              
+                // Apply PID based energy correction.
+                ClusterEnergyCorrection.setCorrectedEnergy(baseCluster);
+            }
+        }
     }
     
     /**
@@ -384,7 +349,7 @@
      * @param clusters The list of clusters.
      */
     public static void calculateProperties(List<Cluster> clusters) {
-        ReconClusterPropertyCalculator calc = new ReconClusterPropertyCalculator();
+        DefaultClusterPropertyCalculator calc = new DefaultClusterPropertyCalculator();
         for (Cluster cluster : clusters) {
             if (cluster instanceof BaseCluster) {
                 BaseCluster baseCluster = (BaseCluster)cluster;

Copied: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/DefaultClusterPropertyCalculator.java (from r1909, java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterPropertyCalculator.java)
 =============================================================================
--- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/ReconClusterPropertyCalculator.java	(original)
+++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/DefaultClusterPropertyCalculator.java	Tue Jan 13 12:12:24 2015
@@ -21,7 +21,7 @@
  * 
  * @author Jeremy McCormick <[log in to unmask]>
  */
-public final class ReconClusterPropertyCalculator extends AbstractClusterPropertyCalculator {
+public final class DefaultClusterPropertyCalculator extends AbstractClusterPropertyCalculator {
 
     static final double eCriticalW = 800.0 * ECalUtils.MeV / (74 + 1);
     static final double radLenW = 8.8; // mm
@@ -43,7 +43,7 @@
      * <p>
      * Perform the cluster property calculations, which sets this object's state.
      * <p>
-     * Copied and modified from 
+     * This algorithm is copied and modified from 
      * {@link org.lcsim.event.base.TensorClusterPropertyCalculator#calculateProperties(List)}.
      */    
     public void calculateProperties(Cluster cluster) {

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

November 2017
August 2017
July 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
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