take min e cut into account
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Sep 2011 15:38:47 +0000 (15:38 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Sep 2011 15:38:47 +0000 (15:38 +0000)
EMCAL/AliEMCALClusterizerFixedWindow.cxx

index 5399946..a91a5b4 100644 (file)
@@ -376,6 +376,12 @@ void AliEMCALClusterizerFixedWindow::MakeClusters()
         Float_t dEnergyCalibrated = digit->GetAmplitude();
         Float_t time              = digit->GetTime();
         Calibrate(dEnergyCalibrated,time,digit->GetId());
+        if (dEnergyCalibrated < fMinECut) {
+          continue;
+        }
+        if (!fGeom->CheckAbsCellId(digit->GetId())) {
+          continue;
+        }
         digit->SetCalibAmp(dEnergyCalibrated);
         recPoint->AddDigit(*digit, dEnergyCalibrated, kFALSE); //Time or TimeR?
         fClustersArray[iCluster][iDigit] = NULL;