Warnings corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Oct 2009 09:41:09 +0000 (09:41 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Oct 2009 09:41:09 +0000 (09:41 +0000)
JETAN/AliAnalysisTaskJets.cxx
JETAN/AliFastJetFinder.cxx
JETAN/AliJetAODFillUnitArrayEMCalDigits.cxx
JETAN/AliJetBkg.cxx
JETAN/AliJetESDFillUnitArrayEMCalDigits.cxx
JETAN/AliJetHadronCorrectionv0.cxx
JETAN/AliJetHadronCorrectionv1.h
JETAN/AliJetUnitArray.cxx
JETAN/AliUA1JetFinderV2.cxx

index 375c85a..e860031 100644 (file)
@@ -54,7 +54,8 @@ AliAnalysisTaskJets::AliAnalysisTaskJets():
   fAODExtension(0x0),
   fListOfHistos(0x0),
   fChain(0x0),
-  fOpt(0)
+  fOpt(0),
+  fReadAODFromOutput(0)
 {
   // Default constructor
 }
index 7a9cd44..6db9ada 100644 (file)
@@ -266,8 +266,8 @@ void AliFastJetFinder::FindJets()
              if(ipart==ind[i]){
                TRefArray* trackArray = (TRefArray*)uArray->GetUnitTrackRef();
                Int_t tracksInCell = trackArray->GetEntries();
-               for(int j=0;j<tracksInCell;j++){
-                 AliAODTrack * track = (AliAODTrack*)trackArray->At(j);
+               for(int ji = 0; ji < tracksInCell; ji++){
+                 AliAODTrack * track = (AliAODTrack*)trackArray->At(ji);
                  aodjet.AddTrack(track);
                }
 
index 0b4151d..869d7c0 100755 (executable)
@@ -194,12 +194,11 @@ void AliJetAODFillUnitArrayEMCalDigits::Exec(Option_t* const /*option*/)
        double ptot = 0;
        for(int itrack = 0; itrack <  matched->GetSize(); itrack++)
          {
-           const short index = matched->At(itrack);
-           if (index>-1)
+           const short indexS = matched->At(itrack);
+           if (indexS>-1)
              { 
-               AliAODTrack *track = fAOD->GetTrack(index);
+               AliAODTrack *track = fAOD->GetTrack(indexS);
                ptot += track->P();
-               //printf("aod-track p=%f \n",track->P() );      
              }
          }
        
@@ -262,7 +261,7 @@ void AliJetAODFillUnitArrayEMCalDigits::Exec(Option_t* const /*option*/)
 
     for(Int_t j = beg; j < nclus; j++) { // loop over clusters
       // Retrieve cluster from aod
-      AliAODCaloCluster *fClus = (AliAODCaloCluster *) caloClusters->At(j) ;
+      fClus = (AliAODCaloCluster *) caloClusters->At(j) ;
 
       // Get the cluster info
 
@@ -306,12 +305,11 @@ void AliJetAODFillUnitArrayEMCalDigits::Exec(Option_t* const /*option*/)
          double ptot = 0;
          for(int itrack = 0; itrack <  matched->GetSize(); itrack++)
            {
-             const short index = matched->At(itrack);
-             if (index>-1)
+             const short indexS = matched->At(itrack);
+             if (indexS>-1)
                {       
-                 AliAODTrack *track = fAOD->GetTrack(index);
+                 AliAODTrack *track = fAOD->GetTrack(indexS);
                  ptot += track->P();
-                 //printf("aod-track p=%f \n",track->P() );    
                }
            }
        
index 54ce715..f160ade 100644 (file)
@@ -290,7 +290,7 @@ Float_t AliJetBkg::BkgRemoveJetLeading(TClonesArray* fAODJets)
     }// end unit array loop          
   
 
-  Float_t areasum=areasum=accEMCal-acc*jetarea1-acc1*jetarea2;
+  Float_t areasum = accEMCal-acc*jetarea1-acc1*jetarea2;
   if(debug)cout<<"pt sum   "<<sumPt<<" area  "<<areasum<<endl;
    
   if(nJ>0) rhoback=sumPt/areasum;
index 199d64d..d8581d2 100755 (executable)
@@ -252,7 +252,7 @@ void AliJetESDFillUnitArrayEMCalDigits::Exec(Option_t* const /*option*/)
 
     for(Int_t j = beg; j < nclus; j++) { // loop over clusters
       // Retrieve cluster from esd
-      AliESDCaloCluster *fClus = (AliESDCaloCluster *) caloClusters->At(j) ;
+      fClus = (AliESDCaloCluster *) caloClusters->At(j) ;
 
       // Get the cluster info
 //(not used ?)      Float_t energy         = fClus->E() ;
index 5d65d6b..e9bf549 100644 (file)
@@ -59,7 +59,7 @@ AliJetHadronCorrectionv0::Instance()
 }
 
 Double_t 
-AliJetHadronCorrectionv0::GetEnergy(Double_t pmom, Double_t eta, Int_t gid)
+AliJetHadronCorrectionv0::GetEnergy(Double_t pmom, Double_t eta, Int_t /*gid*/)
 {
   Int_t iEta=0; // index 
   Double_t etaw = TMath::Abs(eta);
index b837319..69daa8f 100644 (file)
@@ -27,7 +27,7 @@ class AliJetHadronCorrectionv1 : public AliJetHadronCorrection
   void TrackPositionEMCal(AliAODTrack* track,Double_t &eta, Double_t &phi);
 
  protected:
-  AliJetHadronCorrectionv1() {;}
+  AliJetHadronCorrectionv1():fSamplingFraction(0) {;}
   AliJetHadronCorrectionv1(const char *name, const char *title);
 
  private:
index 28ffcd6..4daa190 100644 (file)
@@ -60,7 +60,7 @@ AliJetUnitArray::AliJetUnitArray():
   // Default constructor
 }  
 
-AliJetUnitArray::AliJetUnitArray(Int_t absId, Int_t esdId, Float_t eta, Float_t phi, Float_t en, Float_t Deta, Float_t Dphi, AliJetFinderUnitDetectorFlagType_t det, AliJetFinderUnitFlagType_t inout, AliJetFinderUnitCutFlagType_t cut, AliJetFinderUnitCutFlagType_t cut2, AliJetFinderUnitSignalFlagType_t signal,Float_t mass, Int_t clusId):
+AliJetUnitArray::AliJetUnitArray(Int_t absId, Int_t esdId, Float_t eta, Float_t phi, Float_t en, Float_t Deta, Float_t Dphi, AliJetFinderUnitDetectorFlagType_t det, AliJetFinderUnitFlagType_t inout, AliJetFinderUnitCutFlagType_t cut, AliJetFinderUnitCutFlagType_t cut2, AliJetFinderUnitSignalFlagType_t /*signal*/,Float_t mass, Int_t clusId):
   fUnitEnergy(en),
   fUnitEta(eta),
   fUnitPhi(phi),
index 074dd4b..f1d92d2 100644 (file)
@@ -1149,7 +1149,7 @@ void AliUA1JetFinderV2::SubtractBackg(const Int_t& nIn, const Int_t&nJ, Float_t&
   
   //calculate energy inside and outside cones
   AliUA1JetHeaderV1* header = (AliUA1JetHeaderV1*) fHeader;
-  Int_t              fOpt = fReader->GetReaderHeader()->GetDetector();
+  fOpt = fReader->GetReaderHeader()->GetDetector();
   fDebug = fReader->GetReaderHeader()->GetDebug();
   Float_t rc= header->GetRadius();
   Float_t etIn[30];