Skip to content

Commit f7b1ac4

Browse files
committed
require nonzero run number
1 parent 39a2eff commit f7b1ac4

File tree

1 file changed

+6
-4
lines changed
  • common-tools/clas-detector/src/main/java/org/jlab/detector/decode

1 file changed

+6
-4
lines changed

common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CLASDecoder.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -745,10 +745,12 @@ public void initEvent(DataEvent event){
745745

746746
int runNumberCoda = codaDecoder.getRunNumber();
747747
this.setRunNumber(runNumberCoda);
748-
749-
detectorDecoder.translate(dataList);
750-
detectorDecoder.fitPulses(dataList);
751-
detectorDecoder.filterTDCs(dataList);
748+
749+
if (runNumberCoda > 0) {
750+
detectorDecoder.translate(dataList);
751+
detectorDecoder.fitPulses(dataList);
752+
detectorDecoder.filterTDCs(dataList);
753+
}
752754

753755
if(this.decoderDebugMode>0){
754756
System.out.println("\n>>>>>>>>> TRANSLATED data");

0 commit comments

Comments
 (0)