X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2Fglobal%2Fphysics%2FAliHLTCaloHistoComponent.cxx;h=d7c35671b9baca8efcdd7109797c474d0a1b4cc7;hb=f00fcfffb53b3d48298ab83cc8a8ad072fb3a077;hp=202b72fa112076625454164f2732ea4a130cb119;hpb=5d3cb74855cf0949692ce672fa7b211965e4f463;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/global/physics/AliHLTCaloHistoComponent.cxx b/HLT/global/physics/AliHLTCaloHistoComponent.cxx index 202b72fa112..d7c35671b9b 100644 --- a/HLT/global/physics/AliHLTCaloHistoComponent.cxx +++ b/HLT/global/physics/AliHLTCaloHistoComponent.cxx @@ -315,9 +315,27 @@ Int_t AliHLTCaloHistoComponent::ProcessBlocks(const AliHLTComponentBlockData * p clustersVector.resize((int) (clusterHeader->fNClusters)); Int_t nClusters = 0; - + Double_t ampFrac; + UShort_t cellId; + Bool_t cutCluster = false; while( (clusterStruct = fClusterReader->NextCluster()) != 0) { - clustersVector[nClusters++] = clusterStruct; + cutCluster = false; + if(clusterStruct->fEnergy > 0.5) + { + for(UInt_t i = 0; i < clusterStruct->fNCells; i++) + { + fClusterReader->GetCell(clusterStruct, cellId, ampFrac, i); + if(ampFrac > 0.9) + { + cutCluster = true; + break; + } + } + if(!cutCluster) + { + clustersVector[nClusters++] = clusterStruct; + } + } } nClusters = clusterHeader->fNClusters;