Print

Print


Hello Kyle, 

Please install the latest version of Jas 3 from
http://jas.freehep.org/jas3/Download.html
Recent versions of plugins, including KPiX, are not visible to the plugin
manager unless you have Jas 3.0.0 or later. Delete your ~/.jas3 directory
before installing Jas3 if you used earlier versions in the past. 

The error message you quoted might be an indication of a corrupted data file
(or a change in data format) - if you still see it once you upgrade Jas3,
let me know what file you are looking at.

Couple things to keep in mind. Not all KPiX records can be visualized with
WIRED - only data records. When you open a data file in Jas3 and start
stepping through it (using the "next" button), first few records are going
to be xml configuration and status records, so you will see blank screen in
WIRED window. You might use kpix browser (File-New-KPiX Browser) to see what
type of record is currently loaded. The last record in a file is usually xml
as well, so if you process the whole file (by pressing "play"), you will see
an empty frame in WIRED.

Best Regards,
- Dmitry.

From: [log in to unmask]
[mailto:[log in to unmask]] On Behalf Of Tony Johnson
Sent: Wednesday, May 22, 2013 5:31 PM
To: Kyle Travis
Cc: Dylan Mead; kpix-beamtest-software
Subject: Re: [KPIX-BEAMTEST-SOFTWARE] HepRep object creation

Hi, sorry for the slow reply. I am forwarding this to the software mailing
list, since it appears from your error that the problem may be with the
KpixConfig stuff which may indicate an incompatibility with the data you are
using. Dmitry should be able to help with that.

But for the record here is what I did to get things to work for me:

*) I used JAS 3.0.0-beta6 from
http://java.freehep.org/maven2/org/freehep/jas-assembly/3.0.0-beta-6/jas-ass
embly-3.0.0-beta-6-distribution.tar.gz
*) I used the JAS plugin manager to download KPIX file reader plugin version
1.6.6. I think this is equivalent to what is in the trunk of subversion
*) I downloaded the two most recent files (.bin and .bin.xml) from here:  
https://confluence.slac.stanford.edu/pages/viewpageattachments.action?pageId
=126517668&metadataLink=true
*) I put the following in ~/.kpix/calibration.xml:
<calibration_db>
<data_file id="2013_04_05_12_47_18.bin">
<calib_xml_file path="/home/tonyj/Data/2013_04_04_18_07_56.bin.xml"
action="overwrite"/>
</data_file>
</calibration_db>
*) I opened the .bin file in JAS
*) I used the KPIXEventBrowser to step to the first real event (non-XML
record). That is something like the 10th record.
*) I opened the WIRED4 View.

An event display appeared. I am not sure which of these steps is necessary,
or how important the order is!

Tony 

On 05/20/2013 04:30 PM, Kyle Travis wrote:
Hi Tony, 

I tried the KpixHepRepConverter example you sent our way, and I'm able to
compile it and load it into JAS3 just fine, but when I open a data file and
run through it (with a Wired view open) nothing happens -- just a blank
view. After having done this, if I try to open another wired view before
unloading the data, I get an error. I was able to replicate this a couple of
times, but now I'm getting a completely different error upon trying to
"play" the data with the converter and a wired view open: 

java.lang.UnsupportedOperationException:
java.lang.UnsupportedOperationException
    at
org.hep.io.kpixreader.KpixRunRecord.getUnixTime(KpixRunRecord.java:40)
    at org.hep.io.kpixreader.KpixConfig.processRunEvent(KpixConfig.java:47)
    at
org.hep.io.kpixreader.KpixFileReader.readRecord(KpixFileReader.java:70)
    at
org.hep.io.kpixreader.record.KpixRecordSource.next(KpixRecordSource.java:57)
    at...

I was hoping to send the original error text, but now I'm not able to
recreate that. I am using JAS3 0.9.9

Any help you could offer would be greatly appreciated.

Thanks!

Kyle Travis


________________________________________
Use REPLY-ALL to reply to list
To unsubscribe from the KPIX-BEAMTEST-SOFTWARE list, click the following
link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=KPIX-BEAMTEST-SOFTWARE&
A=1 

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the KPIX-BEAMTEST-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=KPIX-BEAMTEST-SOFTWARE&A=1