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:

r2155 - in /java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster: GTPOnlineClusterDriver.java GTPOnlineClusterer.java

From:

[log in to unmask]

Reply-To:

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

Date:

Mon, 16 Feb 2015 09:42:11 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (107 lines)

Author: [log in to unmask]
Date: Mon Feb 16 01:42:01 2015
New Revision: 2155

Log:
Made a few minor changes to how the verbose setting works in the GTPOnlineClusterer.

Modified:
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterDriver.java
    java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterer.java

Modified: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterDriver.java
 =============================================================================
--- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterDriver.java	(original)
+++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterDriver.java	Mon Feb 16 01:42:01 2015
@@ -17,6 +17,27 @@
     public GTPOnlineClusterDriver() {
         clusterer = ClustererFactory.create("GTPOnlineClusterer");
         gtp = (GTPOnlineClusterer) clusterer;
+    }
+    
+    /**
+     * Outputs the clusterer settings.
+     */
+    @Override
+    public void startOfData() {
+    	// VERBOSE :: Output the driver settings.
+    	if(gtp.isVerbose()) {
+			// Print the cluster driver header.
+			System.out.println();
+			System.out.println();
+			System.out.println("======================================================================");
+			System.out.println("=== GTP Readout Clusterer Settings ===================================");
+			System.out.println("======================================================================");
+			
+			// Output the driver settings.
+			System.out.printf("Seed Energy Threshold :: %.3f GeV%n", gtp.getSeedLowThreshold());
+			System.out.printf("Time Window (Before)  :: %.0f ns%n", gtp.getWindowBefore());
+			System.out.printf("Time Window (After)   :: %.0f ns%n", gtp.getWindowAfter());
+    	}
     }
     
     /**

Modified: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterer.java
 =============================================================================
--- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterer.java	(original)
+++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterer.java	Mon Feb 16 01:42:01 2015
@@ -87,12 +87,17 @@
      */
     @Override
     public List<Cluster> createClusters(EventHeader event, List<CalorimeterHit> hitList) {
+    	// VERBOSE :: Print the driver header.
+    	if(verbose) {
+    		System.out.println();
+    		System.out.println();
+    		System.out.println("======================================================================");
+    		System.out.println("=== GTP Readout Clusterer ============================================");
+    		System.out.println("======================================================================");
+    	}
     	
         // Track the valid clusters.
         List<Cluster> clusterList = new ArrayList<Cluster>();
-        
-        // VERBOSE :: Indicate whether the event has hits.
-        //if(verbose) { System.out.printf("Event %7d :: Has hits [%5b]%n", event.getEventNumber(), hasHits); }
         
         // Sort the hits by time in reverse order.
         Collections.sort(hitList, new Comparator<CalorimeterHit>() {
@@ -380,6 +385,36 @@
     }
     
     /**
+     * Gets the seed energy lower bound threshold in units of GeV.
+     * @return Returns the seed energy lower bound threshold.
+     */
+    public double getSeedLowThreshold() { return seedThreshold; }
+    
+    /**
+     * Gets the number of nanoseconds before the seed hit time the
+     * clusterer will look to verify the seed hit.
+     * @return Returns the size of the time window before the seed
+     * hit time.
+     */
+    public double getWindowBefore() { return timeBefore; }
+    
+    /**
+     * Gets the number of nanoseconds after the seed hit time the
+     * clusterer will look to verify the seed hit.
+     * @return Returns the size of the time window after the seed
+     * hit time.
+     */
+    public double getWindowAfter() { return timeAfter; }
+    
+    /**
+     * Returns whether the clusterer will output verbose diagnostic
+     * information.
+     * @return Returns <code>true</code> if the clusterer will output
+     * diagnostic information and <code>false</code> otherwise.
+     */
+    public boolean isVerbose() { return verbose; }
+    
+    /**
      * Sets the minimum energy a hit must have before it will be
      * considered for cluster formation.
      * @param seedThreshold - The seed threshold in GeV.

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