Fixing warnings
authorodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Feb 2013 16:09:56 +0000 (16:09 +0000)
committerodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Feb 2013 16:09:56 +0000 (16:09 +0000)
PWGLF/totEt/AliAnalysisEtMonteCarlo.cxx

index 21a378c..056acd5 100644 (file)
@@ -685,7 +685,7 @@ Int_t AliAnalysisEtMonteCarlo::AnalyseEvent(AliVEvent* ev,AliVEvent* ev2)
 
         } // end of primary particle check
         
-        const int primCode = stack->Particle(primIdx)->GetPdgCode();
+        //const int primCode = stack->Particle(primIdx)->GetPdgCode();
         TParticlePDG *pdg = part->GetPDG();
         if (!pdg)
         {
@@ -693,14 +693,14 @@ Int_t AliAnalysisEtMonteCarlo::AnalyseEvent(AliVEvent* ev,AliVEvent* ev2)
             continue;
         }
 
-        Int_t code = pdg->PdgCode();
+        //Int_t code = pdg->PdgCode();
 //     if(primCode == fgGammaCode) 
 //     {
          
-       for(int i = 0; i < caloCluster->GetNLabels(); i++)
+       for(UInt_t i = 0; i < caloCluster->GetNLabels(); i++)
        {
          Int_t pIdx = caloCluster->GetLabelAt(i);
-         TParticle *p = stack->Particle(pIdx);
+         //TParticle *p = stack->Particle(pIdx);
          
          if(!stack->IsPhysicalPrimary(pIdx))
          {
@@ -764,7 +764,7 @@ Int_t AliAnalysisEtMonteCarlo::AnalyseEvent(AliVEvent* ev,AliVEvent* ev2)
        fReconstructedEt = caloCluster->E()*TMath::Sin(cp.Theta());
        
        pdg = primPart->GetPDG(0);
-       code = primPart->GetPdgCode();
+       //Int_t code = primPart->GetPdgCode();
 
        Bool_t written = kFALSE;