//
}
+//_____________________________________________________________________________________________
+Double_t AliMillePedeRecord::GetWeight(Int_t pnt) const
+{
+ // get weight of point pnt
+ if (!fSize) {AliError("No data"); return 0;}
+ int cnt=0,point=0;
+ //
+ while(cnt<fSize) {
+ //
+ Double_t resid = fValue[cnt++];
+ while(!IsWeight(cnt)) cnt++;
+ if (point==pnt) return GetValue(cnt);;
+ cnt++;
+ while(!IsResidual(cnt) && cnt<fSize) cnt++;
+ point++;
+ }
+ return -1;
+ //
+}
+
//_____________________________________________________________________________________________
void AliMillePedeRecord::ExpandDtBuffer(Int_t bfsize)
{
Double_t GetLocalDeriv(Int_t pnt, Int_t indx) const;
Double_t GetResidual(Int_t pnt) const;
Double_t GetGloResWProd(Int_t indx) const;
+ Double_t GetWeight(Int_t indx) const;
//
protected:
Int_t GetDtBufferSize() const {return GetUniqueID()&0x0000ffff;}