]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/global/physics/AliHLTCaloHistoComponent.cxx
- adding more histgrams for the invariant mass component (more energy intervals)
[u/mrichter/AliRoot.git] / HLT / global / physics / AliHLTCaloHistoComponent.cxx
index 202b72fa112076625454164f2732ea4a130cb119..d7c35671b9baca8efcdd7109797c474d0a1b4cc7 100644 (file)
@@ -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;