Skip to content
Snippets Groups Projects
Commit cf005e1d authored by Alexandru Bercuci's avatar Alexandru Bercuci Committed by Florian Uhlig
Browse files

replace hard-codded value by significant parameter

parent 48d585cb
No related branches found
No related tags found
1 merge request!1124fix memory leak in timebased simulations of TRD2D (A.Nan)
Pipeline #22010 passed
...@@ -707,7 +707,7 @@ Int_t CbmTrdModuleSim2D::FlushBuffer(ULong64_t time) ...@@ -707,7 +707,7 @@ Int_t CbmTrdModuleSim2D::FlushBuffer(ULong64_t time)
digi = iv->first; digi = iv->first;
if (!digi->IsMasked()) { // no more digi processed if (!digi->IsMasked()) { // no more digi processed
if (digi->GetTime() < newStartTime) newStartTime = digi->GetTime(); if (digi->GetTime() < newStartTime) newStartTime = digi->GetTime();
if ((digi->GetTime() - timeMax) > 400) { if ((digi->GetTime() - timeMax) > 2 * FASP_WINDOW) {
delete digi; delete digi;
iv = fBuffer[padAddress].erase(iv); // remove from saved buffer iv = fBuffer[padAddress].erase(iv); // remove from saved buffer
continue; continue;
......
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