Skip to content

TDC sorting error during decoding #780

@baltzell

Description

@baltzell

Seeing this on old data, run 4013 ...

java.lang.IllegalArgumentException: Comparison method violates its general contract!
	at java.base/java.util.TimSort.mergeLo(TimSort.java:781)
	at java.base/java.util.TimSort.mergeAt(TimSort.java:518)
	at java.base/java.util.TimSort.mergeCollapse(TimSort.java:448)
	at java.base/java.util.TimSort.sort(TimSort.java:245)
	at java.base/java.util.Arrays.sort(Arrays.java:1308)
	at java.base/java.util.ArrayList.sort(ArrayList.java:1804)
	at org.jlab.detector.decode.DetectorEventDecoder.filterTDCs(DetectorEventDecoder.java:238)
	at org.jlab.detector.decode.CLASDecoder4.initEvent(CLASDecoder4.java:142)
	at org.jlab.detector.decode.CLASDecoder4.getDataEvent(CLASDecoder4.java:470)
	at org.jlab.detector.decode.CLASDecoder4.getDecodedEvent(CLASDecoder4.java:444)
	at org.jlab.detector.decode.CLASDecoder4.main(CLASDecoder4.java:899)

Looks like it should mean multiple hits on the same channel with the same TDC value in the same event (and an incomplete comparator).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions