Actually, I was wrong about this (again). It is actually a problem with writing clusters made from the EcalClusterIC clusterer. The error comes from this bit of code in SIOCluster:
if ((flag & (1 << LCIOConstants.CLBIT_HITS)) != 0){List<CalorimeterHit> calorimeterHits = cluster.getCalorimeterHits();double[] hitContributions = cluster.getHitContributions();out.writeInt(calorimeterHits.size());int ii = 0;for (CalorimeterHit hit : calorimeterHits){out.writePntr(hit);out.writeFloat((float) hitContributions[ii++]); <——— this is where it breaks}}
The problem seems to be that the cluster.getHitContributions() has fewer entries than the cluster.getCalorimeterHits() for IC clusters;
Use REPLY-ALL to reply to list
To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1