]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix coverity
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Sep 2011 06:08:50 +0000 (06:08 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Sep 2011 06:08:50 +0000 (06:08 +0000)
PWG1/TRD/AliTRDcheckTRK.cxx
PWG1/TRD/AliTRDresolution.cxx

index c71c10f732a12b3f05d47950a7de9f6c3a6d8791..de7d377d19048d656be52e9c3336c132463e2ba2 100644 (file)
@@ -130,7 +130,7 @@ Bool_t AliTRDcheckTRK::PropagateKalman(AliTRDtrackV1 &t)
   AliExternalTrackParam *ref(NULL);
   if(!(ref = t.GetTrackIn())){
     printf("E - AliTRDcheckTRK::PropagateKalman :: Track did not entered TRD fiducial volume.\n");
-    return NULL;
+    return kFALSE;
   }
   if(ref->Pt()<1.e-3){printf("small refpt\n"); return kFALSE;}
 
index 7756e82c4609b0d253c15d4ffda683ac62c42ae9..6cb78d37b85a9cf0268de1e3e7864a12f4319628 100644 (file)
@@ -2050,7 +2050,7 @@ void AliTRDresolution::GetLandauMpvFwhm(TF1 * const f, Float_t &mpv, Float_t &xm
 //________________________________________________________
 AliTRDresolution::AliTRDresolutionProjection::AliTRDresolutionProjection()
   :fH(NULL)
-  ,fNrebin(NULL)
+  ,fNrebin(0)
   ,fRebinX(NULL)
   ,fRebinY(NULL)
 {
@@ -2121,7 +2121,7 @@ TH2* AliTRDresolution::AliTRDresolutionProjection::Projection2D(const Int_t nsta
   for(Int_t iy(0); iy<ny; iy++){
     for(Int_t ix(0); ix<nx; ix++){
       h = fH->ProjectionZ(Form("%s_z", h2->GetName()), ix*dxBin+1, (ix+1)*dxBin+1, iy*dyBin+1, (iy+1)*dyBin+1);
-      Int_t ne(h->Integral());
+      Int_t ne((Int_t)h->Integral());
       if(ne<nstat/2){
         h2->SetBinContent(ix+1, iy+1, -999);
         h2->SetBinError(ix+1, iy+1, 1.);