]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Warning corrected
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Oct 2009 14:20:30 +0000 (14:20 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Oct 2009 14:20:30 +0000 (14:20 +0000)
PWG3/hfe/AliHFEmcQA.cxx

index e7f6a925dc5cc90f5e565fde2992cc617ebc0676..79e0bbccd06a78ab6ab20a5d46dba51a825f6328 100644 (file)
@@ -823,8 +823,8 @@ Int_t AliHFEmcQA::GetElectronSource(AliAODMCParticle *mcpart)
        AliAODMCParticle* grandMa = (AliAODMCParticle*)fMCArray->At(jLabel);
        Int_t grandMaPDG = grandMa->GetPdgCode();
 
-       for (Int_t i=0; i<fNparents; i++){
-          if (abs(grandMaPDG)==fParentSelect[1][i]){
+       for (Int_t j=0; j<fNparents; j++){
+          if (abs(grandMaPDG)==fParentSelect[1][j]){
             origin = kBeautyCharm;
             return origin;
           }
@@ -899,8 +899,8 @@ Int_t AliHFEmcQA::GetElectronSource(TParticle* mcpart)
         TParticle* grandMa = fStack->Particle(jLabel);
         Int_t grandMaPDG = grandMa->GetPdgCode();
 
-        for (Int_t i=0; i<fNparents; i++){
-           if (abs(grandMaPDG)==fParentSelect[1][i]){
+        for (Int_t j=0; j<fNparents; j++){
+           if (abs(grandMaPDG)==fParentSelect[1][j]){
              origin = kBeautyCharm;
              return origin;
            }