From a643219ed51eb4dd323cdc3c651f33f7af7d0ea8 Mon Sep 17 00:00:00 2001 From: "s.zharko@gsi.de" <s.zharko@gsi.de> Date: Wed, 24 Jan 2024 12:16:39 +0100 Subject: [PATCH] CbmMatchRecoToMC: removed assertion to the MVD MC point in the StsTrack matching procedure --- core/base/CbmMatchRecoToMC.cxx | 7 +++++-- macro/run/run_qa.C | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/core/base/CbmMatchRecoToMC.cxx b/core/base/CbmMatchRecoToMC.cxx index 528651ebe9..3a5b0c8177 100644 --- a/core/base/CbmMatchRecoToMC.cxx +++ b/core/base/CbmMatchRecoToMC.cxx @@ -773,8 +773,11 @@ void CbmMatchRecoToMC::MatchStsTracks(const TClonesArray* mvdHitMatches, const T for (Int_t iLink = 0; iLink < nofLinks; iLink++) { const CbmLink& link = hitMatch->GetLink(iLink); const FairMCPoint* point = static_cast<const FairMCPoint*>(mvdPoints->Get(link)); - assert(point); - trackMatch->AddLink(CbmLink(1., point->GetTrackID(), link.GetEntry(), link.GetFile())); + if (point) { + // NOTE: 24.01.2024 SZh: the assertion was replaced with nullptr check, because there are links, + // which are not assigned to any MC point. Can it be a bug? + trackMatch->AddLink(CbmLink(1., point->GetTrackID(), link.GetEntry(), link.GetFile())); + } } } diff --git a/macro/run/run_qa.C b/macro/run/run_qa.C index a34d152690..47bfa43c0d 100644 --- a/macro/run/run_qa.C +++ b/macro/run/run_qa.C @@ -307,8 +307,8 @@ void run_qa(TString dataTraColl, pCaOutputQa->SetProcessFullTs(!bEventBasedReco); pCaOutputQa->SetStsTrackingMode(); pCaOutputQa->ReadParameters(caParFile.Data()); - if (configName.Length() != 0) { - pCaOutputQa->SetConfigName(configName); + if (config.Length() != 0) { + pCaOutputQa->SetConfigName(config); } // TODO: Provide detector selection interface from the L1Parameters pCaOutputQa->SetUseMvd(!(sEvBuildRaw.EqualTo("Real", TString::ECaseCompare::kIgnoreCase)) ? bUseMvd : false); -- GitLab