Skip to content

Commit 2a5cbb5

Browse files
committed
add convenience method
1 parent 49e623c commit 2a5cbb5

1 file changed

Lines changed: 7 additions & 1 deletion

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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import org.jlab.io.base.DataEvent;
1717
import org.jlab.io.evio.EvioDataEvent;
18+
import org.jlab.io.hipo.HipoDataEvent;
1819

1920
import org.jlab.jnp.hipo4.data.Bank;
2021
import org.jlab.jnp.hipo4.data.Event;
@@ -795,4 +796,9 @@ public Event getDecodedEvent(EvioDataEvent rawEvent, int run, int counter, Doubl
795796
public Event getDecodedEvent(EvioDataEvent rawEvent) {
796797
return getDecodedEvent(rawEvent, -1, -1, null, null);
797798
}
798-
}
799+
800+
public HipoDataEvent getDecodedDataEvenet(EvioDataEvent rawEvent) {
801+
return new HipoDataEvent(getDecodedEvent(rawEvent), schemaFactory);
802+
}
803+
804+
}

0 commit comments

Comments
 (0)