Skip to content
Snippets Groups Projects
Commit 565468e9 authored by Stephen A. Wood's avatar Stephen A. Wood
Browse files

Fix setup of reference time list in InitHitList

parent 425d2d87
No related branches found
No related tags found
No related merge requests found
......@@ -74,20 +74,19 @@ void THcHitList::InitHitList(THaDetMap* detmap,
}
}
}
// Should add another loop over fdMap and check that all detector
// channels that have a refindex, use a defined index
// Loop to check that requested refindex's are defined
for (Int_t i=0; i < fdMap->GetSize(); i++) {
THaDetMap::Module* d = fdMap->GetModule(i);
if(d->plane < 1000) {
Int_t refindex = d->refindex;
Int_t refindex = d->refindex;
if(d->plane < 1000 && refindex >= 0) {
if(!fRefIndexMaps[refindex].defined) {
cout << "Refindex " << refindex << " not defined for " <<
" (" << d->crate << ", " << d->slot <<
", " << d->lo << ")" << endl;
" (" << d->crate << ", " << d->slot <<
", " << d->lo << ")" << endl;
}
}
}
}
Int_t THcHitList::DecodeToHitList( const THaEvData& evdata ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment