]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
in case of several isolation cuts, do not set the isolation tag in temporary AOD
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Apr 2012 15:02:16 +0000 (15:02 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Apr 2012 15:02:16 +0000 (15:02 +0000)
PWGGA/CaloTrackCorrelations/AliAnaParticleIsolation.cxx

index 449a317dedb3533329a04f1771ef8018838ccd77..65768207fc6f7ae56fdd179bc91826ea41e6e521 100755 (executable)
@@ -1258,7 +1258,8 @@ void  AliAnaParticleIsolation::MakeAnalysisFillAOD()
                                       GetReader(), GetCaloPID(),
                                       kTRUE, aodinput, GetAODObjArrayName(), 
                                       n,nfrac,coneptsum, isolated);
-  aodinput->SetIsolated(isolated);
+  
+  if(!fMakeSeveralIC) aodinput->SetIsolated(isolated);
   
   if(GetDebug() > 1) 
   {
@@ -1282,7 +1283,7 @@ void  AliAnaParticleIsolation::MakeAnalysisFillHistograms()
   if(GetDebug() > 0) printf("AliAnaParticleIsolation::MakeAnalysisFillHistograms() - Histo aod branch entries %d\n", naod);
   
   //Get vertex for photon momentum calculation
-  Double_t vertex[]={0,0,0} ; //vertex ;
+  Double_t vertex[] = {0,0,0} ; //vertex ;
   if(GetReader()->GetDataType() != AliCaloTrackReader::kMC) 
   {
     GetReader()->GetVertex(vertex);