Skip to content
Snippets Groups Projects
Commit 1cf2ff67 authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau Committed by Pierre-Alain Loizeau
Browse files

Trigger fatal if Match invalid in CbmMatchRecoToMC::CbmMatchRecoToMC::MatchClusters, #2737

parent fe74bcb2
No related branches found
Tags dev_2023_09
No related merge requests found
...@@ -424,6 +424,10 @@ void CbmMatchRecoToMC::MatchClusters(ECbmModuleId systemId, const TClonesArray* ...@@ -424,6 +424,10 @@ void CbmMatchRecoToMC::MatchClusters(ECbmModuleId systemId, const TClonesArray*
for (Int_t iDigi = 0; iDigi < nofDigis; iDigi++) { for (Int_t iDigi = 0; iDigi < nofDigis; iDigi++) {
Int_t digiIndex = cluster->GetDigi(iDigi); Int_t digiIndex = cluster->GetDigi(iDigi);
const CbmMatch* digiMatch = fDigiManager->GetMatch(systemId, digiIndex); const CbmMatch* digiMatch = fDigiManager->GetMatch(systemId, digiIndex);
if (nullptr == digiMatch) {
LOG(fatal) << "CbmMatchRecoToMC::MatchClusters => no Match found for system " << systemId << " digi index "
<< digiIndex << " (digi " << iDigi << " from cluster " << iCluster << ") !";
}
clusterMatch->AddLinks(*digiMatch); clusterMatch->AddLinks(*digiMatch);
} //# digis in cluster } //# digis in cluster
} //# clusters } //# clusters
......
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