X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSstatistics.h;h=29612b2e271810300823f26b6633dbfef488fb1c;hb=2afbf330dfe3ff395c3c99efc3830b52edaa3e72;hp=e904cfb7569914340d09099e734f27f38ce52242;hpb=e81897071a6c895e2796d84a2531f1385a0a1017;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSstatistics.h b/ITS/AliITSstatistics.h index e904cfb7569..29612b2e271 100644 --- a/ITS/AliITSstatistics.h +++ b/ITS/AliITSstatistics.h @@ -16,8 +16,8 @@ class AliITSstatistics : public TObject { public: AliITSstatistics(); AliITSstatistics(Int_t order); - AliITSstatistics(AliITSstatistics &source); // copy constructor - AliITSstatistics& operator=(AliITSstatistics &source); // operator= + AliITSstatistics(const AliITSstatistics &source); // copy constructor + AliITSstatistics& operator=(const AliITSstatistics &source); // operator= virtual ~AliITSstatistics(); void Reset(); void AddValue(Double_t x,Double_t w); @@ -27,27 +27,27 @@ class AliITSstatistics : public TObject { Double_t GetNth(Int_t order); Double_t GetMean() {// returns the mean return GetNth(1);}; - Int_t GetN(){// returns the number of entries + Int_t GetN() const{// returns the number of entries return fN; }; - Int_t GetOrder(){// returns the order of the moment of the distribution + Int_t GetOrder() const {// returns the order of the moment of the distribution return fOrder; }; - Double_t GetXN(Int_t order){// returns X^N - return fx[order-1]; + Double_t GetXN(Int_t order) const{// returns X^N + return fX[order-1]; }; - Double_t GetWN(Int_t order){// returns W^N - return fw[order-1]; + Double_t GetWN(Int_t order)const {// returns W^N + return fW[order-1]; }; Double_t GetRMS(); Double_t GetErrorMean(); Double_t GetErrorRMS(); private: - Double_t *fx; // fx array of x moments - Double_t *fw; // fw array of weight by moment - Int_t fN; // fN number of enetries - Int_t fOrder;// fOrder maximum allowed moment + Int_t fN; //fN number of enetries + Int_t fOrder;//fOrder maximum allowed moment + Double_t *fX; //[fOrder] fX array of x moments + Double_t *fW; //[fOrder] fW array of weight by moment ClassDef(AliITSstatistics,1)// A class to do simple statistics calculations };