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:

r4535 - /java/trunk/users/src/main/java/org/hps/users/kmccarty/DatabaseDAQConfigDriver.java

From:

[log in to unmask]

Reply-To:

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

Date:

Wed, 26 Oct 2016 16:16:17 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (65 lines)

Author: [log in to unmask]
Date: Wed Oct 26 09:16:14 2016
New Revision: 4535

Log:
Added comments to the DAQ database driver.

Modified:
    java/trunk/users/src/main/java/org/hps/users/kmccarty/DatabaseDAQConfigDriver.java

Modified: java/trunk/users/src/main/java/org/hps/users/kmccarty/DatabaseDAQConfigDriver.java
 =============================================================================
--- java/trunk/users/src/main/java/org/hps/users/kmccarty/DatabaseDAQConfigDriver.java	(original)
+++ java/trunk/users/src/main/java/org/hps/users/kmccarty/DatabaseDAQConfigDriver.java	Wed Oct 26 09:16:14 2016
@@ -14,11 +14,23 @@
 import java.io.IOException;
 import java.io.StringReader;
 
+/**
+ * Driver <code>DatabaseDAQConfigDriver</code> is a variant of the
+ * standard DAQ configuration driver that reads configuration data from
+ * the run database instead of either local files or an EvIO file.
+ * 
+ * @author Kyle McCarty <[log in to unmask]>
+ */
 public class DatabaseDAQConfigDriver extends DAQConfigDriver {
     // Define the crate enumerables by crate number. Crates are
     // in the order 46, 37, 39.
     private static final Crate[] CRATES = { Crate.CONFIG3, Crate.CONFIG1, Crate.CONFIG2 };
     
+    /**
+     * Updates the DAQ configuration manager with DAQ settings from the
+     * run database.
+     * @param detector - The detector object. This is not actually used.
+     */
     @Override
     public void detectorChanged(Detector detector) {
         // Make sure that the run number is defined.
@@ -51,9 +63,25 @@
         manager.closeConnection();
     }
     
+    /**
+     * When loading from the database, information is pulled on detector
+     * change rather than by looking for a specific object in event data.
+     * As such, <code>process</code> is overwritten to do nothing.
+     * @param event - Object containing event data.
+     */
     @Override
     public void process(EventHeader event) { }
     
+    /**
+     * Parses the text dump containing the DAQ configuration and parses
+     * it into lines. Data is returned as an array of strings. The first
+     * array index corresponds to the crate dump and the second array
+     * to the line.
+     * @param triggerConfig - The DAQ configuration dump object.
+     * @return Returns the DAQ configuration parsed as a String array.
+     * @throws IOException Occurs if there is an error reading the dump
+     * stream.
+     */
     private static final String[][] getDataFileArrays(TriggerConfigData triggerConfig) throws IOException {
         // Create file readers to process the data files.
         StringReader[] fr = new StringReader[3];

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