Hi,
I figured out what is going on with reading back Philipp's files. It seems like lcsim was never updated to read back LCIO v2 Tracks. More specifically, there was a branch created to do this, but it was never merged back into the trunk. I really thought I had done this months ago, but maybe this is a case of "phantom merge syndrome". It is also possible that a recent merge in of an lcsim branch clobbered these changes, but it is less likely.
Anyways, all that said, I just manually checked in all relevant changes from lcsim's LCIO v2 branch into the trunk, and now I can at least read back the test file I was sent without any problems. I didn't actually check if everything related to this works, like doing any tracking. But just reading it back okay is a step in the right direction, as it has to exercise the SIO read code to do this.
If you subscribe to the lcd-cvs mailing list, this checkin would have come in as an email with subject line: "manual merge in of lcio v2 branch; should fix problem with reading in MarlinReco output". This will show you all the detailed changes for this fix. Pretty much the only big change was adding TrackState objects instead of having just one. This was a big change in how Track IO is done, and so it wasn't backward compatible, hence the crash when reading back new Tracks with an old lcsim.
I was pretty careful not to clobber any additional updates w.r.t. the trunk, as I went through a complete diff of all files before doing the merge. I only merged in what was needed for LCIO v2 compatibility, so all other changes since the branch should still be intact. Additionally, the modified files were copied to sandbox/backup before I did the merge.
To get this change, just do a 'cvs up' on your copy of lcsim and rebuild. Then you should be able to read back MarlinReco output okay. Please confirm that it works for you. Philip put a small test file here with 10 test events.
http://proloff.web.cern.ch/proloff/vertex_test_bb.slcio
Additionally, you have to use a new copy of JAS with lcsim trunk.
http://java.freehep.org/maven2/org/freehep/jas-assembly/0.9.4/jas-assembly-0.9.4-distribution.tar.gz
This is actually completely unrelated. Old JAS versions will no longer work with some FreeHep libraries that were updated.
If you have any questions, let me know.
--Jeremy
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-DEV&A=1
|