1 #ifndef ALIITSSTATISTICS_H
2 #define ALIITSSTATISTICS_H
3 //////////////////////////////////////////////////////////////////////////
4 // Alice ITS first detector alignment program. //
6 // version: 0.0.0 Draft. //
7 // Date: April 18 1999 //
8 // By: Bjorn S. Nilsen //
10 //////////////////////////////////////////////////////////////////////////
13 class AliITSstatistics : public TObject {
18 AliITSstatistics(Int_t order);
19 AliITSstatistics(AliITSstatistics &source); // copy constructor
20 AliITSstatistics& operator=(AliITSstatistics &source); // operator=
21 virtual ~AliITSstatistics();
23 void AddValue(Double_t x,Double_t w);
24 void AddValue(Double_t x){
25 // Default weight of 1
28 void AddValue(Float_t x,Float_t w){
30 AddValue((Double_t)x,(Double_t)w);
32 void AddValue(Float_t x){
33 // floats default weight of 1
34 AddValue((Double_t)x,(Double_t)1.0);}
35 Double_t GetNth(Int_t order);
41 // returns the number of entries
45 // returns the order of the moment of the distribution
49 Double_t GetXN(Int_t order){
53 Double_t GetWN(Int_t order){
58 Double_t GetErrorMean();
59 Double_t GetErrorRMS();
62 Double_t *fx; // fx array of x moments
63 Double_t *fw; // fw array of weight by moment
64 Int_t fN; // fN number of enetries
65 Int_t fOrder;// fOrder maximum allowed moment
67 ClassDef(AliITSstatistics,1)// A class to do simple statistics calculations