Skip to content

Commit 3ab7d3a

Browse files
committed
require nonzero run number
1 parent b9fd31d commit 3ab7d3a

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
@@ -742,10 +742,12 @@ public void initEvent(DataEvent event){
742742

743743
int runNumberCoda = codaDecoder.getRunNumber();
744744
this.setRunNumber(runNumberCoda);
745-
746-
detectorDecoder.translate(dataList);
747-
detectorDecoder.fitPulses(dataList);
748-
detectorDecoder.filterTDCs(dataList);
745+
746+
if (runNumberCoda > 0) {
747+
detectorDecoder.translate(dataList);
748+
detectorDecoder.fitPulses(dataList);
749+
detectorDecoder.filterTDCs(dataList);
750+
}
749751

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

0 commit comments

Comments
 (0)