From cf005e1d4971a0ca4439d0c652d6537074060052 Mon Sep 17 00:00:00 2001 From: Alexandru Bercuci <abercuci@niham.nipne.ro> Date: Tue, 25 Apr 2023 12:54:01 +0300 Subject: [PATCH] replace hard-codded value by significant parameter --- sim/detectors/trd/CbmTrdModuleSim2D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/detectors/trd/CbmTrdModuleSim2D.cxx b/sim/detectors/trd/CbmTrdModuleSim2D.cxx index 3c5ed0ad02..5d68a3de01 100644 --- a/sim/detectors/trd/CbmTrdModuleSim2D.cxx +++ b/sim/detectors/trd/CbmTrdModuleSim2D.cxx @@ -707,7 +707,7 @@ Int_t CbmTrdModuleSim2D::FlushBuffer(ULong64_t time) digi = iv->first; if (!digi->IsMasked()) { // no more digi processed if (digi->GetTime() < newStartTime) newStartTime = digi->GetTime(); - if ((digi->GetTime() - timeMax) > 400) { + if ((digi->GetTime() - timeMax) > 2 * FASP_WINDOW) { delete digi; iv = fBuffer[padAddress].erase(iv); // remove from saved buffer continue; -- GitLab