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 2015

HPS-SVN October 2015

Subject:

r3766 - /java/trunk/integration-tests/src/test/java/org/hps/test/it/EvioToLcioTest.java

From:

[log in to unmask]

Reply-To:

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

Date:

Tue, 6 Oct 2015 18:32:39 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (97 lines)

Author: [log in to unmask]
Date: Tue Oct  6 11:32:38 2015
New Revision: 3766

Log:
Cleanup and add print outs of time.

Modified:
    java/trunk/integration-tests/src/test/java/org/hps/test/it/EvioToLcioTest.java

Modified: java/trunk/integration-tests/src/test/java/org/hps/test/it/EvioToLcioTest.java
 =============================================================================
--- java/trunk/integration-tests/src/test/java/org/hps/test/it/EvioToLcioTest.java	(original)
+++ java/trunk/integration-tests/src/test/java/org/hps/test/it/EvioToLcioTest.java	Tue Oct  6 11:32:38 2015
@@ -95,15 +95,6 @@
                 if (epicsData.getEpicsHeader() == null) {
                     throw new RuntimeException("The EpicsData header is null.");
                 }
-                /*
-                for (final String variableName : Epics1sVariables.getVariables().keySet()) {
-                    if (!EXCLUDED_EPICS_VARIABLES.contains(variableName)) {
-                        if (!epicsData.getKeys().contains(variableName)) {
-                            throw new RuntimeException("EpicsData is missing key: " + variableName);
-                        }
-                    }
-                }
-                */
                 ++epicsDataCount;
             }
         }
@@ -145,7 +136,7 @@
      * Names of collections to check.
      */
     private static String[] COLLECTION_NAMES = new String[] {"EcalReadoutHits", "FADCGenericHits", "SVTRawTrackerHits",
-    "TriggerBank"};
+            "TriggerBank"};
 
     /**
      * Classes of collections.
@@ -159,11 +150,6 @@
     private static int EPICS_DATA_COUNT = 7;
 
     /**
-     * List of EPICS variables that are not expected to be present in this data.
-     */
-    private static List<String> EXCLUDED_EPICS_VARIABLES = new ArrayList<String>();
-
-    /**
      * The default input file (large file at SLAC so the pom.xml file excludes this test on non-SLAC hosts).
      */
     private static final String INPUT_FILE = "/nfs/slac/g/hps3/data/engrun/evio/hps_005772.evio.0";
@@ -177,16 +163,7 @@
      * The number of scaler data collections that should be found.
      */
     private static int SCALER_DATA_COUNT = 3;
-
-    /**
-     * Expected scaler values after first occurrence of scaler collection in the data.
-     */
-    private static float[] SCALER_VALUES = {205.47786f, 206.38852f, -1.726095f, -0.622837f, 179.9981f};
-
-    static {
-        EXCLUDED_EPICS_VARIABLES.add("VCG2C21 2C21");
-    }
-
+   
     /**
      * Run the test.
      *
@@ -199,10 +176,15 @@
 
         // Run the command line utility.
         final String[] args = new String[] {"-l", outputFile.getPath(), "-d", "HPS-EngRun2015-Nominal-v1", INPUT_FILE,
-                "-L", "WARNING", "-r", "-x", "/org/hps/steering/test/Dummy.lcsim"};
+                "-L", "WARNING", "-r", "-x", "/org/hps/steering/EventMarker.lcsim"};
         System.out.println("Running EvioToLcio on " + INPUT_FILE + " ...");
-        EvioToLcio.main(args);
+        EvioToLcio cnv = new EvioToLcio();
+        cnv.parse(args);
+        long start = System.currentTimeMillis();
+        cnv.run();
+        long elapsed = System.currentTimeMillis() - start;
         System.out.println("Done running EvioToLcio!");
+        System.out.println("conversion to LCIO took " + elapsed + " ms");
 
         // Read in the LCIO file and run the CheckDriver on it.
         System.out.println("Checking LCIO output ...");
@@ -212,6 +194,8 @@
         loop.add(checkDriver);
         loop.loop(-1);
 
+        System.out.println("conversion took " + elapsed / loop.getTotalConsumed() + " ms/event");
+
         // Check for correct number of events processed by loop.
         System.out.println("Loop processed " + loop.getTotalCountableConsumed() + " events.");
         assertEquals("Loop processed wrong number of events.", PROCESSED_COUNT, loop.getTotalCountableConsumed());

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