LDMX-Software / pflib

Library and tool for interacting with polarfires.
https://ldmx-software.github.io/pflib/
4 stars 0 forks source link

Add ELINKS->ALIGN to align elinks based on BX headers and idles #62

Closed Skelpdar closed 2 years ago

Skelpdar commented 2 years ago

Solves #59 by adding a new tool in the ELINKS menu, to align elinks based on the bunch crossing headers and idles from a short pedestal run.

The alignment process is now:

  1. ROC->RESYNCLOAD
  2. ELINKS->HARD_RESET
  3. ELINKS->ALIGN repeating 2 and 3 until all links are aligned.

The BX headers and idles do not unfortunately seem to be a perfect metric. One time I had hits in the TOA due to misalignment, even when the BX headers and idles were perfect. Since the TOT and TOA should both be zero on a pedestal run, that could be yet another data quality check.