]>
Commit | Line | Data |
---|---|---|
284050f7 | 1 | #ifndef ALIMATHBASE_H |
2 | #define ALIMATHBASE_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | ||
7 | ||
8 | #include "TObject.h" | |
f6659a9d | 9 | #include "TVectorD.h" |
10 | #include "TMatrixD.h" | |
284050f7 | 11 | |
f6659a9d | 12 | class TH1F; |
284050f7 | 13 | |
14 | class AliMathBase : public TObject | |
15 | { | |
16 | public: | |
17 | AliMathBase(); | |
18 | virtual ~AliMathBase(); | |
19 | static void EvaluateUni(Int_t nvectors, Double_t *data, Double_t &mean, Double_t &sigma, Int_t hh); | |
20 | static void EvaluateUniExternal(Int_t nvectors, Double_t *data, Double_t &mean, Double_t &sigma, Int_t hh, Float_t externalfactor=1); | |
21 | static Int_t Freq(Int_t n, const Int_t *inlist, Int_t *outlist, Bool_t down); | |
f6659a9d | 22 | static void TruncatedMean(TH1F * his, TVectorD *param, Float_t down=0, Float_t up=1.0, Bool_t verbose=kFALSE); |
23 | static void LTM(TH1F * his, TVectorD *param=0 , Float_t fraction=1, Bool_t verbose=kFALSE); | |
24 | static Double_t FitGaus(TH1F* his, TVectorD *param=0, TMatrixD *matrix=0, Float_t xmin=0, Float_t xmax=0, Bool_t verbose=kFALSE); | |
5608e15a | 25 | static Double_t FitGaus(Int_t size, Float_t *arr, Float_t firstBinX, Float_t binWidth=1, TVectorD *param=0, TMatrixD *matrix=0, Float_t xmin=0, Float_t xmax=0, Bool_t verbose=kFALSE); |
26 | ||
27 | // | |
28 | // TestFunctions: | |
29 | // | |
30 | static void TestGausFit(Int_t nhistos=5000); | |
f6659a9d | 31 | |
284050f7 | 32 | ClassDef(AliMathBase,0) // Various mathematical tools for physics analysis - which are not included in ROOT TMath |
33 | ||
34 | }; | |
35 | #endif |