Changes in the clusterizer requested by MinJung
[u/mrichter/AliRoot.git] / TRD / AliTRDclusterizerV1.cxx
index 6f8f68f09fb2a7842ca81f3b1db7ee0b91d29cfa..c7d1e2fb0a9fd56449cabfc391789909a07fa159 100644 (file)
@@ -290,7 +290,8 @@ Bool_t AliTRDclusterizerV1::MakeClusters()
               if (signalM >= maxThresh) {
                 if ((TMath::Abs(signalL) <= signalM) && 
                     (TMath::Abs(signalR) <= signalM)) {
-                 if ((TMath::Abs(signalL) + TMath::Abs(signalR)) > sigThresh) {
+                 if ((TMath::Abs(signalL) >= sigThresh) ||
+                     (TMath::Abs(signalR) >= sigThresh)) {
                     // Maximum found, mark the position by a negative signal
                     digitsOut->SetDataUnchecked(row,col-1,time,-signalM);
                  }