]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliGausCorr.h
Add histos from all analyses to the output
[u/mrichter/AliRoot.git] / STEER / AliGausCorr.h
1 #ifndef ALIGAUSCORR_H
2 #define ALIGAUSCORR_H
3 /* Copyright(c) 2001-2002, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 ////////////////////////////////////////////////////////////////////////
9 // Class used to generate correlated gaussian numbers with mean
10 // zero and known covariance matrix.
11 // M.Masera 15.03.2001 9:30 - modified on 26.02.2002 17:40
12 ////////////////////////////////////////////////////////////////////////
13
14 #include <TMatrixD.h>
15 class TArrayD;
16
17
18 class AliGausCorr : public TObject 
19 {
20  public:
21   //
22   AliGausCorr();
23   AliGausCorr(const TMatrixD & cov, Int_t size);
24   AliGausCorr(const AliGausCorr & tgcorr);
25   virtual ~AliGausCorr();
26   void GetGaussN(TArrayD &vec) const;
27   TMatrixD GetSqrtMatrix() const { return *fCv;}
28   void PrintCv() const;
29   AliGausCorr & operator=(const AliGausCorr & tgcorr);
30   //
31  private:
32   //
33   Int_t fSize;   // number of correlated gaussian random numbers
34   TMatrixD *fCv; // 'square root' of the covariance matrix
35
36   ClassDef(AliGausCorr,1)  
37 };
38
39
40 #endif
41
42
43