]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowLYZEventPlane.h
Moved old reacton plane code to /oldcode
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowLYZEventPlane.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3 /* $Id$ */
4
5 #ifndef AliFlowLYZEventPlane_H
6 #define AliFlowLYZEventPlane_H
7
8
9 #include "TString.h"
10 #include "TVector2.h"
11
12 class AliFlowEventSimple;
13 class TProfile;
14 class TFile;
15
16 // AliFlowLYZEventPlane:
17 // Class to calculate the event plane and event weight from the LYZ method
18 // author: N. van der Kolk (kolk@nikhef.nl)
19
20 class AliFlowLYZEventPlane {
21  public:
22   AliFlowLYZEventPlane();
23   virtual ~AliFlowLYZEventPlane();
24
25   void Init();
26   void CalculateRPandW(TVector2 fQ);
27
28   Double_t GetWR() const  {return this->fWR; }
29   Double_t GetPsi() const {return this->fPsi; }
30   
31   // input files
32   void     SetFirstRunFileName(TString name)    
33     { this->fFirstRunFileName = name ; }      // Sets input file name
34   TString  GetFirstRunFileName() const          
35     { return this->fFirstRunFileName ; }      // Gets output file name
36   void     SetFirstRunFile(TFile* file)         
37     { this->fFirstRunFile = file ; }          // Sets first run file
38
39   void     SetSecondRunFileName(TString name)   
40     { this->fSecondRunFileName = name ; }     // Sets input file name
41   TString  GetSecondRunFileName() const         
42     { return this->fSecondRunFileName ; }     // Gets output file name
43   void     SetSecondRunFile(TFile* file)         
44     { this->fSecondRunFile = file ; }         // Sets first run file
45
46
47
48  private:
49   
50   TVector2 GetQ(AliFlowEventSimple* fEvent);
51
52   TFile*   fFirstRunFile ;          //! pointer to file from first run
53   TFile*   fSecondRunFile ;         //! pointer to file from second run
54   TString  fFirstRunFileName;       //!
55   TString  fSecondRunFileName;      //!
56
57
58   TVector2 fQ;             // flow vector
59   Double_t fWR;            // event weight
60   Double_t fPsi;           // reaction plane
61
62   TProfile* fSecondReDtheta; //!
63   TProfile* fSecondImDtheta; //!
64   TProfile* fFirstr0theta;   //!
65
66   ClassDef(AliFlowLYZEventPlane, 0);          
67 };
68
69 #endif