]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/PWGGAUtils/AliEPFlattener.h
Fix the trigger-cluster matching and bad triggered events rejection, fix problem...
[u/mrichter/AliRoot.git] / PWGGA / PWGGAUtils / AliEPFlattener.h
1 #ifndef ALIEPFLATTENER_H
2 #define ALIEPFLATTENER_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 AliEPFlattener : public TNamed {
19
20  public:
21   
22   AliEPFlattener() ;
23   AliEPFlattener(const char * name) ; //To separate different runs use names
24   AliEPFlattener(const AliEPFlattener & fl) ; 
25   virtual ~AliEPFlattener() ;
26   AliEPFlattener & operator = (const AliEPFlattener & 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(AliEPFlattener,1) 
40
41 } ;
42
43 #endif //  ALIEPFLATTENER_H