Hello hps-software,

Recently, we ran a sample of Monte Carlo on the newest hodoscope detector geometry. It successfully output data from SLIC, but an error occurs when trying to load this data into HPS-Java:

Exception in thread "main" java.lang.NullPointerException
        at org.lcsim.event.base.SamplingFractionManager.getCorrectedEnergy(SamplingFractionManager.java:34)
        at org.lcsim.event.base.BaseCalorimeterHit.calculateCorrectedEnergy(BaseCalorimeterHit.java:120)
        at org.lcsim.lcio.SIOSimCalorimeterHit.<init>(SIOSimCalorimeterHit.java:68)
        at org.lcsim.lcio.SIOSimCalorimeterHitBlockHandler.addCollectionElements(SIOSimCalorimeterHitBlockHandler.java:23)
        at org.lcsim.lcio.AbstractBlockHandler.readCollection(AbstractBlockHandler.java:39)
        at org.lcsim.lcio.AbstractBlockHandler.readBlock(AbstractBlockHandler.java:32)
        at org.lcsim.lcio.LCIOReader.read(LCIOReader.java:77)
        at org.hps.util.FilterMCBunches.main(FilterMCBunches.java:177)

I would assume this is because there are no conditions defined for the hodoscope geometry. Is there a way to bypass this and just have the hodoscope hits use the raw energy rather than trying to calculate a corrected energy from a sampling fraction that we don't presently have?

Thanks,

Kyle


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