From: sgorbuno Date: Sat, 12 Mar 2011 02:15:54 +0000 (+0000) Subject: coverity warnings 15585 15383 11303 fixed X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=0f62a40a17317f3ebdc26f5a76b1dc875f93e866;p=u%2Fmrichter%2FAliRoot.git coverity warnings 15585 15383 11303 fixed --- diff --git a/HLT/ITS/clusterfinders/AliHLTITSClusterFinderSPD.cxx b/HLT/ITS/clusterfinders/AliHLTITSClusterFinderSPD.cxx index 3a5cdee623b..744c435cd21 100644 --- a/HLT/ITS/clusterfinders/AliHLTITSClusterFinderSPD.cxx +++ b/HLT/ITS/clusterfinders/AliHLTITSClusterFinderSPD.cxx @@ -120,6 +120,13 @@ AliHLTITSClusterFinderSPD::AliHLTITSClusterFinderSPD( const AliHLTITSClusterFind fBin2Signal(0) { // dummy + for (Int_t m=0; m<2200; m++) { + fNdet[m] = 0; + fNlayer[m] = 0; + } + + for (Int_t m=0; m & clus //Error("ClustersSPD","SPD Too big cluster !\n"); continue; } + idxBins[0] = 0; for( int i=0; i & clus y -= fHwSPD; z -= fHlSPD; - Float_t hit[5]; //y,z,sigma(y)^2, sigma(z)^2, charge + Float_t hit[6]; //y,z,sigma(y)^2, sigma(z)^2, charge { Double_t loc[3]={y,0.,z},trk[3]={0.,0.,0.}; mT2L->MasterToLocal(loc,trk); @@ -298,6 +306,7 @@ Int_t AliHLTITSClusterFinderSPD::ClustersSPD( std::vector & clus hit[2] = fYpitchSPD*fYpitchSPD/12.; hit[3] = fZ1pitchSPD*fZ1pitchSPD/12.; hit[4] = 1.; + hit[5] = 0; Int_t info[3] = {ymax-ymin+1,zmax-zmin+1,fNlayer[iModule]}; Int_t label[4]={-2,-2,-2, fNdet[iModule] };