Linear Collider Forum



Home » Software Tools » org.lcsim » Failing to run tutorial: Processing Data in Batch Mode using LCSim XML
Re: Now how do I run a driver that I created in the contrib area? [message #1842 is a reply to message #1841] Fri, 21 August 2009 15:05 Go to previous messageGo to previous message
wenzel
Messages: 25
Registered: February 2007
Location: Fermilab
It looks like I am very close to what I want to do. Now what I really want to do is to run my own driver in batch mode:

I followed the instructions in

http://confluence.slac.stanford.edu/display/ilc/Adding+a+Dri ver+using+Netbeans


and created my own driver in org.lcim.contrib.HansWenzel.DualReadout

called AnalyzedualCaloHits



How would I proceed getting this driver to work in batch mode. I tried something like that:

cp ~/NetBeansProjects/lcsim-contrib/target/lcsim-contrib-1.2-SN APSHOT.jar .

created the following xml file:
<lcsim>
<inputFiles>
<file>/media/disk-1/wenzel/qgsp/pi-_1GeV_QGSP_BERT_r130.slcio </file>
</inputFiles>
<control>
<numberOfEvents>-1</numberOfEvents>
</control>
<execute>
<driver name="AnalyzedualCaloHits"/>
</execute>
<drivers>
<driver name="AnalyzedualCaloHits"
type="org.lcsim.contrib.HansWenzel.DualReadout">
<eventInterval>1</eventInterval>
</driver>
</drivers>
</lcsim>


but that naive approach only produces:
wenzel@nara:~/batch$ java -jar ./lib/lcsim-1.11.jar ./myJob.xml
---- org.lcsim version ----
application.artifactId: lcsim
application.name: org.lcsim
application.version: 1.11
application.description: A Java-based reconstruction and analysis system for ILC detectors.
build.user: wenzel
build.date: Fri Aug 21 11:40:07 CDT 2009
java.version: 1.6
os.arch: i386
os.name: Linux
os.version: 2.6.24-24-generic
---- End org.lcsim version ----

Exception in thread "main" java.lang.RuntimeException: The Driver class org.lcsim.contrib.HansWenzel.DualReadout could not be created. Check that the name and package is correct in your xml file.
at org.lcsim.job.JobControlManager.setupDrivers(JobControlManag er.java:641)
at org.lcsim.job.JobControlManager.setup(JobControlManager.java :221)
at org.lcsim.job.JobControlManager.setup(JobControlManager.java :199)
at org.lcsim.job.JobControlManager.setup(JobControlManager.java :175)
at org.lcsim.job.JobControlManager.main(JobControlManager.java: 96)
Caused by: java.lang.ClassNotFoundException: org.lcsim.contrib.HansWenzel.DualReadout
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.lcsim.job.JobControlManager.setupDrivers(JobControlManag er.java:637)
... 4 more
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:lcsim release
Next Topic:How can I access the current input file from within the lcsim
Goto Forum:
  


Current Time: Tue Aug 21 07:36:23 Pacific Daylight Time 2018
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software