]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HMPID/AliHMPIDTracker.cxx
Coverity fix
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDTracker.cxx
index 1405f1bbc5462d289c3c644eda2753af44dfaff0..2d5e3fd8639fd211ad5d14bc21e807dbf0807dca 100644 (file)
@@ -155,7 +155,7 @@ Int_t AliHMPIDTracker::Recon(AliESDEvent *pEsd,TObjArray *pClus,TObjArray *pNmea
   Int_t nMipClusTot=0;
   
   Double_t qthre = 0;   Double_t nmean=0; Int_t hvsec=0;
-  Int_t nClusCh[AliHMPIDParam::kMaxCh+1];
+//  Int_t nClusCh[AliHMPIDParam::kMaxCh+1];
 
   Bool_t tsRight = kTRUE;
   
@@ -171,7 +171,8 @@ Int_t AliHMPIDTracker::Recon(AliESDEvent *pEsd,TObjArray *pClus,TObjArray *pNmea
   for(Int_t iTrk=0;iTrk<pEsd->GetNumberOfTracks();iTrk++){                                        //loop on the ESD tracks in the event
            
     //    Double_t bestChi2=99999;chi2=99999;                                                     //init. track matching params
-    Double_t dmin=999999,bz=0,distCut=1,distParams[5]={1};
+//    Double_t dmin=999999,bz=0,distCut=1,distParams[5]={1};
+    Double_t dmin=999999,distCut=1,distParams[5]={1};
 
     Bool_t isOkDcut=kFALSE;
     Bool_t isOkQcut=kFALSE;
@@ -190,7 +191,7 @@ Int_t AliHMPIDTracker::Recon(AliESDEvent *pEsd,TObjArray *pClus,TObjArray *pNmea
     AliHMPIDtrack *hmpTrkConstrained = 0;                                                         //create a hmpid track to be used for propagation and matching 
     hmpTrk->Set(ftrack->GetTPCOut()->GetX(), ftrack->GetTPCOut()->GetAlpha(),ftrack->GetTPCOut()->GetParameter(), ftrack->GetTPCOut()->GetCovariance());
     //
-    bz=AliTracker::GetBz();
+    //bz=AliTracker::GetBz();
           
     //initial flags for HMPID ESD infos    
     pTrk->SetHMPIDtrk(0,0,0,0);                                                                //no intersection found
@@ -208,7 +209,7 @@ Int_t AliHMPIDTracker::Recon(AliESDEvent *pEsd,TObjArray *pClus,TObjArray *pNmea
     
     TClonesArray *pMipCluLst=(TClonesArray *)pClus->At(ipCh);                                   //get the list of clusters
     nMipClusTot = pMipCluLst->GetEntries();                                                     //total number of clusters in the given chamber
-    nClusCh[ipCh] = nMipClusTot;
+   // nClusCh[ipCh] = nMipClusTot;
     
     if(nMipClusTot==0) {delete hmpTrk;hmpTrk=0x0;continue;}