]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/PHOSTasks/PHOS_PbPb/AliPHOSEPFlattener.h
moved CAF files to seperate directory
[u/mrichter/AliRoot.git] / PWGGA / PHOSTasks / PHOS_PbPb / AliPHOSEPFlattener.h
1 #ifndef ALIPHOSEPFLATTENER_H
2 #define ALIPHOSEPFLATTENER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 //  Class to perform flattening of the event plane distribution
10 //       It stores necessary parameterizations and apply when requested
11 //
12 //*-- Author: Dmitri Peressounko (RRC KI)
13
14 // --- ROOT system ---
15 class TH2 ;
16 #include "TNamed.h"
17
18 class AliPHOSEPFlattener : public TNamed {
19
20  public:
21   
22   AliPHOSEPFlattener() ;
23   AliPHOSEPFlattener(const char * name) ; //To separate different runs use names
24   AliPHOSEPFlattener(const AliPHOSEPFlattener & fl) ; 
25   virtual ~AliPHOSEPFlattener() ;
26   AliPHOSEPFlattener & operator = (const AliPHOSEPFlattener & flat);
27
28 public:
29
30   Double_t MakeFlat(Double_t oldPhi,Double_t centrality)const ; //Apply (centrality-dependent) flattening to oldPhi
31   void SetParameterization(TH2 * h) ;  //Set Parameterization to use (see code for the meaning of parameters
32
33 private:
34   Int_t fNCentrBins ; // Number of centrality bins
35   Int_t fNHarmonics ; // Number of harmonics used in parameterization
36   Int_t fNparam ;     // Total number of parameters (fNCentrBins*fNHarmonics)
37   Double32_t *fParam ;  //[fNparam][-1.,1.,16] array of flattening parameters
38
39   ClassDef(AliPHOSEPFlattener,1) 
40
41 } ;
42
43 #endif //  ALIPHOSEPFLATTENER_H