From 87be007a4f9ab43adb8c1ccdb1319c24e863f8df Mon Sep 17 00:00:00 2001 From: wiechula Date: Tue, 23 Sep 2014 00:02:19 +0200 Subject: [PATCH] ATO-86 Fix false warning on missing HLT clusters --- TPC/Rec/AliTPCclusterer.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/TPC/Rec/AliTPCclusterer.cxx b/TPC/Rec/AliTPCclusterer.cxx index 2d5df5ffc6f..6ad7d88f88b 100644 --- a/TPC/Rec/AliTPCclusterer.cxx +++ b/TPC/Rec/AliTPCclusterer.cxx @@ -1470,27 +1470,28 @@ Int_t AliTPCclusterer::ReadHLTClusters() AliDebug(4,Form("Reading %d clusters from HLT for sector %d", clusterArray->GetEntriesFast(), fSector)); Int_t nClusterSector=0; + Int_t nClusterSectorGood=0; Int_t nRows=fParam->GetNRow(fSector); // active channel map and noise map for current sector const AliTPCCalROC * gainROC = gainTPC -> GetCalROC(fSector); // pad gains per given sector const AliTPCCalROC * noiseROC = noiseTPC -> GetCalROC(fSector); // noise per given sector - + for (fRow = 0; fRow < nRows; fRow++) { fRowCl->SetID(fParam->GetIndex(fSector, fRow)); if (fOutput) fOutput->GetBranch("Segment")->SetAddress(&fRowCl); fNcluster=0; // reset clusters per row - + fRx = fParam->GetPadRowRadii(fSector, fRow); fPadLength = fParam->GetPadPitchLength(fSector, fRow); fPadWidth = fParam->GetPadPitchWidth(); fMaxPad = fParam->GetNPads(fSector,fRow); fMaxBin = fMaxTime*(fMaxPad+6); // add 3 virtual pads before and 3 after - + fBins = fAllBins[fRow]; fSigBins = fAllSigBins[fRow]; fNSigBins = fAllNSigBins[fRow]; - + for (Int_t i=0; iGetEntriesFast(); i++) { if (!clusterArray->At(i)) continue; @@ -1498,10 +1499,11 @@ Int_t AliTPCclusterer::ReadHLTClusters() AliTPCclusterMI* cluster=dynamic_cast(clusterArray->At(i)); if (!cluster) continue; if (cluster->GetRow()!=fRow) continue; + nClusterSector++; const Int_t currentPad = TMath::Nint(cluster->GetPad()); const Float_t maxCharge = cluster->GetMax(); - + const Float_t gain = gainROC -> GetValue(fRow, currentPad); const Float_t noise = noiseROC -> GetValue(fRow, currentPad); @@ -1518,7 +1520,7 @@ Int_t AliTPCclusterer::ReadHLTClusters() if (maxChargeGetEntriesFast()-nClusterSector, clusterArray->GetEntriesFast())); } - fNclusters+=nClusterSector; + fNclusters+=nClusterSectorGood; } // for(fSector = 0; fSector < kNS; fSector++) { pClusterAccess->Clear("event"); -- 2.43.0