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  October 2016

HPS-SVN October 2016

Subject:

r4530 - in /java/trunk/analysis/src/main/java/org/hps/analysis/trigger: ./ data/ util/

From:

[log in to unmask]

Reply-To:

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

Date:

Wed, 26 Oct 2016 14:57:00 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (203 lines)

Author: [log in to unmask]
Date: Wed Oct 26 07:56:49 2016
New Revision: 4530

Log:
Removing old trigger diagnostics classes.

Removed:
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/ClusterDiagnosticModule.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/DiagnosticsManagementDriver.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/PairTriggerDiagnosticModule.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/SinglesTriggerDiagnosticModule.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/TriggerDiagnosticDriver.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/data/ClusterEvent.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/data/ClusterStatModule.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/data/DetailedClusterEvent.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/data/DiagnosticSnapshot.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/data/GeneralStatModule.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/data/RunDiagStats.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/data/TriggerDiagStats.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/data/TriggerEvent.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/data/TriggerStatModule.java
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/util/OutputLogger.java
Modified:
    java/trunk/analysis/src/main/java/org/hps/analysis/trigger/util/TriggerDiagnosticUtil.java

Modified: java/trunk/analysis/src/main/java/org/hps/analysis/trigger/util/TriggerDiagnosticUtil.java
 =============================================================================
--- java/trunk/analysis/src/main/java/org/hps/analysis/trigger/util/TriggerDiagnosticUtil.java	(original)
+++ java/trunk/analysis/src/main/java/org/hps/analysis/trigger/util/TriggerDiagnosticUtil.java	Wed Oct 26 07:56:49 2016
@@ -1,8 +1,5 @@
 package org.hps.analysis.trigger.util;
 
-import java.awt.Point;
-
-import org.hps.analysis.trigger.data.TriggerStatModule;
 import org.hps.record.triggerbank.SSPCluster;
 import org.hps.record.triggerbank.TriggerModule;
 import org.lcsim.event.CalorimeterHit;
@@ -33,15 +30,6 @@
     public static final int PAIR_ENERGY_SLOPE = 2;
     public static final int PAIR_COPLANARITY = 3;
     
-    // Trigger type variables.
-    public static final int TRIGGER_PULSER    = TriggerStatModule.PULSER;
-    public static final int TRIGGER_COSMIC    = TriggerStatModule.COSMIC;
-    public static final int TRIGGER_SINGLES_0 = TriggerStatModule.SINGLES_0;
-    public static final int TRIGGER_SINGLES_1 = TriggerStatModule.SINGLES_1;
-    public static final int TRIGGER_PAIR_0    = TriggerStatModule.PAIR_0;
-    public static final int TRIGGER_PAIR_1    = TriggerStatModule.PAIR_1;
-    public static final String[] TRIGGER_NAME = { "Singles 0", "Singles 1", "Pair 0", "Pair 1", "Pulser", "Cosmic" };
-    
     /**
      * Convenience method that writes the position of a cluster in the
      * form (ix, iy).
@@ -49,9 +37,7 @@
      * @return Returns the cluster position as a <code>String</code>.
      */
     public static final String clusterPositionString(Cluster cluster) {
-        return String.format("(%3d, %3d)",
-                cluster.getCalorimeterHits().get(0).getIdentifierFieldValue("ix"),
-                cluster.getCalorimeterHits().get(0).getIdentifierFieldValue("iy"));
+        return String.format("(%3d, %3d)", TriggerModule.getClusterXIndex(cluster), TriggerModule.getClusterYIndex(cluster));
     }
     
     /**
@@ -61,7 +47,7 @@
      * @return Returns the cluster position as a <code>String</code>.
      */
     public static final String clusterPositionString(SSPCluster cluster) {
-        return String.format("(%3d, %3d)", cluster.getXIndex(), cluster.getYIndex());
+        return String.format("(%3d, %3d)", TriggerModule.getClusterXIndex(cluster), TriggerModule.getClusterYIndex(cluster));
     }
     
     /**
@@ -71,11 +57,10 @@
      * @return Returns the cluster information as a <code>String</code>.
      */
     public static final String clusterToString(Cluster cluster) {
-        return String.format("Cluster at (%3d, %3d) with %.3f GeV and %d hits at %4.0f ns.",
-                cluster.getCalorimeterHits().get(0).getIdentifierFieldValue("ix"),
-                cluster.getCalorimeterHits().get(0).getIdentifierFieldValue("iy"),
-                cluster.getEnergy(), cluster.getCalorimeterHits().size(),
-                cluster.getCalorimeterHits().get(0).getTime());
+        return String.format("Cluster at (%3d, %3d) with %.3f GeV and %.0f hits at %4.0f ns.",
+                TriggerModule.getClusterXIndex(cluster), TriggerModule.getClusterYIndex(cluster),
+                TriggerModule.getValueClusterTotalEnergy(cluster), TriggerModule.getClusterHitCount(cluster),
+                TriggerModule.getClusterTime(cluster));
     }
     
     /**
@@ -85,45 +70,10 @@
      * @return Returns the cluster information as a <code>String</code>.
      */
     public static final String clusterToString(SSPCluster cluster) {
-        return String.format("Cluster at (%3d, %3d) with %.3f GeV and %d hits at %4d ns.",
-                cluster.getXIndex(), cluster.getYIndex(), cluster.getEnergy(),
-                cluster.getHitCount(), cluster.getTime());
-    }
-    
-    /**
-     * Gets the x/y-indices of the cluster.
-     * @param cluster -  The cluster of which to obtain the indices.
-     * @return Returns the indices as a <code>Point</code> object.
-     */
-    public static final Point getClusterPosition(Cluster cluster) {
-        return new Point(getXIndex(cluster), getYIndex(cluster));
-    }
-    
-    /**
-     * Gets the x/y-indices of the cluster.
-     * @param cluster -  The cluster of which to obtain the indices.
-     * @return Returns the indices as a <code>Point</code> object.
-     */
-    public static final Point getClusterPosition(SSPCluster cluster) {
-        return new Point(cluster.getXIndex(), cluster.getYIndex());
-    }
-    
-    /**
-     * Gets the time stamp of the cluster in nanoseconds.
-     * @param cluster - The cluster.
-     * @return Returns the time-stamp.
-     */
-    public static final double getClusterTime(Cluster cluster) {
-        return cluster.getCalorimeterHits().get(0).getTime();
-    }
-    
-    /**
-     * Gets the time stamp of the cluster in nanoseconds.
-     * @param cluster - The cluster.
-     * @return Returns the time-stamp.
-     */
-    public static final int getClusterTime(SSPCluster cluster) {
-        return cluster.getTime();
+        return String.format("Cluster at (%3d, %3d) with %.3f GeV and %.0f hits at %4.0f ns.",
+                TriggerModule.getClusterXIndex(cluster), TriggerModule.getClusterYIndex(cluster),
+                TriggerModule.getValueClusterTotalEnergy(cluster), TriggerModule.getClusterHitCount(cluster),
+                TriggerModule.getClusterTime(cluster));
     }
     
     /**
@@ -137,60 +87,6 @@
     public static final int getDigits(int value) {
         if(value < 0) { return Integer.toString(value).length() - 1; }
         else { return Integer.toString(value).length(); }
-    }
-    
-    /**
-     * Gets the number of hits in a cluster.
-     * @param cluster - The cluster.
-     * @return Returns the number of hits in the cluster.
-     */
-    public static final int getHitCount(Cluster cluster) {
-        return cluster.getCalorimeterHits().size();
-    }
-    
-    /**
-     * Gets the number of hits in a cluster.
-     * @param cluster - The cluster.
-     * @return Returns the number of hits in the cluster.
-     */
-    public static final int getHitCount(SSPCluster cluster) {
-        return cluster.getHitCount();
-    }
-    
-    /**
-     * Gets the x-index of the cluster's seed hit.
-     * @param cluster - The cluster.
-     * @return Returns the x-index.
-     */
-    public static final int getXIndex(Cluster cluster) {
-        return cluster.getCalorimeterHits().get(0).getIdentifierFieldValue("ix");
-    }
-    
-    /**
-     * Gets the x-index of the cluster's seed hit.
-     * @param cluster - The cluster.
-     * @return Returns the x-index.
-     */
-    public static final int getXIndex(SSPCluster cluster) {
-        return cluster.getXIndex();
-    }
-    
-    /**
-     * Gets the y-index of the cluster's seed hit.
-     * @param cluster - The cluster.
-     * @return Returns the y-index.
-     */
-    public static final int getYIndex(Cluster cluster) {
-        return cluster.getCalorimeterHits().get(0).getIdentifierFieldValue("iy");
-    }
-    
-    /**
-     * Gets the y-index of the cluster's seed hit.
-     * @param cluster - The cluster.
-     * @return Returns the y-index.
-     */
-    public static final int getYIndex(SSPCluster cluster) {
-        return cluster.getYIndex();
     }
     
     /**

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