I tracked down the problem we were seeing with the heprep's when viewing events with no hits. The real problem seems to be in Wired (more correctly in the jheprep package), but to work around it I just stopped registering the eventInstanceTree if there are no real hits. The code is in subversion (but not released). Tony PS - Dima in case you feel like tracking down the original error, the stack dump was: java.lang.ArrayIndexOutOfBoundsException: -1 at hep.graphics.heprep.ref.DefaultHepRepIterator.hasNext(DefaultHepRepIterator.java:407) at hep.wired.heprep.graphicspanel.HepRepPanel.setRecord(HepRepPanel.java:327) at hep.wired.heprep.plugin.WiredPlugin.checkHepRep(WiredPlugin.java:672) at hep.wired.heprep.plugin.WiredPlugin.convertRecordToHepRep(WiredPlugin.java:657) at hep.wired.heprep.plugin.WiredPlugin.access$1100(WiredPlugin.java:96) at hep.wired.heprep.plugin.WiredPlugin$LoopHandler.setRecord(WiredPlugin.java:812) at hep.wired.heprep.plugin.WiredPlugin$LoopHandler.suspend(WiredPlugin.java:802) at org.freehep.record.loop.AbstractLoopListener.process(AbstractLoopListener.java:28) at org.freehep.record.loop.DefaultRecordLoop.fireLoopEvents(DefaultRecordLoop.java:125) at org.freehep.record.loop.ConcurrentRecordLoop.access$001(ConcurrentRecordLoop.java:29) at org.freehep.record.loop.ConcurrentRecordLoop$1.run(ConcurrentRecordLoop.java:116) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at org.freehep.jas.util.waitcursor.WaitCursorEventQueue.dispatchEvent(WaitCursorEventQueue.java:47) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) On 07/24/2013 08:45 PM, Ryan Herbst wrote: > Attached is a modified version of Tony's example code. This version > looks for events that have hits in at least 3 layers. > > I have been using this to gate the JAS display and have successfully > captured a number of cosmic rays in the current run. > > -Ryan > ######################################################################## Use REPLY-ALL to reply to list To unsubscribe from the KPIX-BEAMTEST-SOFTWARE list, click the following link: https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=KPIX-BEAMTEST-SOFTWARE&A=1