Skip to content

Commit cbb41ba

Browse files
authored
Fix decoder method name(!) and add convenience method (#1448)
* fix method name, add convenience method * cleanup
1 parent 2552656 commit cbb41ba

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

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

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,12 @@ public Event getDecodedEvent(EvioDataEvent rawEvent) {
797797
return getDecodedEvent(rawEvent, -1, -1, null, null);
798798
}
799799

800-
public HipoDataEvent getDecodedDataEvenet(EvioDataEvent rawEvent) {
801-
return new HipoDataEvent(getDecodedEvent(rawEvent), schemaFactory);
800+
public HipoDataEvent getDecodedDataEvent(EvioDataEvent rawEvent) {
801+
return new HipoDataEvent(getDecodedEvent(rawEvent, -1, -1, null, null), schemaFactory);
802+
}
803+
804+
public HipoDataEvent getDecodedDataEvent(EvioDataEvent rawEvent, Double torus, Double solenoid) {
805+
return new HipoDataEvent(getDecodedEvent(rawEvent, -1, -1, torus, solenoid), schemaFactory);
802806
}
803807

804808
}

0 commit comments

Comments
 (0)