X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSBeamTestDigSSD.cxx;h=52c83a17477114c7d0fdb260dd517972dc6cfa32;hb=ea2e835e9f3c16e527ee28ea045e942e02c085bd;hp=9c347534fcca056e121792df24b7e0b018785a73;hpb=a8d73343c5162672722e65c07a1783a6ffaf14c2;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSBeamTestDigSSD.cxx b/ITS/AliITSBeamTestDigSSD.cxx index 9c347534fcc..52c83a17477 100644 --- a/ITS/AliITSBeamTestDigSSD.cxx +++ b/ITS/AliITSBeamTestDigSSD.cxx @@ -57,9 +57,10 @@ void AliITSBeamTestDigSSD::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++; } } } @@ -115,7 +116,7 @@ void AliITSBeamTestDigSSD::Exec(Option_t* /*opt*/) { } delete [] newdigits; - delete idig; + delete [] idig; }