From 7df38f56219068308bcd5eafc3c927f030f63c35 Mon Sep 17 00:00:00 2001 From: "Stephen A. Wood" <saw@jlab.org> Date: Tue, 20 Feb 2018 16:47:28 -0500 Subject: [PATCH] Don't print missing reference time errors for ADC's. Statistics for missing ADC reference times are still accumulated and still printed at the end of the run and stored in parameters. --- src/THcHitList.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/THcHitList.cxx b/src/THcHitList.cxx index 55d645f..12f23ef 100644 --- a/src/THcHitList.cxx +++ b/src/THcHitList.cxx @@ -1,3 +1,5 @@ +// Remove this line to restore missing ADC reference time messages +#define SUPPRESSMISSINGADCREFTIMEMESSAGES 1 /** \class THcHitList \ingroup Base @@ -366,9 +368,11 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata, Bool_t suppresswarni if(goodreftime || (nrefhits>0 && fADC_RefTimeBest)) { rawhit->SetReference(signal, reftime); } else if (!suppresswarnings) { +#ifndef SUPPRESSMISSINGADCREFTIMEMESSAGES cout << "HitList(event=" << evdata.GetEvNum() << "): refchan " << d->refchan << " missing for (" << d->crate << ", " << d->slot << ", " << chan << ")" << endl; +#endif adcref_miss = kTRUE; } } else { @@ -377,12 +381,14 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata, Bool_t suppresswarni rawhit->SetReference(signal, fRefIndexMaps[d->refindex].reftime); } else { if(!suppresswarnings) { +#ifndef SUPPRESSMISSINGADCREFTIMEMESSAGES cout << "HitList(event=" << evdata.GetEvNum() << "): refindex " << d->refindex << " (" << fRefIndexMaps[d->refindex].crate << ", " << fRefIndexMaps[d->refindex].slot << ", " << fRefIndexMaps[d->refindex].channel << ")" << " missing for (" << d->crate << ", " << d->slot << ", " << chan << ")" << endl; +#endif adcref_miss = kTRUE; } } -- GitLab