]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSBeamTestDigSPD.cxx
warnings with gcc 4.3.2
[u/mrichter/AliRoot.git] / ITS / AliITSBeamTestDigSPD.cxx
index 0ae2e74f8e1abfc538c523af4c05ce7cb9156dfc..62212fb518c827c9d27dcfda4a657347922777a5 100644 (file)
@@ -67,9 +67,10 @@ void AliITSBeamTestDigSPD::Exec(Option_t* /*opt*/)
     for(Int_t nlad=1;nlad<=fITSgeom->GetNladders(nlay);nlad++){
       for(Int_t ndet=1;ndet<=fITSgeom->GetNdetectors(nlay);ndet++){
        Int_t index=fITSgeom->GetModuleIndex(nlay,nlad,ndet);
-       if(fITSgeom->GetModuleTypeName(index)=="kSPD") nspd++;
-       if(fITSgeom->GetModuleTypeName(index)=="kSDD") nsdd++;
-       if(fITSgeom->GetModuleTypeName(index)=="kSSD") nssd++;
+       TString dtype(fITSgeom->GetModuleTypeName(index));
+       if(dtype.Contains("SPD")) nspd++;
+       if(dtype.Contains("SDD")) nsdd++;
+       if(dtype.Contains("SSD")) nssd++;
       }
     }
   }