From fe41c4106c12c1bc9a59d4e51f80e9c6f9cab423 Mon Sep 17 00:00:00 2001 From: "se.gorbunov" <se.gorbunov@gsi.de> Date: Wed, 20 Sep 2023 18:32:35 +0000 Subject: [PATCH] CA: bugfix in MC station assignmnet --- reco/L1/CbmL1ReadEvent.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reco/L1/CbmL1ReadEvent.cxx b/reco/L1/CbmL1ReadEvent.cxx index df15dbfcc1..f92fefcdc5 100644 --- a/reco/L1/CbmL1ReadEvent.cxx +++ b/reco/L1/CbmL1ReadEvent.cxx @@ -295,7 +295,7 @@ void CbmL1::ReadEvent(CbmEvent* event) if (!ReadMCPoint(&MC, iMC, iFile, iEvent, 3)) { auto* pPoint = static_cast<CbmTrdPoint*>(fpTrdPoints->Get(iFile, iEvent, iMC)); int iStLoc = CbmTrdTrackingInterface::Instance()->GetTrackingStationIndex(pPoint->GetDetectorID()); - MC.iStation = fpAlgo->GetParameters()->GetStationIndexActive(iStLoc, L1DetectorID::kSts); + MC.iStation = fpAlgo->GetParameters()->GetStationIndexActive(iStLoc, L1DetectorID::kTrd); if (MC.iStation < 0) { continue; } // Reject MC points from inactive stations auto itTrack = fmMCTracksLinksMap.find(CbmL1LinkKey(MC.ID, iEvent, iFile)); assert(itTrack != fmMCTracksLinksMap.cend()); -- GitLab