98int main(
int argc,
char **argv)
112 JParser<> zap(
"Auxiliary program to compare summary data.");
114 zap[
'f'] =
make_field(inputFile,
"pair of input files");
122 catch(
const exception &error) {
123 FATAL(error.what() << endl);
130 TH1D h0(
"h0", NULL, 200, -2.0, +2.0);
132 TH2D h2(
"h2", NULL, 2, -0.5, +1.5, 2, -0.5, +1.5);
133 TH2D h3(
"h3", NULL, 2, -0.5, +1.5, 2, -0.5, +1.5);
134 TH2D h4(
"h4", NULL, 100, 0.0, 100.0, 100, 0.0, 100.0);
135 TH2D h5(
"h5", NULL, 100, 0.0, 100.0, 100, 0.0, 100.0);
136 TH2D h6(
"h6", NULL, 2, -0.5, +1.5, 2, -0.5, +1.5);
158 STATUS(
"event: " << setw(10) << in.getCounter() <<
'\r');
DEBUG(endl);
170 for (JDAQSummaryslice::const_iterator i = p->begin(); i != p->end(); ++i) {
174 module.counts[f1.getModuleID()] += 1;
185 cout <<
"PMT " <<
id <<
' ' << printer(*i,pmt) <<
" -> " << printer(f2,pmt) << endl;
195 if (!rate_kHz(f2.
getRate(pmt, factor) - f1.
getRate(pmt, factor))) {
213 module.misses[f1.getModuleID()] += 1;
223 cout <<
"Number of slice misses "<< setw(6) << misses <<
'/' << setw(6) << counts << endl;
225 for (
const auto& i : module.misses) {
226 cout <<
"Number of module misses " << setw(8) << i.first <<
' ' << setw(6) << i.second <<
'/' << setw(6) <<
module.counts[i.first] << endl;
229 for (
const auto& i :
PMT.misses) {
230 cout <<
"Number of PMT misses " << i.first <<
' ' << setw(6) << i.second <<
'/' << setw(6) <<
PMT.counts[i.first] << endl;
233 for (
const auto& i :
PMT.errors) {
234 cout <<
"Number of PMT errors " << i.first <<
' ' << setw(6) << i.second <<
'/' << setw(6) <<
PMT.counts[i.first] << endl;