6 removed files
lcsim/src/org/lcsim/contrib/uiowa/standalone
diff -N MainLoop.java
--- MainLoop.java 1 Oct 2005 01:26:19 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,75 +0,0 @@
-// Based on the class written by Jan Strube, adapted by Mat Charles.
-
-package standalone;
-
-import java.io.File;
-import org.lcsim.mc.fast.MCFast;
-import org.lcsim.util.Driver;
-import org.lcsim.util.aida.AIDA;
-import org.lcsim.util.loop.LCIODriver;
-import org.lcsim.util.loop.LCSimLoop;
-
-public class MainLoop extends Driver
-{
- public MainLoop()
- {
- }
- public static void main(String[] args) throws Exception
- {
- if (args.length<3 || args[0].equals("h")) {
- //usage();
- System.exit(1);
- } else {
- // First arg: Number of events to analyze
- long numToProcess = Integer.parseInt(args[0]);
- // Second arg: name of Driver to run
- Driver myDriver = MainLoop.makeDriverFromString(args[1]);
- LCSimLoop loop = new LCSimLoop();
- loop.add(myDriver);
- long eventsProcessed = 0;
- // Third and subsequent args: names of SIO files to analyze
- for (int i=2; i<args.length; i++) {
- String filename = args[i];
- File input = new File(filename);
- loop.setLCIORecordSource(input);
- long eventsProcessedFromThisFile = loop.loop(numToProcess);
- eventsProcessed += eventsProcessedFromThisFile;
- System.out.println("Processed "+eventsProcessed+" events from file "+filename);
- }
- loop.dispose();
- //AIDA.defaultInstance().saveAs("exampleAnalysisJava.aida");
- System.out.println("Processed "+eventsProcessed+" events total.");
- }
- }
-
- public static Driver makeDriverFromString(String name)
- {
- // We're given the (string) name of a driver class.
- // First, make a Class object for that class.
- // If the named class doesn't exist, this will throw
- // a ClassNotFoundException:
- Class newClassObject = null;
- try {
- newClassObject = Class.forName(name);
- } catch (java.lang.ClassNotFoundException x) {
- throw new AssertionError(x);
- }
-
- // Next, create an instance of the class:
- // This can throw InstantiationException, IllegalAccessException
- Object newObject = null;
- try {
- newObject = newClassObject.newInstance();
- } catch (java.lang.InstantiationException x) {
- throw new AssertionError(x);
- } catch (java.lang.IllegalAccessException x ) {
- throw new AssertionError(x);
- }
-
- // This better be a driver. Cast it:
- Driver newDriver = (Driver) newObject;
-
- // OK. Now return it.
- return newDriver;
- }
-}
lcsim/src/org/lcsim/contrib/uiowa/standalone
diff -N clean.sh
--- clean.sh 9 May 2006 19:55:06 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,7 +0,0 @@
-#! /bin/sh
-
-for iDir in standalone template ; {
- for i in $(find $iDir/ -name "*.class") ; {
- rm $i ;
- }
-}
lcsim/src/org/lcsim/contrib/uiowa/standalone
diff -N compile.sh
--- compile.sh 9 May 2006 19:55:29 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,7 +0,0 @@
-#! /bin/sh
-
-for iDir in standalone template ; {
- for i in $(find $iDir/ -name "*.java") ; {
- ./standalone/subcompile.sh $i || { echo "failed on $i"; exit; } ;
- }
-}
lcsim/src/org/lcsim/contrib/uiowa/standalone
diff -N init.sh
--- init.sh 9 May 2006 19:56:55 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-#! /bin/sh
-
-# For a Mac:
-# SOURCEDIR_JAS3=/Applications/jas3.app/Contents/Resources
-
-# For a linux machine at SLAC:
-SOURCEDIR_JAS3=/afs/slac.stanford.edu/package/jas/release/jas3/jas3-0.8.2
-
-# For a unix machine in general:
-SOURCEDIR_HOME=$HOME/.JAS3
-
-rm -f .jarlist
-touch .jarlist
-find $SOURCEDIR_JAS3 -name "*.jar" >> .jarlist
-find $SOURCEDIR_HOME -name "*.jar" >> .jarlist
-
lcsim/src/org/lcsim/contrib/uiowa/standalone
diff -N run.sh
--- run.sh 9 May 2006 20:18:00 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,29 +0,0 @@
-#! /bin/sh
-
-export CLASSPATH=.
-for f in $(cat .jarlist) ; { export CLASSPATH="$CLASSPATH:$f"; }
-
-#SOURCEDIR=$(cat .sourcedir)
-if [ x$SOURCE = x ]; then
- SOURCE="/nfs/slac/g/lcd/public_data/ILC/ZPole/sidaug05_np/slcio/slic/pythiaZPoleuds-0-1000_SLIC_v1r9p4_sidaug05_np.slcio"
- echo "SOURCE not defined -- defaulting to $SOURCE";
-fi;
-
-# Default:
-
-if [ $# == 1 ]; then
- NUM=$1
- CLASSNAME=org.lcsim.mc.fast.MCFast
-elif [ $# == 2 ]; then
- NUM=$1
- CLASSNAME=$2
-else
- echo "Can't handle number of args!"
- exit;
-fi;
-
-echo "SOURCE is '$SOURCE'"
-
-#/afs/slac/package/java/i386_linux26/jdk1.5/bin/java -classpath $CLASSPATH testing.UnitTest
-/afs/slac/package/java/i386_linux26/jdk1.5/bin/java -classpath $CLASSPATH standalone.MainLoop $NUM $CLASSNAME $SOURCE
-#java -classpath $CLASSPATH standalone.MainLoop $NUM $CLASSNAME $SOURCE
lcsim/src/org/lcsim/contrib/uiowa/standalone
diff -N subcompile.sh
--- subcompile.sh 9 May 2006 20:15:55 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,38 +0,0 @@
-#! /bin/sh
-
-# For a linux pc at slac:
-export JAS3ROOT=/afs/slac.stanford.edu/package/jas/release/jas3/jas3-0.8.2
-export EXTDIRS="$JAS3ROOT/lib:$JAS3ROOT/extensions:$HOME/.JAS3/extensions:$HOME/.JAS3/classes"
-
-# For a mac:
-#export EXTDIRS="/Applications/jas3.app/Contents/Resources/extensions/Java:/Applications/jas3.app/Contents/Resources/extensions:$HOME/.JAS3/extensions:$HOME/.JAS3/classes"
-
-# In general:
-export JAS3EXT=$HOME/.JAS3/extensions
-
-export CLASSPATH=.
-export CLASSPATH="$CLASSPATH:$EXTDIRS"
-
-for f in $(cat .jarlist) ; { export CLASSPATH="$CLASSPATH:$f"; }
-
-CURRENTSOURCE=$1
-CURRENTTARGET=$(dirname $CURRENTSOURCE)/$(basename $CURRENTSOURCE .java).class
-
-echo -n "Checking $CURRENTSOURCE... "
-
-if [ -e $CURRENTTARGET ] ; then
- if [ $CURRENTTARGET -nt $CURRENTSOURCE ] ; then
- echo "$CURRENTTARGET is up-to-date."
- exit 0
- fi
-fi
-
-# Probably slac-specific
-MYJAVA=/afs/slac/package/java/i386_linux26/jdk1.5/bin/javac
-
-echo -n " Compiling... "
-#/afs/slac/package/java/i386_linux26/jdk1.5/bin/javac -Xlint:unchecked -g -classpath $CLASSPATH $CURRENTSOURCE || exit 1
-/afs/slac/package/java/i386_linux26/jdk1.5/bin/javac -g -classpath $CLASSPATH $CURRENTSOURCE || exit 1
-# javac -g -classpath $CLASSPATH $CURRENTSOURCE || exit 1
-echo "OK"
-exit 0
CVSspam 0.2.8