Backward compatibility with old qthre in OCDB:
authordibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Apr 2008 08:42:18 +0000 (08:42 +0000)
committerdibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Apr 2008 08:42:18 +0000 (08:42 +0000)
previous: 7 qthre (one for each chamber)
now      : 7*6 qthre (one for each sector)

HMPID/AliHMPIDTracker.cxx

index bd49913..86bd4f3 100644 (file)
@@ -128,8 +128,9 @@ Int_t AliHMPIDTracker::ReconHiddenTrk(Int_t iCh,Int_t iHVsec,AliESDtrack *pTrk,T
   AliHMPIDReconHTA reconHTA;                                                                          //instance of reconstruction class, nothing important in ctor
   Double_t nmean=((TF1*)pNmean->At(3*iCh))->Eval(0);                                            //C6F14 Nmean for this chamber
   Double_t qthre = 0;
-  if(pQthre->GetEntriesFast()==7) qthre=((TF1*)pQthre->At(iCh))->Eval(0);                                             //C6F14 Nmean for this chamber
-  else  qthre=((TF1*)pQthre->At(6*iCh+iHVsec))->Eval(0); 
+  if(pQthre->GetEntriesFast()==AliHMPIDParam::kMaxCh+1)                                         //
+    qthre=((TF1*)pQthre->At(iCh))->Eval(0);                                                     //just for backward compatibi
+  else  qthre=((TF1*)pQthre->At(6*iCh+iHVsec))->Eval(0);                                        //
   if(pCluLst->GetEntriesFast()<4) return 1;                                                     //min 4 clusters (3 + 1 mip) to find a ring! 
   if(reconHTA.CkovHiddenTrk(pTrk,pCluLst,nmean,qthre)) return 0;                                   //search for track parameters and Cerenkov angle of this track
   else return 1;                                                                                // error code: 0=no error,1=fit not performed;