From c9fa6b96abd4840d1893aafa687900e8877f15ea Mon Sep 17 00:00:00 2001 From: "se.gorbunov" <se.gorbunov@gsi.de> Date: Fri, 3 Mar 2023 17:54:14 +0000 Subject: [PATCH] L1: suppress obsolete input performance method --- reco/L1/CbmL1.cxx | 7 ++++++- reco/L1/CbmL1Performance.cxx | 10 +++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/reco/L1/CbmL1.cxx b/reco/L1/CbmL1.cxx index 7c306ea576..d00811462f 100644 --- a/reco/L1/CbmL1.cxx +++ b/reco/L1/CbmL1.cxx @@ -943,7 +943,12 @@ void CbmL1::Reconstruct(CbmEvent* event) } } - if ((fPerformance) && (fSTAPDataMode < 2)) { InputPerformance(); } + // + // tracker input performance is moved to external QA tasks. + // InputPerformance() method is not optimised to run with the event builder + // TODO: verify QA tasks and remove InputPerformance() + // if ((fPerformance) && (fSTAPDataMode < 2)) { InputPerformance(); } + // // FieldApproxCheck(); // FieldIntegralCheck(); diff --git a/reco/L1/CbmL1Performance.cxx b/reco/L1/CbmL1Performance.cxx index 547921ac25..62e199a02c 100644 --- a/reco/L1/CbmL1Performance.cxx +++ b/reco/L1/CbmL1Performance.cxx @@ -1903,7 +1903,7 @@ void CbmL1::InputPerformance() map<unsigned int, unsigned int>::iterator it; - if (fpStsHits && fpStsHitMatches) { + if (fpStsHits && fpStsHitMatches && fpStsPoints) { for (int iH = 0; iH < fpStsHits->GetEntriesFast(); iH++) { const CbmStsHit* sh = L1_DYNAMIC_CAST<CbmStsHit*>(fpStsHits->At(iH)); @@ -1976,7 +1976,7 @@ void CbmL1::InputPerformance() } // sts - if (fpMvdHits && fpMvdHitMatches) { + if (fpMvdHits && fpMvdHitMatches && fpMvdPoints) { Int_t nEnt = fpMvdHits->GetEntriesFast(); for (int j = 0; j < nEnt; j++) { @@ -2015,7 +2015,7 @@ void CbmL1::InputPerformance() } // mvd - if (fpMuchPixelHits && fpMuchHitMatches) { + if (fpMuchPixelHits && fpMuchHitMatches && fpMuchPoints) { for (int iH = 0; iH < fpMuchPixelHits->GetEntriesFast(); iH++) { const CbmMuchPixelHit* sh = L1_DYNAMIC_CAST<CbmMuchPixelHit*>(fpMuchPixelHits->At(iH)); @@ -2072,7 +2072,7 @@ void CbmL1::InputPerformance() } // much - if (fpTrdHits && fpTrdHitMatches) { + if (fpTrdHits && fpTrdHitMatches && fpTrdPoints) { for (int iH = 0; iH < fpTrdHits->GetEntriesFast(); iH++) { const CbmTrdHit* sh = L1_DYNAMIC_CAST<CbmTrdHit*>(fpTrdHits->At(iH)); @@ -2134,7 +2134,7 @@ void CbmL1::InputPerformance() } // much - if (fpTofHits && fpTofHitMatches) { + if (fpTofHits && fpTofHitMatches && fpTofPoints) { for (int iH = 0; iH < fpTofHits->GetEntriesFast(); iH++) { const CbmTofHit* sh = L1_DYNAMIC_CAST<CbmTofHit*>(fpTofHits->At(iH)); -- GitLab