]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coverity
authorfronchet <fronchet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Sep 2011 07:10:38 +0000 (07:10 +0000)
committerfronchet <fronchet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Sep 2011 07:10:38 +0000 (07:10 +0000)
HLT/global/AliHLTGlobalTrackMatcher.h
HLT/global/AliHLTGlobalTrackMatcherComponent.cxx

index a822a75e8f1ffca3127b7c5a894cbdd99b616a6e..74de6f1e3edc156af01ef7e979f72b63f219d69d 100644 (file)
@@ -150,7 +150,7 @@ Int_t AliHLTGlobalTrackMatcher::MatchTrackToEMCalClusters( AliExternalTrackParam
     if(TMath::Abs(track->Eta()-vec.Eta())>0.3) continue; 
     
     AliExternalTrackParam *trkParam = new AliExternalTrackParam(*track);//Retrieve the starting point every time before the extrapolation
-    Double_t trkPos[3];
+    Double_t trkPos[3] = {0, 0, 0};
     Double_t alpha =  ((int)(vec.Phi()*TMath::RadToDeg()/20)+0.5)*20*TMath::DegToRad();
     vec.RotateZ(-alpha); //Rotate the cluster to the local extrapolation coordinate system
     trkParam->Rotate(alpha); //Rotate the track to the same local extrapolation system
index 45888f5bb4c694e219bea0fcb7d723be85487bbd..fae28e9283572c08fe904aa687bea89085fc7bcf 100644 (file)
@@ -281,7 +281,7 @@ int AliHLTGlobalTrackMatcherComponent::ScanConfigurationArgument(int argc, const
   if (argument.CompareTo("-method")==0) {
     if (++i>=argc) return -EPROTO;
     argument=argv[i];
-    fMethod=argument.Atof(); // 
+    fMethod=argument.Atoi(); // 
     return 2;
   }