Linear Collider Forum



Home » Software Tools » LCIO » Trouble writing/(reading back) a CalorimeterHit collection
Re: Trouble writing/(reading back) a CalorimeterHit collection [message #292 is a reply to message #290] Wed, 20 July 2005 18:19 Go to previous messageGo to previous message
tonyj
Messages: 138
Registered: January 2004

Hi Guillerme, one way to debug such problems is to use the SIODump tool that comes with LCIO. It checks that a specified file is valid with respect to the LCIO specification. You run it using

runSIODump doc/lcio.xml digisim.lcio

On your file it produces:

Warning: For block RunHeader expected v1.5 got v1.3
Record: LCRunHeader
Warning: For block EventHeader expected v1.5 got v1.3
Record: LCEventHeader
Warning: For block MCParticle expected v1.5 got v1.3
Warning: For block HcalBarrRaw2sim expected v1.5 got v1.3
Warning: For block HcalEndcapHits expected v1.5 got v1.3
Warning: For block HcalBarrHits expected v1.5 got v1.3
Warning: For block EcalEndcapHits expected v1.5 got v1.3
Warning: For block EcalBarrHits expected v1.5 got v1.3
Warning: For block HcalBarrDigiHits expected v1.5 got v1.3
Record: LCEvent
Exception in thread "main" java.lang.OutOfMemoryError

which indicates that the file itself has a problem (IE the bug is probably in the writing rather than the reading). Turning up the verbosity using

runSIODump -v 3 doc/lcio.xml digisim.lcio

we find the file looks fine until it gets to the HcalBarrDigiHits blocks where it reports:

Block: HcalBarrDigiHits (v1.3)
flags: 536870912
nIntParameters: 0
nFloatParameters: 0
nStringParameters: 0
nHits: 134
[0]cellId0: 399
[0]cellId1: 1499270
[0]energy: 4.71E-4
[0]type: 929751435
[0]rawHit: Object[259]
[0]this: Object[326]
[1]cellId0: 970526244
[1]cellId1: -1200954997
[1]energy: 5.8E-43
[1]type: 1452442
[1]rawHit: null
Exception in thread "main" java.lang.OutOfMemoryError

so probably the error is in the code that writes CalorimeterHits.
 
Read Message
Read Message
Read Message
Previous Topic:LCIO v01-05 released
Next Topic:LayerEnergy
Goto Forum:
  


Current Time: Sat Feb 22 05:33:28 Pacific Standard Time 2020
.:: Contact :: Home ::.

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