]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix compiler warnings
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Mar 2009 12:39:08 +0000 (12:39 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Mar 2009 12:39:08 +0000 (12:39 +0000)
TRD/AliTRDCalibraFillHisto.cxx
TRD/AliTRDcalibDB.cxx
TRD/AliTRDcalibDB.h
TRD/AliTRDdigitizer.cxx
TRD/AliTRDrawData.cxx

index 7c5768bb592707228c09c87109d26a21b69a6680..881837a1ad98ac4b3502ac2f21451550fce6abe3 100644 (file)
@@ -945,8 +945,8 @@ Bool_t AliTRDCalibraFillHisto::FindP1TrackPHtrackletV1(const AliTRDseedV1 *track
     //////////////////////////////
     // Check no shared clusters
     //////////////////////////////
-    for(int ic=AliTRDseedV1::kNtb; ic<AliTRDseedV1::kNclusters; ic++){
-      if((cl = tracklet->GetClusters(ic)))  crossrow = 1;
+    for(int icc=AliTRDseedV1::kNtb; icc<AliTRDseedV1::kNclusters; icc++){
+      if((cl = tracklet->GetClusters(icc)))  crossrow = 1;
     }
   }
   
index 17d79f3faf4e1610a90183ba4e1670fa7126b62e..f6ff74c88fc32b9f4210e47454aa529fe8ca408b 100644 (file)
@@ -943,6 +943,8 @@ const AliTRDCalPID *AliTRDcalibDB::GetPIDObject(AliTRDpidUtil::ETRDPIDMethod met
     return dynamic_cast<const AliTRDCalPID *>(GetCachedCDBObject(kIDPIDLQ));
   case AliTRDpidUtil::kNN: 
     return dynamic_cast<const AliTRDCalPID *>(GetCachedCDBObject(kIDPIDNN));
+  case AliTRDpidUtil::kESD:
+    return 0x0; // To avoid compiler warnings 
   }
 
   return 0x0;
@@ -1158,3 +1160,4 @@ Int_t AliTRDcalibDB::PadResponse(Double_t signal, Double_t dist
   }
 
 }
+
index f02167606bf72d6b0bc9bf21e0b7bd2ac0424566..ae68497b92d8ebdf98635d8f0a1423036854c580 100644 (file)
@@ -91,7 +91,7 @@ class AliTRDcalibDB : public TObject {
   // Related functions, these depend on calibration data
          Int_t                        PadResponse(Double_t signal, Double_t dist
                                                 , Int_t layer, Double_t *pad) const;
-  
+
  protected:
 
   // For caching see also implentation of GetCachedCDBObject in the .cxx file
index 67c9633d1f6499707142bc696118a9ed8bea52a7..dd75f254b69955c6b740c499e782f839aaf664c4 100644 (file)
@@ -284,8 +284,6 @@ void AliTRDdigitizer::Copy(TObject &d) const
   ((AliTRDdigitizer &) d).fCompress           = fCompress;
   ((AliTRDdigitizer &) d).fSDigits            = fSDigits;
   ((AliTRDdigitizer &) d).fMergeSignalOnly    = fMergeSignalOnly;
-                                       
-  AliTRDdigitizer& target = (AliTRDdigitizer &) d;
 
 }
 
index e75b1177646c215aed84c4fabc5055f68f062be8..30f1372e520087a03906a11237b0e09d336722db 100644 (file)
@@ -422,7 +422,7 @@ void AliTRDrawData::AssignStackMask(UInt_t *buf, Int_t nStack){
 }
 
 //_____________________________________________________________________________  
-Int_t AliTRDrawData::AddStackIndexWords(UInt_t *buf, Int_t nStack, Int_t nMax){
+Int_t AliTRDrawData::AddStackIndexWords(UInt_t *buf, Int_t /*nStack*/, Int_t nMax){
     // 
     // This function add stack index words and stack header when there is data for the stack
     //
@@ -497,6 +497,11 @@ Int_t AliTRDrawData::ProduceHcData(AliTRDarrayADC *digits, Int_t side, Int_t det
 
        Bool_t tracklet_on = fFee->GetTracklet();     // **new**   
 
+       // To avoid compiler warning
+        if (newSM) {
+          ;;
+       }
+
        // Check the nCol and nRow.
        if ((nCol == 144) && (nRow == 16 || nRow == 12)) {
        kCtype = (nRow-12) / 4;