Skip to content

Commit

Permalink
added copying of the trigger node from AI into the decoded event
Browse files Browse the repository at this point in the history
  • Loading branch information
gavalian authored and baltzell committed Oct 17, 2023
1 parent 5dbf605 commit f25f9cd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@ public static void decodeEvio2Hipo2Evio(OptionParser parser){
hr.nextEvent(hevent);

Node evn = hevent.read(1, 11);
Node trg = hevent.read(5, 5);

byte[] buffer = evn.getByte();
// this next few lines may seem wierd for untrained observer,
Expand Down Expand Up @@ -834,6 +835,7 @@ public static void decodeEvio2Hipo2Evio(OptionParser parser){
writer.addEvent(scalerEvent, 1);
}

decodedEvent.write(trg);
writer.addEvent(decodedEvent,0);

counter++;
Expand Down

0 comments on commit f25f9cd

Please sign in to comment.