2#ifndef PFTOOL_HEADERS_H
3#define PFTOOL_HEADERS_H
5#include "pflib/decoding/SuperPacket.h"
10 int n_good_bxheaders = 0;
11 int n_bad_bxheaders = 0;
15 double percent_bad_headers()
const;
16 double percent_bad_idles()
const;
20 std::cout <<
"Num bad headers: " << n_bad_bxheaders
21 <<
", ratio: " << percent_bad_headers()
23 std::cout <<
"Num bad idles: " << n_bad_idles
24 <<
", ratio: " << percent_bad_idles()
34 num_links{inum_links},
35 num_active_links{inum_active_links}
37 for (
int link{0}; link < num_active_links; ++link) {
47 bool is_acceptable (
const double threshold) {
50 if (
status.percent_bad_headers() > threshold )
53 <<
status.percent_bad_headers() * 100
56 }
else if (
status.percent_bad_idles() > threshold) {
58 <<
status.percent_bad_idles() * 100
smallest formatted packet being readout by the HGCROC-Polarfire pipeline
Definition: LinkPacket.h:19
Decoding of entire "super packet" which holds multiple polarfire packets - one for each sample in an ...
Definition: SuperPacket.h:20