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  February 2015

HPS-SVN February 2015

Subject:

r2159 - /java/trunk/ecal-readout-sim/src/main/java/org/hps/readout/ecal/TriggerModule.java

From:

[log in to unmask]

Reply-To:

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

Date:

Tue, 17 Feb 2015 22:48:39 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (96 lines)

Author: [log in to unmask]
Date: Tue Feb 17 14:48:32 2015
New Revision: 2159

Log:
Minor fix to the trigger logic. Values should now pass cuts when less than or equal to or greater than or equal to as appropriate. Previously, some would fail when equal to the threshold value, which is inaccurate with respect to the hardware.

Modified:
    java/trunk/ecal-readout-sim/src/main/java/org/hps/readout/ecal/TriggerModule.java

Modified: java/trunk/ecal-readout-sim/src/main/java/org/hps/readout/ecal/TriggerModule.java
 =============================================================================
--- java/trunk/ecal-readout-sim/src/main/java/org/hps/readout/ecal/TriggerModule.java	(original)
+++ java/trunk/ecal-readout-sim/src/main/java/org/hps/readout/ecal/TriggerModule.java	Tue Feb 17 14:48:32 2015
@@ -709,7 +709,7 @@
      * and <code>false</code> if the cluster does not.
      */
     private boolean clusterSeedEnergyCutHigh(double seedEnergy) {
-        return (seedEnergy < cuts.get(CLUSTER_SEED_ENERGY_HIGH));
+        return (seedEnergy <= cuts.get(CLUSTER_SEED_ENERGY_HIGH));
     }
     
     /**
@@ -720,7 +720,7 @@
      * and <code>false</code> if the cluster does not.
      */
     private boolean clusterSeedEnergyCutLow(double seedEnergy) {
-        return (seedEnergy > cuts.get(CLUSTER_SEED_ENERGY_LOW));
+        return (seedEnergy >= cuts.get(CLUSTER_SEED_ENERGY_LOW));
     }
     
     /**
@@ -742,7 +742,7 @@
      * and <code>false</code> if the cluster does not.
      */
     private boolean clusterTotalEnergyCutHigh(double clusterEnergy) {
-        return (clusterEnergy < cuts.get(CLUSTER_TOTAL_ENERGY_HIGH));
+        return (clusterEnergy <= cuts.get(CLUSTER_TOTAL_ENERGY_HIGH));
     }
     
     /**
@@ -753,7 +753,7 @@
      * and <code>false</code> if the cluster does not.
      */
     private boolean clusterTotalEnergyCutLow(double clusterEnergy) {
-        return (clusterEnergy > cuts.get(CLUSTER_TOTAL_ENERGY_LOW));
+        return (clusterEnergy >= cuts.get(CLUSTER_TOTAL_ENERGY_LOW));
     }
     
     /**
@@ -884,7 +884,7 @@
      * the cut and <code>false</code> if it does not.
      */
     private boolean pairCoplanarityCut(double coplanarityAngle) {
-        return (coplanarityAngle < cuts.get(PAIR_COPLANARITY_HIGH));
+        return (coplanarityAngle <= cuts.get(PAIR_COPLANARITY_HIGH));
     }
     
     /**
@@ -896,7 +896,7 @@
      * the cut and <code>false</code> if it does not.
      */
     private boolean pairEnergyDifferenceCut(double energyDifference) {
-        return (energyDifference < cuts.get(PAIR_ENERGY_DIFFERENCE_HIGH));
+        return (energyDifference <= cuts.get(PAIR_ENERGY_DIFFERENCE_HIGH));
     }
     
     /**
@@ -906,7 +906,7 @@
      * the cut and <code>false</code> if it does not.
      */
     private boolean pairEnergySlopeCut(double energySlope) {
-        return (energySlope > cuts.get(PAIR_ENERGY_SLOPE_LOW));
+        return (energySlope >= cuts.get(PAIR_ENERGY_SLOPE_LOW));
     }
     
     /**
@@ -928,7 +928,7 @@
      * the cut and <code>false</code> if it does not.
      */
     private boolean pairEnergySumCutHigh(double energySum) {
-        return (energySum < cuts.get(PAIR_ENERGY_SUM_HIGH));
+        return (energySum <= cuts.get(PAIR_ENERGY_SUM_HIGH));
     }
     
     /**
@@ -939,7 +939,7 @@
      * the cut and <code>false</code> if it does not.
      */
     private boolean pairEnergySumCutLow(double energySum) {
-        return (energySum > cuts.get(PAIR_ENERGY_SUM_LOW));
+        return (energySum >= cuts.get(PAIR_ENERGY_SUM_LOW));
     }
     
     /**

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