Skip to content

Commit

Permalink
Support ref channel in normal TDC print
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Jun 11, 2024
1 parent 884a899 commit e4c5bcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/hadaq/tdc_print_code.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,8 @@ unsigned PrintTdcDataPlain(unsigned ix, const std::vector<uint32_t> &data, unsig
sbuf[0] = 0;
if (isrising) {
last_rising[channel] = tm;
if ((ref_channel > 0) && (ref_channel != (int) channel) && (last_rising[ref_channel] != 0.))
snprintf(sbuf, sizeof(sbuf), " refch:%6.3fns", tm - last_rising[ref_channel]);
} else {
last_falling[channel] = tm;
if (last_rising[channel] > 0) {
Expand Down

0 comments on commit e4c5bcb

Please sign in to comment.