virtual ~AliITSstatistics2();
void Reset();
void AddValue(Double_t y,Double_t x,Double_t w);
- void AddValue(Double_t y,Double_t x){AddValue(y,x,1.0);} // default weight
- void AddValue(Float_t y,Float_t x,Float_t w){
- AddValue((Double_t)y,(Double_t)x,(Double_t)w);} // Floating point version
- void AddValue(Float_t y,Float_t x){AddValue(y,x,1.0);}// default weight F.
Double_t GetXNth (Int_t order);
Double_t GetYNth (Int_t order);
Double_t GetYXNth(Int_t order);
};
Double_t GetXN (Int_t order){
// returns x^n
- return fx[order-1];
+ return fX[order-1];
};
Double_t GetYN (Int_t order){
// returns y^n
- return fy[order-1];
+ return fY[order-1];
};
Double_t GetYXN(Int_t order){
// returns (yx)^n
- return fyx[order-1];
+ return fYx[order-1];
};
Double_t GetWN (Int_t order){
// returns w^n (weight)
- return fw[order-1];
+ return fW[order-1];
};
Double_t GetRMSY();
Double_t GetRMSX();
Double_t FitToLine(Double_t &a,Double_t &b);
private:
- Double_t *fx; // array of sums of x^n
- Double_t *fyx; // array of sums of (xy)^n
- Double_t *fy; // array of sums of y^n
- Double_t *fw; // array of sums of w^n (weights)
Int_t fN; // number of enetries
- Int_t fOrder; // maximum moment of distributions (^n)
+ Int_t fOrder; // maximum moment of distributions (^n)
+ Double_t *fX; //[fOrder] array of sums of x^n
+ Double_t *fYx; //[fOrder] array of sums of (xy)^n
+ Double_t *fY; //[fOrder] array of sums of y^n
+ Double_t *fW; //[fOrder] array of sums of w^n (weights)
- ClassDef(AliITSstatistics2,1) //
+ ClassDef(AliITSstatistics2,1) //compute usueful statistics in 2D
};
#endif