X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=ITS%2FAliITSstatistics.h;h=e904cfb7569914340d09099e734f27f38ce52242;hp=b23485f9cc37ee13ed3052ddb26a1f89d02ee967;hb=e81897071a6c895e2796d84a2531f1385a0a1017;hpb=452a64c6f9f0f9fb52b11f9d589f96670d9d3adc diff --git a/ITS/AliITSstatistics.h b/ITS/AliITSstatistics.h index b23485f9cc3..e904cfb7569 100644 --- a/ITS/AliITSstatistics.h +++ b/ITS/AliITSstatistics.h @@ -21,39 +21,24 @@ class AliITSstatistics : public TObject { virtual ~AliITSstatistics(); void Reset(); void AddValue(Double_t x,Double_t w); - void AddValue(Double_t x){ - // Default weight of 1 - AddValue(x,1.0); - } - void AddValue(Float_t x,Float_t w){ - //float - AddValue((Double_t)x,(Double_t)w); - } - void AddValue(Float_t x){ - // floats default weight of 1 - AddValue((Double_t)x,(Double_t)1.0);} + void AddValue(Double_t x){ Double_t weight=1.0; AddValue(x,weight);} // Default weight of 1 + void AddValue(Float_t x,Float_t w){AddValue((Double_t)x,(Double_t)w);} //float + void AddValue(Float_t x){Float_t weight=1.0; AddValue(x,weight);} // floats default weight of 1 Double_t GetNth(Int_t order); - Double_t GetMean() { - // returns the mean - return GetNth(1); - }; - Int_t GetN(){ - // returns the number of entries - return fN; - }; - Int_t GetOrder(){ - // 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 GetWN(Int_t order){ - // returns W^N - return fw[order-1]; - }; + Double_t GetMean() {// returns the mean + return GetNth(1);}; + Int_t GetN(){// returns the number of entries + return fN; + }; + Int_t GetOrder(){// 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 GetWN(Int_t order){// returns W^N + return fw[order-1]; + }; Double_t GetRMS(); Double_t GetErrorMean(); Double_t GetErrorRMS();