Corrected warnings
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Oct 2010 09:18:21 +0000 (09:18 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Oct 2010 09:18:21 +0000 (09:18 +0000)
ITS/AliITSPlaneEffSPD.cxx
ITS/AliITSvBeamTestITS04.h
PHOS/AliPHOSAnalyze.cxx
PHOS/AliPHOSCpvRecPoint.cxx
PHOS/AliPHOSPIDv0.cxx
PMD/AliPMDCalibGain.cxx
STEER/AliAODPid.cxx
STEER/AliSurveyObj.cxx
TPC/AliTPCCalibCE.cxx

index 18d5d0a..be258af 100644 (file)
@@ -339,6 +339,7 @@ if (im>=kNModule || ic>=kNChip)
    if(Kfound) fFound[key]++;
    return kTRUE;
  }
+ return kFALSE;
 }
 //_________________________________________________________________________
 UInt_t AliITSPlaneEffSPD::GetChipFromCol(const UInt_t col) const {
index b9d5ba4..11e4e5c 100644 (file)
@@ -33,11 +33,11 @@ class AliITSvBeamTestITS04 : public AliITS {
     virtual void StepManager();
     //for writing out geometry set .det write 
     virtual void   SetWriteDet(Bool_t det=kTRUE){fGeomDetOut = det;}
-    virtual void   SetWriteDet(const char *f){fWrite[60]=0;strncpy(fWrite,f,59);
+    virtual void   SetWriteDet(const char *f){fWrite[59]=0;strncpy(fWrite,f,59);
                              fGeomDetOut = kTRUE;}// set write file 
     //for reading geometry (JC) set .det read
     virtual void   SetReadDet(Bool_t det=kTRUE){fGeomDetIn = det;}
-    virtual void   SetReadDet(const char *f){fRead[60]=0;strncpy(fRead,f,59);
+    virtual void   SetReadDet(const char *f){fRead[59]=0;strncpy(fRead,f,59);
                          fGeomDetIn = kTRUE;} // set read file
  public:
     void AddSPDGeometry(TGeoVolume *moth) const;
index 51384ca..f073163 100644 (file)
@@ -476,7 +476,7 @@ void AliPHOSAnalyze::Ls(){
       message += "\n" ;
     }
   }
-  AliInfo(Form(message.Data())) ;  
+  AliInfo(message.Data()) ;  
 }
 //____________________________________________________________________________
  void AliPHOSAnalyze::InvariantMass()
index 5f3a4c5..b5623b6 100644 (file)
@@ -367,7 +367,7 @@ void AliPHOSCpvRecPoint::Print(const Option_t *) const
   TString message ; 
   message  =  "AliPHOSCpvRecPoint: " ;
   message +=  "Digits #   " ;
-  AliInfo(Form(message.Data())) ; 
+  AliInfo(message.Data()) ; 
   
   Int_t iDigit;
 
index e281da8..16fc7c6 100644 (file)
@@ -419,7 +419,7 @@ void AliPHOSPIDv0::PrintRecParticles(Option_t * option)
     for (index = 0 ; index < fRecParticles->GetEntries() ; index++) {
       AliPHOSRecParticle * rp = (AliPHOSRecParticle * ) fRecParticles->At(index) ;       
       
-      Text_t particle[11];
+      Text_t particle[100];
       switch(rp->GetType()) {
       case  AliPHOSFastRecParticle::kNEUTRALEMFAST:
        strcpy( particle, "NEUTRAL EM FAST");
index 66b77b6..e800f59 100644 (file)
@@ -205,7 +205,7 @@ Int_t AliPMDCalibGain::ExtractHotChannel(const Char_t *rootFile)
                {
                  for (Int_t icol = 0; icol < kMaxCol; icol++)
                    {
-                     fHotFlag[idet][kMaxSMN][kMaxRow][kMaxCol] = 0.;
+                     fHotFlag[idet][ismn][irow][icol] = 0.;
                    }
                }
            }
index a8af9e8..ccebfca 100644 (file)
@@ -31,6 +31,7 @@ ClassImp(AliAODPid)
 AliAODPid::AliAODPid():
     fITSsignal(0), 
     fTPCsignal(0),
+    fTPCsignalN(0),
     fTPCmomentum(0),
     fTRDnSlices(0),
     fTRDslices(0x0),
@@ -57,6 +58,7 @@ AliAODPid::AliAODPid(const AliAODPid& pid) :
   TObject(pid),
   fITSsignal(pid.fITSsignal), 
   fTPCsignal(pid.fTPCsignal),
+  fTPCsignalN(pid.fTPCsignalN),
   fTPCmomentum(pid.fTPCmomentum),
   fTRDnSlices(pid.fTRDnSlices),
   fTRDslices(0x0),
index c40adad..0afda08 100644 (file)
@@ -510,14 +510,14 @@ Int_t AliSurveyObj::ListReports(TString detector, Int_t year,
   Int_t numberEntries = res->GetEntries();
 
   if (numberEntries > 0) {
-    Printf(Form("%d reports found:", numberEntries));
+    Printf("%d reports found:", numberEntries);
     for (int i = 0; i < res->GetEntries(); ++i) {
       fn = res->GetFileNamePath(i);
-      Printf(Form("Detector:%s\tYear:%d\tEDMS Report Number:%d\tVersion:%d",
+      Printf("Detector:%s\tYear:%d\tEDMS Report Number:%d\tVersion:%d",
                  FileNamePathToDetector(fn).Data(),
                  FileNamePathToReportYear(fn),
                  FileNamePathToReportNumber(fn),
-                 FileNamePathToReportVersion(fn)));
+                 FileNamePathToReportVersion(fn));
     }
     delete res;
     return numberEntries;
index 8ab226d..4b8a809 100644 (file)
@@ -2280,12 +2280,12 @@ void AliTPCCalibCE::FindLocalMaxima(TObjArray * const arrObj, Double_t timestamp
         if(side==0){
           gxyz[2]=gxyz[2]-(TMath::Sqrt((gxyz[0]-globmir[0])*(gxyz[0]-globmir[0])
                                        +(gxyz[1]-globmir[1])*(gxyz[1]-globmir[1])
-                                       +(gxyz[2]-globmir[2])*(gxyz[2]-globmir[3])+raylength))*vdrift*TMath::Power(10.,-6.)/30000;
+                                       +(gxyz[2]-globmir[2])*(gxyz[2]-globmir[2])+raylength))*vdrift*TMath::Power(10.,-6.)/30000;
         }
         else {
           gxyz[2]=gxyz[2]-(TMath::Sqrt((gxyz[0]-globmir[0])*(gxyz[0]-globmir[0])
                                        +(gxyz[1]-globmir[1])*(gxyz[1]-globmir[1])
-                                       +(gxyz[2]-globmir[2])*(gxyz[2]-globmir[3])+raylength))*vdrift*TMath::Power(10.,-6.)/30000;
+                                       +(gxyz[2]-globmir[2])*(gxyz[2]-globmir[2])+raylength))*vdrift*TMath::Power(10.,-6.)/30000;
         }
       }