From b4af0591a024278a6ac0a5d8f52750968b58b787 Mon Sep 17 00:00:00 2001
From: Jure Bericic <bericic@jlab.org>
Date: Thu, 23 Feb 2017 10:05:36 -0500
Subject: [PATCH] Modified warning messeges for hitlist.

Corrected warning message for missing refchan to correctly display reference channel.
Modified warningg message for missing refindex to include information about reference channel.
---
 src/THcHitList.cxx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/THcHitList.cxx b/src/THcHitList.cxx
index 7ead978..0697618 100644
--- a/src/THcHitList.cxx
+++ b/src/THcHitList.cxx
@@ -193,7 +193,7 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata ) {
 	    Int_t reftime = evdata.GetData(d->crate, d->slot, d->refchan, 0);
 	    rawhit->SetReference(signal, reftime);
 	  } else {
-	    cout << "HitList: refchan " << d->refindex <<
+	    cout << "HitList: refchan " << d->refchan <<
 	      " missing for (" << d->crate << ", " << d->slot <<
 	      ", " << chan << ")" << endl;
 	  }
@@ -203,6 +203,9 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata ) {
 	      rawhit->SetReference(signal, fRefIndexMaps[d->refindex].reftime);
 	    } else {
 	      cout << "HitList: refindex " << d->refindex <<
+          " (" << fRefIndexMaps[d->refindex].crate <<
+          ", " << fRefIndexMaps[d->refindex].slot <<
+          ", " << fRefIndexMaps[d->refindex].channel << ")" <<
 		" missing for (" << d->crate << ", " << d->slot <<
 		", " << chan << ")" << endl;
 	    }
-- 
GitLab