I looked at this event and noticed there are two strange things about
the HADCalorimetry section in the ascii output event that caused the
problem.
1) The header says there are 1343 hits, but there are actually 1344
hits.
2) One section of the file contains the following:
Number of MCParticles 1
144631016 0.0002474
0x97800000 NaN
Number of MCParticles 1
144621656 NaN
0xD0007010 0.0007733
Maybe these two problems are related? I guess it would be possible to
work around the problem in ascii2lcd by skiiping everything until the
next end when an end is not found where expected, but it would sound
better to understand what the original problem is.
Tony
-----Original Message-----
From: David Gerdes [mailto:[log in to unmask]]
Sent: Friday, February 26, 1999 12:39 PM
To: [log in to unmask]
Subject: continued ascii2lcd crashes
Hi Tony,
Though the patches you made seem to have fixed a number of the crashes,
I am still seeing some. For example:
[lcd@zeno Large]$ ascii2lcd -g
/data/gerdes/sim/pybms-tt-500-990115-gen-46_Large.asc.gz
pybms-tt-500-Large-46.lcd
TYA 1.0 (for J116) loaded. Copyright (c) 1997,98 The TYA Team
Contact The TYA Team via Albrecht Kleine <[log in to unmask]>
Reading run 1 event 1
Reading run 1 event 2
Warning, NumberFormatException ignored!!! float=NaN
java.lang.NumberFormatException: NaN
at java.lang.Float.valueOf(Compiled Code)
at hep.lcd.io.ascii.BasicHandler.parseFloat(Compiled Code)
at hep.lcd.io.ascii.handler.Calorimeter.readSegment(Compiled
Code)
at hep.lcd.io.ascii.handler.HADCalorimeter.readSegment(Compiled
Code)
at hep.lcd.io.AsciiReader.<init>(Compiled Code)
at hep.lcd.io.AsciiReader.main(Compiled Code)
Warning, NumberFormatException ignored!!! float=NaN
java.lang.NumberFormatException: NaN
at java.lang.Float.valueOf(Compiled Code)
at hep.lcd.io.ascii.BasicHandler.parseFloat(Compiled Code)
at hep.lcd.io.ascii.handler.Calorimeter.readSegment(Compiled
Code)
at hep.lcd.io.ascii.handler.HADCalorimeter.readSegment(Compiled
Code)
at hep.lcd.io.AsciiReader.<init>(Compiled Code)
at hep.lcd.io.AsciiReader.main(Compiled Code)
Error reading /data/gerdes/sim/pybms-tt-500-990115-gen-46_Large.asc.gz
at
line 54670
java.io.IOException: Expected end
at hep.lcd.io.ascii.BasicHandler.checkEnd(Compiled Code)
at hep.lcd.io.ascii.handler.Calorimeter.readSegment(Compiled
Code)
at hep.lcd.io.ascii.handler.HADCalorimeter.readSegment(Compiled
Code)
at hep.lcd.io.AsciiReader.<init>(Compiled Code)
at hep.lcd.io.AsciiReader.main(Compiled Code)
File has 33 blocks of which 25 have been written with 599963 bytes,
compressed size 262269 bytes
ANy ideas for a workaround? If you like, I can place one of the problem
files somewhere where you can grab it by ftp. (Or use the lcd account
here.)
--Dave
--------------------------------------
David Gerdes, University of Michigan
(734) 647-3807 / (734) 936-1817 FAX
[log in to unmask]
http://umaxp1.physics.lsa.umich.edu/~gerdes/
|