Fixing compiler warnings for unused variables
authorkleinb <Christian.Klein-Boesing@cern.ch>
Wed, 3 Sep 2014 14:19:17 +0000 (16:19 +0200)
committerkleinb <Christian.Klein-Boesing@cern.ch>
Wed, 3 Sep 2014 14:20:21 +0000 (16:20 +0200)
PWGJE/AliAnalysisTaskAj.cxx
PWGJE/AliAnalysisTaskJetCore.cxx
PWGJE/AliAnalysisTaskJetProperties.cxx
PWGJE/StrangenessInJets/AliAnalysisTaskJetChem.cxx

index 165c644..94b2888 100644 (file)
@@ -552,14 +552,14 @@ void AliAnalysisTaskAj::UserExec(Option_t *)
    Int_t selec=-1;
    Double_t ptmax=-10; 
    Double_t areaj=0;
-   Double_t phij=0;
+   //   Double_t phij=0;
    Double_t etaj=0;
    Double_t ptj=0;
    Double_t ptcorrj=0;  
    for(Int_t i=0; i<fListJets[0]->GetEntries(); ++i){
            AliAODJet* jetj = (AliAODJet*)(fListJets[0]->At(i));
            etaj  = jetj->Eta();
-           phij  = jetj->Phi();
+          //           phij  = jetj->Phi();
            ptj = jetj->Pt();
            if(ptj==0) continue; 
            areaj = jetj->EffectiveAreaCharged();
@@ -596,7 +596,7 @@ void AliAnalysisTaskAj::UserExec(Option_t *)
           if(j==selec) continue;
            AliAODJet* jetb = (AliAODJet*)(fListJets[0]->At(j));
            etaj  = jetb->Eta();
-           phij  = jetb->Phi();
+          //           phij  = jetb->Phi();
            ptj   = jetb->Pt();
            if(ptj<=0) continue; 
            areaj = jetb->EffectiveAreaCharged();
@@ -640,7 +640,7 @@ void AliAnalysisTaskAj::UserExec(Option_t *)
       Float_t ptMax  = 0.;
       Float_t etaMax = 0.;
       Float_t phiMax = 0.;
-      Int_t   iMax   = -1;
+      //      Int_t   iMax   = -1;
       //1st loop over all tracks      
          for(int it = 0;it<nT;++it){
          AliVParticle *track = (AliVParticle*)ParticleList.At(it);
@@ -676,7 +676,7 @@ void AliAnalysisTaskAj::UserExec(Option_t *)
              // max pt
              if (pt > ptMax) {
                  ptMax  = pt;
-                 iMax   = it;
+                 //              iMax   = it;
                  etaMax = deta;
                  phiMax = dphi;
              }
@@ -884,7 +884,7 @@ Int_t  AliAnalysisTaskAj::GetListOfTracks(TList *list){
    
     Double_t ptmax=-10;
     Double_t dphi=0;
-    Double_t dif=0;
+    //    Double_t dif=0;
     Int_t iCount=0;
     for(int it = 0;it < aod->GetNumberOfTracks();++it){
       AliAODTrack *tr = aod->GetTrack(it);
@@ -896,7 +896,8 @@ Int_t  AliAnalysisTaskAj::GetListOfTracks(TList *list){
       if(TMath::Abs(dphi)<TMath::Pi()-0.2) continue;
       if(tr->Pt()>ptmax){ ptmax=tr->Pt();
       index=iCount-1;
-      dif=dphi;  }}
+      //  dif=dphi; 
+      }}
   
       return index;
 
index 64f3752..66e1c55 100644 (file)
@@ -757,7 +757,7 @@ void AliAnalysisTaskJetCore::UserExec(Option_t *)
    Double_t phibig=0.;
    Double_t etasmall=0;
    Double_t ptsmall=0;
-   Double_t areasmall=0;
+   //   Double_t areasmall=0;
    Double_t phismall=0.;
          
   
@@ -765,7 +765,7 @@ void AliAnalysisTaskJetCore::UserExec(Option_t *)
    Int_t iCount=0; 
    Int_t trigJet=-1;
    Int_t trigBBTrack=-1;
-   Int_t trigInTrack=-1;
+   //   Int_t trigInTrack=-1;
    fRPAngle = aod->GetHeader()->GetEventplane();     
 
    if(fHardest==0 || fHardest==1){
@@ -891,7 +891,7 @@ void AliAnalysisTaskJetCore::UserExec(Option_t *)
                       if(iCount==0){                        
                         trigJet=i;
                         trigBBTrack=nT;
-                        trigInTrack=ippt;
+                        //                      trigInTrack=ippt;
                         iCount=iCount+1;} 
                       
    
@@ -901,7 +901,7 @@ void AliAnalysisTaskJetCore::UserExec(Option_t *)
                           etasmall  = jetsmall->Eta();
                           phismall = jetsmall->Phi();
                           ptsmall   = jetsmall->Pt();
-                          areasmall = jetsmall->EffectiveAreaCharged();
+                          //                      areasmall = jetsmall->EffectiveAreaCharged();
                           Double_t tmpDeltaR=(phismall-phibig)*(phismall-phibig)+(etasmall-etabig)*(etasmall-etabig);
                           tmpDeltaR=TMath::Sqrt(tmpDeltaR);
                           //Fraction in the jet core  
@@ -1289,7 +1289,7 @@ Int_t  AliAnalysisTaskJetCore::SelectTrigger(TList *list,Double_t minT,Double_t
     Int_t index=-1;
     Double_t ptmax=-10;
     Double_t dphi=0;
-    Double_t dif=0;
+    // Double_t dif=0;
     Int_t iCount=0;
     for(int it = 0;it < aod->GetNumberOfTracks();++it){
       AliAODTrack *tr = aod->GetTrack(it);
@@ -1301,7 +1301,8 @@ Int_t  AliAnalysisTaskJetCore::SelectTrigger(TList *list,Double_t minT,Double_t
       if(TMath::Abs(dphi)<TMath::Pi()-0.6) continue;
       if(tr->Pt()>ptmax){ ptmax=tr->Pt();
       index=iCount-1;
-      dif=dphi;  }}
+      //  dif=dphi; 
+      }}
   
       return index;
 
index 40e5654..9338e9b 100644 (file)
@@ -1037,13 +1037,13 @@ void AliAnalysisTaskJetProperties::FillJetProperties(TList *jetlist){
   if(fDebug > 2) printf("AliAnalysisTaskJetProperties::FillJetProperties() \n");
   
   for(Int_t iJet=0; iJet < jetlist->GetEntries(); iJet++){
-    Float_t JetPt;Float_t JetPhi;Float_t JetEta;Float_t JetE;
+    Float_t JetPt;Float_t JetPhi;Float_t JetEta; // Float_t JetE;
     AliAODJet *jet = dynamic_cast<AliAODJet*>(jetlist->At(iJet));
     if(!jet)continue;
     JetEta = jet->Eta();
     JetPhi = jet->Phi();
     JetPt  = jet->Pt();
-    JetE   = jet->E();
+    //    JetE   = jet->E();
     fh2EtaJet ->Fill(JetPt,JetEta);
     fh2PhiJet ->Fill(JetPt,JetPhi);
     fh2PtJet  ->Fill(JetPt,JetPt);
@@ -1064,7 +1064,8 @@ void AliAnalysisTaskJetProperties::FillJetProperties(TList *jetlist){
       if(fTrackType==kTrackUndef)continue;
        Float_t TrackEta=-99.0; Float_t TrackPt=-99.0; Float_t TrackPhi=-99.0;
        Float_t FF=-99.0;       Float_t DelEta=-99.0;  Float_t DelPhi=-99.0; 
-       Float_t DelR=-99.0;     Float_t AreaJ=-99.0;   Float_t Ksi=-99.0;
+       Float_t DelR=-99.0;     // Float_t AreaJ=-99.0;   
+       Float_t Ksi=-99.0;
        if(fTrackType==kTrackAOD){
          AliAODTrack *trackaod = dynamic_cast<AliAODTrack*>(fTrackListJet->At(j));
          if(!trackaod)continue;
@@ -1092,7 +1093,7 @@ void AliAnalysisTaskJetProperties::FillJetProperties(TList *jetlist){
        DelPhi      = TMath::Abs(JetPhi - TrackPhi);
        if(DelPhi>TMath::Pi())DelPhi = TMath::Abs(DelPhi-TMath::TwoPi());
        DelR        = TMath::Sqrt(DelEta*DelEta + DelPhi*DelPhi);
-       AreaJ       = TMath::Pi()*DelR*DelR;
+       // AreaJ       = TMath::Pi()*DelR*DelR;
        fh2EtaTrack ->Fill(JetPt,TrackEta);
        fh2PhiTrack ->Fill(JetPt,TrackPhi);
        fh2PtTrack  ->Fill(JetPt,TrackPt);
index 6617ade..e436197 100644 (file)
@@ -1247,9 +1247,9 @@ void AliAnalysisTaskJetChem::AliFragFuncHistosInvMass::FillFF(Float_t trackPt, F
  
   if(incrementJetPt) fh1JetPt->Fill(jetPt);    
   //fh3TrackPt->Fill(jetPt,invM,trackPt);//Fill(x,y,z)
-  invM = 0;
-  Double_t z = 0.;
-  if(jetPt>0) z = trackPt / jetPt;
+  //  invM = 0;
+  //  Double_t z = 0.;
+  // if(jetPt>0) z = trackPt / jetPt;
   // Double_t xi = 0;
   //if(z>0) xi = TMath::Log(1/z);