]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
make sure that when filling the pool of clusters and the isolation of the trigger...
authorgconesab <gustavo.conesa.balbastre@cern.ch>
Thu, 14 Aug 2014 09:06:22 +0000 (11:06 +0200)
committergconesab <gustavo.conesa.balbastre@cern.ch>
Thu, 14 Aug 2014 16:36:15 +0000 (18:36 +0200)
PWGGA/CaloTrackCorrelations/AliAnaParticleHadronCorrelation.cxx

index 1c9668332032da1b961358c4ef2720d566a8d68a..b2f861042ec0266e34a37f45f9a56194ee0efe6c 100755 (executable)
@@ -818,16 +818,19 @@ void AliAnaParticleHadronCorrelation::FillNeutralUnderlyingEventSidesHistograms(
 //______________________________________________________
 void AliAnaParticleHadronCorrelation::FillEventMixPool()
 {
-  // Fill the pool with tracks if requested
+  // Fill the pool with tracks or clusters if requested
     
-  if(DoOwnMix())
-  {
-    FillChargedEventMixPool();
-    
-    if(OnlyIsolated() || fFillNeutralEventMixPool)
-      FillNeutralEventMixPool();
-  }
+  if ( !DoOwnMix() ) return;
+  
+  FillChargedEventMixPool();
+  
+  // Do the cluster pool filling only if requested
+  // or in case of isolation cut using clusters in the cone.
+  Bool_t isoCase = OnlyIsolated() && (GetIsolationCut()->GetParticleTypeInCone() != AliIsolationCut::kOnlyCharged);
+  
+  if( !fFillNeutralEventMixPool && !isoCase) return;
   
+  FillNeutralEventMixPool();
 }
 
 //_____________________________________________________________