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:

r2080 - /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:

Mon, 9 Feb 2015 16:40:49 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (275 lines)

Author: [log in to unmask]
Date: Mon Feb  9 08:40:44 2015
New Revision: 2080

Log:
Updated the TriggerModule class to support performing the cluster total energy, cluster seed energy, and pair energy sum cuts for the upper or lower bound individually.

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	Mon Feb  9 08:40:44 2015
@@ -198,6 +198,28 @@
     }
     
     /**
+     * Checks whether the argument cluster seed hit falls below the
+     * allowed seed hit energy upper bound.
+     * @param cluster - The cluster to check.
+     * @return Returns <code>true</code> if the cluster passes the cut
+     * and <code>false</code> if the cluster does not.
+     */
+    public boolean clusterSeedEnergyCutHigh(Cluster cluster) {
+    	return clusterSeedEnergyCutHigh(getValueClusterSeedEnergy(cluster));
+    }
+    
+    /**
+     * Checks whether the argument cluster seed hit falls above the
+     * allowed seed hit energy lower bound.
+     * @param cluster - The cluster to check.
+     * @return Returns <code>true</code> if the cluster passes the cut
+     * and <code>false</code> if the cluster does not.
+     */
+    public boolean clusterSeedEnergyCutLow(Cluster cluster) {
+    	return clusterSeedEnergyCutLow(getValueClusterSeedEnergy(cluster));
+    }
+    
+    /**
      * Checks whether the argument cluster falls within the allowed
      * cluster total energy range.
      * @param cluster - The cluster to check.
@@ -209,6 +231,28 @@
     }
     
     /**
+     * Checks whether the argument cluster falls below the allowed
+     * cluster total energy upper bound.
+     * @param cluster - The cluster to check.
+     * @return Returns <code>true</code> if the cluster passes the cut
+     * and <code>false</code> if the cluster does not.
+     */
+    public boolean clusterTotalEnergyCutHigh(Cluster cluster) {
+    	return clusterTotalEnergyCutHigh(getValueClusterTotalEnergy(cluster));
+    }
+    
+    /**
+     * Checks whether the argument cluster falls above the allowed
+     * cluster total energy lower bound.
+     * @param cluster - The cluster to check.
+     * @return Returns <code>true</code> if the cluster passes the cut
+     * and <code>false</code> if the cluster does not.
+     */
+    public boolean clusterTotalEnergyCutLow(Cluster cluster) {
+    	return clusterTotalEnergyCutLow(getValueClusterTotalEnergy(cluster));
+    }
+    
+    /**
      * Checks whether the argument cluster falls within the allowed
      * cluster total energy range.
      * @param cluster - The cluster to check.
@@ -217,6 +261,28 @@
      */
     public boolean clusterTotalEnergyCut(SSPCluster cluster) {
     	return clusterTotalEnergyCut(getValueClusterTotalEnergy(cluster));
+    }
+    
+    /**
+     * Checks whether the argument cluster falls below the allowed
+     * cluster total energy upper bound.
+     * @param cluster - The cluster to check.
+     * @return Returns <code>true</code> if the cluster passes the cut
+     * and <code>false</code> if the cluster does not.
+     */
+    public boolean clusterTotalEnergyCutHigh(SSPCluster cluster) {
+    	return clusterTotalEnergyCutHigh(getValueClusterTotalEnergy(cluster));
+    }
+    
+    /**
+     * Checks whether the argument cluster falls above the allowed
+     * cluster total energy lower bound.
+     * @param cluster - The cluster to check.
+     * @return Returns <code>true</code> if the cluster passes the cut
+     * and <code>false</code> if the cluster does not.
+     */
+    public boolean clusterTotalEnergyCutLow(SSPCluster cluster) {
+    	return clusterTotalEnergyCutLow(getValueClusterTotalEnergy(cluster));
     }
     
     /**
@@ -419,25 +485,69 @@
     }
     
     /**
+     * Checks if the sum of the energies of the clusters making up a
+     * cluster pair is within an energy sum threshold.
+     * @param clusterPair - The cluster pair to check.
+     * @return Returns <code>true</code> if the cluster pair passes
+     * the cut and <code>false</code> if it does not.
+     */
+    public boolean pairEnergySumCut(Cluster[] clusterPair) {
+    	return pairEnergySumCut(getValueEnergySum(clusterPair));
+    }
+    
+    /**
+     * Checks if the sum of the energies of the clusters making up a
+     * cluster pair is below the energy sum upper bound threshold.
+     * @param clusterPair - The cluster pair to check.
+     * @return Returns <code>true</code> if the cluster pair passes
+     * the cut and <code>false</code> if it does not.
+     */
+    public boolean pairEnergySumCutHigh(Cluster[] clusterPair) {
+    	return pairEnergySumCutHigh(getValueEnergySum(clusterPair));
+    }
+    
+    /**
+     * Checks if the sum of the energies of the clusters making up a
+     * cluster pair is above the energy sum lower bound threshold.
+     * @param clusterPair - The cluster pair to check.
+     * @return Returns <code>true</code> if the cluster pair passes
+     * the cut and <code>false</code> if it does not.
+     */
+    public boolean pairEnergySumCutLow(Cluster[] clusterPair) {
+    	return pairEnergySumCutLow(getValueEnergySum(clusterPair));
+    }
+    
+    /**
      * Checks if the sum of the energies of clusters making up a cluster
      * pair is below an energy sum threshold.
      * @param clusterPair - The cluster pair to check.
      * @return Returns <code>true</code> if the cluster pair passes
      * the cut and <code>false</code> if it does not.
      */
-    public boolean pairEnergySumCut(Cluster[] clusterPair) {
-    	return pairEnergySumCut(getValueEnergySum(clusterPair));
-    }
-    
-    /**
-     * Checks if the sum of the energies of clusters making up a cluster
-     * pair is below an energy sum threshold.
-     * @param clusterPair - The cluster pair to check.
-     * @return Returns <code>true</code> if the cluster pair passes
-     * the cut and <code>false</code> if it does not.
-     */
     public boolean pairEnergySumCut(SSPCluster[] clusterPair) {
     	return pairEnergySumCut(getValueEnergySum(clusterPair));
+    }
+    
+    /**
+     * Checks if the sum of the energies of the clusters making up a
+     * cluster pair is below the energy sum upper bound threshold.
+     * @param clusterPair - The cluster pair to check.
+     * @return Returns <code>true</code> if the cluster pair passes
+     * the cut and <code>false</code> if it does not.
+     */
+    public boolean pairEnergySumCutHigh(SSPCluster[] clusterPair) {
+    	return pairEnergySumCutHigh(getValueEnergySum(clusterPair));
+    }
+    
+    /**
+     * Checks if the sum of the energies of the clusters making up a
+     * cluster pair is above the energy sum lower bound threshold.
+     * @param clusterPair - The cluster pair to check.
+     * @return Returns <code>true</code> if the cluster pair passes
+     * the cut and <code>false</code> if it does not.
+     */
+    public boolean pairEnergySumCutLow(SSPCluster[] clusterPair) {
+    	return pairEnergySumCutLow(getValueEnergySum(clusterPair));
     }
     
     
@@ -477,7 +587,29 @@
      * and <code>false</code> if the cluster does not.
      */
     private boolean clusterSeedEnergyCut(double seedEnergy) {
-        return (seedEnergy < cuts.get(CLUSTER_SEED_ENERGY_HIGH)) && (seedEnergy > cuts.get(CLUSTER_SEED_ENERGY_LOW));
+        return clusterSeedEnergyCutHigh(seedEnergy) && clusterSeedEnergyCutLow(seedEnergy);
+    }
+    
+    /**
+     * Checks whether the argument energy falls below the cluster seed
+     * energy upper bound cut.
+     * @param seedEnergy - The energy of the cluster seed.
+     * @return Returns <code>true</code> if the energy passes the cut
+     * and <code>false</code> if the cluster does not.
+     */
+    private boolean clusterSeedEnergyCutHigh(double seedEnergy) {
+        return (seedEnergy < cuts.get(CLUSTER_SEED_ENERGY_HIGH));
+    }
+    
+    /**
+     * Checks whether the argument energy falls above the cluster seed
+     * energy lower bound cut.
+     * @param seedEnergy - The energy of the cluster seed.
+     * @return Returns <code>true</code> if the energy passes the cut
+     * and <code>false</code> if the cluster does not.
+     */
+    private boolean clusterSeedEnergyCutLow(double seedEnergy) {
+        return (seedEnergy > cuts.get(CLUSTER_SEED_ENERGY_LOW));
     }
     
     /**
@@ -488,7 +620,29 @@
      * and <code>false</code> if the cluster does not.
      */
     private boolean clusterTotalEnergyCut(double clusterEnergy) {
-        return (clusterEnergy < cuts.get(CLUSTER_TOTAL_ENERGY_HIGH)) && (clusterEnergy > cuts.get(CLUSTER_TOTAL_ENERGY_LOW));
+        return clusterTotalEnergyCutHigh(clusterEnergy) && clusterTotalEnergyCutLow(clusterEnergy);
+    }
+    
+    /**
+     * Checks whether the argument energy falls below the cluster total
+     * energy upper bound cut.
+     * @param clusterEnergy - The energy of the entire cluster.
+     * @return Returns <code>true</code> if the energy passes the cut
+     * and <code>false</code> if the cluster does not.
+     */
+    private boolean clusterTotalEnergyCutHigh(double clusterEnergy) {
+        return (clusterEnergy < cuts.get(CLUSTER_TOTAL_ENERGY_HIGH));
+    }
+    
+    /**
+     * Checks whether the argument energy falls above the cluster total
+     * energy lower bound cut.
+     * @param clusterEnergy - The energy of the entire cluster.
+     * @return Returns <code>true</code> if the energy passes the cut
+     * and <code>false</code> if the cluster does not.
+     */
+    private boolean clusterTotalEnergyCutLow(double clusterEnergy) {
+        return (clusterEnergy > cuts.get(CLUSTER_TOTAL_ENERGY_LOW));
     }
     
     /**
@@ -621,6 +775,28 @@
      * the cut and <code>false</code> if it does not.
      */
     private boolean pairEnergySumCut(double energySum) {
-        return (energySum < cuts.get(PAIR_ENERGY_SUM_HIGH)) && (energySum > cuts.get(PAIR_ENERGY_SUM_LOW));
+        return pairEnergySumCutHigh(energySum) && pairEnergySumCutLow(energySum);
+    }
+    
+    /**
+     * Checks if the sum of the energies of clusters making up a cluster
+     * pair is below the pair energy sum upper bound cut.
+     * @param energySum - The sum of the cluster energies.
+     * @return Returns <code>true</code> if the energy sum passes
+     * the cut and <code>false</code> if it does not.
+     */
+    private boolean pairEnergySumCutHigh(double energySum) {
+        return (energySum < cuts.get(PAIR_ENERGY_SUM_HIGH));
+    }
+    
+    /**
+     * Checks if the sum of the energies of clusters making up a cluster
+     * pair is above the pair energy sum lower bound cut.
+     * @param energySum - The sum of the cluster energies.
+     * @return Returns <code>true</code> if the energy sum passes
+     * the cut and <code>false</code> if it does not.
+     */
+    private boolean pairEnergySumCutLow(double energySum) {
+        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