From: sgorbuno Date: Tue, 3 Nov 2009 10:36:57 +0000 (+0000) Subject: Compilation warnings fixed X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=42742c3754f3e9e8f9df5b0d867ee61b50b95b23;p=u%2Fmrichter%2FAliRoot.git Compilation warnings fixed --- diff --git a/HLT/BASE/util/AliHLTGlobalBarrelTrack.cxx b/HLT/BASE/util/AliHLTGlobalBarrelTrack.cxx index dd8b8e8468c..c36d7c67869 100644 --- a/HLT/BASE/util/AliHLTGlobalBarrelTrack.cxx +++ b/HLT/BASE/util/AliHLTGlobalBarrelTrack.cxx @@ -111,7 +111,6 @@ Double_t AliHLTGlobalBarrelTrack::GetPathLengthTo( Double_t x, Double_t b ) cons Double_t ex1 = TMath::Sqrt(1-ey1*ey1); - Double_t dx2 = dx * dx; Double_t ss = ey + ey1; Double_t cc = ex + ex1; diff --git a/HLT/ITS/AliHLTITSVertexerSPDComponent.cxx b/HLT/ITS/AliHLTITSVertexerSPDComponent.cxx index ccd5ba7f706..7d02e9113ec 100644 --- a/HLT/ITS/AliHLTITSVertexerSPDComponent.cxx +++ b/HLT/ITS/AliHLTITSVertexerSPDComponent.cxx @@ -221,12 +221,6 @@ int AliHLTITSVertexerSPDComponent::ReadConfigurationString( const char* argumen fDefRunVtx[2] = ( ( TObjString* )pTokens->At( i ) )->GetString().Atof(); HLTInfo( "Default run vertex is set to (%f,%f,%f)",fDefRunVtx[0], fDefRunVtx[1],fDefRunVtx[2] ); - for( int i=0; i<3; i++){ - fRunVtx[i] = fDefRunVtx[i]; - fRunVtxNew[i] = fDefRunVtx[i]; - } - fRunVtx[3] = 0.; - fRunVtxNew[3] = 0.; continue; } @@ -401,7 +395,7 @@ int AliHLTITSVertexerSPDComponent::DoEvent { //* process event - AliHLTUInt32_t maxBufferSize = size; + //AliHLTUInt32_t maxBufferSize = size; size = 0; // output size if (!IsDataEvent()) return 0; @@ -514,7 +508,7 @@ int AliHLTITSVertexerSPDComponent::DoEvent double y0 = cu.fY - vtxY; double z0 = cu.fZ - vtxZ; double bestR2 = 1.e10; - int bestDn=-1, bestBin =0; + int bestDn=-1, bestBinDn =0; double bestV[3]={0,0,0}; for( int icDn=0; icDn=0 ){ double w = 1./(1.+bestR2); - histX[bestBin]+=bestV[0]*w; - histY[bestBin]+=bestV[1]*w; - histZ[bestBin]+=bestV[2]*w; - histW[bestBin]+=w; - histN[bestBin]+=1; + histX[bestBinDn]+=bestV[0]*w; + histY[bestBinDn]+=bestV[1]*w; + histZ[bestBinDn]+=bestV[2]*w; + histW[bestBinDn]+=w; + histN[bestBinDn]+=1; } } }