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:

r1978 - /java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalEventDisplay.java

From:

[log in to unmask]

Reply-To:

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

Date:

Fri, 23 Jan 2015 14:55:44 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (78 lines)

Author: [log in to unmask]
Date: Fri Jan 23 06:55:36 2015
New Revision: 1978

Log:
Added option to not clear the event display after each update event for LED commissioning.

Modified:
    java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalEventDisplay.java

Modified: java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalEventDisplay.java
 =============================================================================
--- java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalEventDisplay.java	(original)
+++ java/trunk/monitoring-drivers/src/main/java/org/hps/monitoring/ecal/plots/EcalEventDisplay.java	Fri Jan 23 06:55:36 2015
@@ -66,22 +66,22 @@
 	private ArrayList<IHistogram2D> channelTimeVsEnergyPlot;
 	
 	// Internal variables.
-	private Detector detector;									 // The active detector.
 	private PEventViewer viewer;								 // Single event display.
 	private int pedSamples = 10;								 // 
 	private IPlotterStyle pstyle;								 // The plotter style for all plots.
-	private long lastEventTime = 0;							 // Tracks the time at which the last event occurred.
+	private long lastEventTime = 0;								 // Tracks the time at which the last event occurred.
 	private int eventRefreshRate = 1;							 // The number of seconds before an update occurs.
-	private double minEch = 10 * ECalUtils.MeV;				 // The energy scale minimum.
+	private boolean resetOnUpdate = true;						 // Clears the event display on each update.
+	private double minEch = 10 * ECalUtils.MeV;					 // The energy scale minimum.
 	private double maxEch = 3500 * ECalUtils.MeV;				 // The energy scale maximum.
 	private int[] windowRaw = new int[NUM_CHANNELS];			 // The number of samples in a waveform for each channel.
-	private boolean[] isFirstRaw = new boolean[NUM_CHANNELS]; // Whether a waveform plot was initiated for each channel.
+	private boolean[] isFirstRaw = new boolean[NUM_CHANNELS];	 // Whether a waveform plot was initiated for each channel.
 	
 	// Plot style and title variables.
 	private static final String NO_TITLE = "";
 	//private static final String SIGNAL_TIME_TITLE = "Time (ns)";
 	private static final String HIT_TIME_TITLE = "Hit Time (ns)";
-	private static final String SIGNAL_DATA_STYLE_COLOR = "orange";
+	//private static final String SIGNAL_DATA_STYLE_COLOR = "orange";
 	//private static final String RAW_WAVEFORM_TITLE = "Raw Waveform";
 	private static final String HIT_ENERGY_TITLE = "Hit Energy (GeV)";
 	private static final String CLUSTER_ENERGY_TITLE = "Cluster Energy (GeV)";
@@ -142,14 +142,22 @@
 	}
 	
 	/**
+	 * Sets whether the event display should be cleared after event
+	 * or whether it should retain the previously displayed results.
+	 * @param resetOnUpdate - <code>true</code> means that the event
+	 * display should be cleared on each update and <code>false</code>
+	 * that it should not.
+	 */
+	public void setResetOnUpdate(boolean resetOnUpdate) {
+		this.resetOnUpdate = resetOnUpdate;
+	}
+	
+	/**
 	 * Initializes the single channel monitoring plots for all crystal
 	 * channels and defines the plotter region that contains them.
 	 */
 	@Override
 	public void detectorChanged(Detector detector) {
-		// Store the current detector.
-		this.detector = detector;
-		
 		// Reset the AIDA tree directory.
 		aida.tree().cd("/");
 		
@@ -296,7 +304,7 @@
 		}
 		
 		// If an update should be made, perform the update.
-		if(update) { viewer.resetDisplay(); }
+		if(update && resetOnUpdate) { viewer.resetDisplay(); }
 		
 		// If the event has calorimeter hit objects...
 		if(event.hasCollection(CalorimeterHit.class, inputCollection)) {

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