27 fSize(0),fNGroups(0),fRunID(0),fGroupID(0),fIndex(0),fValue(0),fWeight(1) {SetUniqueID(0);}
31 TObject(src),fSize(src.fSize),fNGroups(src.fNGroups),fRunID(src.fRunID),fGroupID(0),fIndex(0),fValue(0),fWeight(src.fWeight)
48 for (
int i=0;i<rhs.
GetSize();i++) {
87 Double_t resid =
fValue[cnt++];
91 while(!
IsWeight(cnt)) {nLoc++;cnt++;}
98 printf(
"\n*** Point#%2d | Residual = %+.4e | Weight = %+.4e\n",point++,resid,weight);
100 for (
int i=0;i<nLoc;i++)
printf(
"[%5d] %+.4e|",indLoc[i],derLoc[i]);
printf(
"\n");
102 for (
int i=0;i<nGlo;i++)
printf(
"[%5d] %+.4e|",indGlo[i],derGlo[i]);
printf(
"\n");
114 double prodsum = 0.0;
118 Double_t resid =
fValue[cnt++];
125 for (
int i=nGlo;i--;)
if (indGlo[i]==indx) prodsum += resid*weight*derGlo[i];
148 if (pnt != point++)
continue;
149 for (
int i=nGlo;i--;)
if (indGlo[i]==indx)
return derGlo[i];
169 while(!
IsWeight(cnt)) {nLoc++;cnt++;}
172 if (pnt != point++)
continue;
173 for (
int i=nLoc;i--;)
if (indLoc[i]==indx)
return derLoc[i];
189 Double_t resid =
fValue[cnt++];
193 if (pnt != point++)
continue;
211 if (point==pnt)
return GetValue(cnt);;
225 Int_t *tmpI =
new Int_t[bfsize];
230 Double_t *tmpD =
new Double_t[bfsize];
243 UShort_t *tmpI =
new UShort_t[bfsize];
printf("Chi2/npoints = %f\n", TMath::Sqrt(chi2/npoints))
void SetGrBufferSize(Int_t sz)
void Print(const Option_t *opt="") const
void ExpandDtBuffer(Int_t bfsize)
Double_t GetWeight() const
Double_t * GetValue() const
Int_t GetGrBufferSize() const
void GetIndexValue(Int_t i, Int_t &ind, Double_t &val) const
Bool_t IsWeight(Int_t i) const
Bool_t IsResidual(Int_t i) const
void SetDtBufferSize(Int_t sz)
void AddIndexValue(Int_t ind, Double_t val)
virtual ~AliMillePedeRecord()
Int_t GetDtBufferSize() const
Double_t GetResidual(Int_t pnt) const
Double_t GetGlobalDeriv(Int_t pnt, Int_t indx) const
Double_t GetLocalDeriv(Int_t pnt, Int_t indx) const
AliMillePedeRecord & operator=(const AliMillePedeRecord &rhs)
#define AliError(message)
void ExpandGrBuffer(Int_t bfsize)
Double_t GetGloResWProd(Int_t indx) const
Int_t GetGroupID(Int_t i) const