diff --git a/src/THcDetectorMap.cxx b/src/THcDetectorMap.cxx index 1f93b1cf4012687c13b7e7d18600c8cab96a402e..9b836233497b10734878ddc50373256b37031a25 100644 --- a/src/THcDetectorMap.cxx +++ b/src/THcDetectorMap.cxx @@ -176,8 +176,8 @@ Int_t THcDetectorMap::FillMap(THaDetMap *detmap, const char *detectorname) } detmap->AddModule((UShort_t)roc, (UShort_t)slot, (UShort_t)first_chan, (UShort_t)last_chan, - (UInt_t) first_counter, model, (Int_t) 0, - (Int_t) last_refindex, (UInt_t)last_plane, (UInt_t)last_signal); + (UInt_t) first_counter, model, (Int_t) last_refindex, + (Int_t) last_refchan, (UInt_t)last_plane, (UInt_t)last_signal); } return(0); diff --git a/src/THcHitList.cxx b/src/THcHitList.cxx index 9363cbe90b37f3664a84c882d7085e28bcd53267..e0a26fd79a2d96426d60736747a821f21ce1cba0 100644 --- a/src/THcHitList.cxx +++ b/src/THcHitList.cxx @@ -173,6 +173,10 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata ) { if( evdata.GetNumHits(d->crate,d->slot,d->refchan) > 0) { Int_t reftime = evdata.GetData(d->crate, d->slot, d->refchan, 0); rawhit->SetReference(signal, reftime); + } else { + cout << "HitList: refchan " << d->refindex << + " missing for (" << d->crate << ", " << d->slot << + ", " << chan << ")" << endl; } } else { if(d->refindex >=0 && d->refindex < fNRefIndex) {