]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing bug preventing pi0s to be added to tclonesarray of reconstructed pi0 if aod...
authorslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Jan 2011 18:23:22 +0000 (18:23 +0000)
committerslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Jan 2011 18:23:22 +0000 (18:23 +0000)
PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx

index eb2f7b38467c8b6a9253e992db00a7c6af860c8f..0513f3963c4fdd742a11bf3462fd5813e6de724a 100644 (file)
@@ -2448,16 +2448,17 @@ void AliAnalysisTaskGammaConversion::ProcessGammasForNeutralMesonAnalysis(){
 
            Double_t lowMassPi0=0.1;
            Double_t highMassPi0=0.15;
-           if ( fKFCreateAOD && (massTwoGammaCandidate > lowMassPi0) && (massTwoGammaCandidate < highMassPi0) ){
+           if ( massTwoGammaCandidate > lowMassPi0) && (massTwoGammaCandidate < highMassPi0) ){
              new((*fKFReconstructedPi0sTClone)[fKFReconstructedPi0sTClone->GetEntriesFast()])  AliKFParticle(*twoGammaCandidate);
              fGammav1.push_back(firstGammaIndex);
              fGammav2.push_back(secondGammaIndex);
-             AddPionToAOD(twoGammaCandidate, massTwoGammaCandidate, firstGammaIndex, secondGammaIndex);
+             if( fKFCreateAOD ) {
+               AddPionToAOD(twoGammaCandidate, massTwoGammaCandidate, firstGammaIndex, secondGammaIndex);
+             }
            }
          }
 
        }
-         //}
        delete twoGammaCandidate;
     }
   }