]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowAnalysisWithMCEventPlane.h
9410f1896abf39a8047a34f90b323181de920191
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowAnalysisWithMCEventPlane.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 /* $Id$ */
5
6
7 #ifndef AliFlowAnalysisWithMCEventPlane_H
8 #define AliFlowAnalysisWithMCEventPlane_H
9
10 #include "TVector2.h"          //called explicitly
11 #include "AliFlowVector.h"
12 #include "TString.h"
13
14 class AliFlowTrackSimple;
15 class AliFlowEventSimple;
16 class AliFlowCommonHist;
17 class AliFlowCommonHistResults;
18
19 class TH1F;
20 class TH1D;
21 class TProfile;
22 class TProfile2D;
23 class TObjArray;
24 class TFile;
25 class TComplex;
26 class Riostream;
27
28
29 // Description: Maker to analyze Flow from the generated MC reaction plane.
30 //              This class is used to get the real value of the flow 
31 //              to compare the other methods to when analysing simulated events.
32
33  
34 class AliFlowAnalysisWithMCEventPlane {
35
36  public:
37  
38    AliFlowAnalysisWithMCEventPlane();   //default constructor
39  
40    virtual  ~AliFlowAnalysisWithMCEventPlane();  //destructor
41  
42    void    Init();                             //defines variables and histograms
43    void    Make(AliFlowEventSimple* anEvent, Double_t fRP);   //calculates variables and fills histograms
44    void    Finish();                           //saves histograms
45   
46    void      SetDebug(Bool_t kt)                 { this->fDebug = kt ; }
47    Bool_t    GetDebug() const                    { return this->fDebug ; }
48
49
50    // Output 
51    void     SetHistFileName(TString name)       { this->fHistFileName = name ; } // Sets output file name
52    TString  GetHistFileName() const             { return this->fHistFileName ; } // Gets output file name
53    TFile*   GetHistFile() const                 { return this->fHistFile ; }     // Gets output file
54   
55    
56  private:
57  
58    AliFlowAnalysisWithMCEventPlane(const AliFlowAnalysisWithMCEventPlane& aAnalysis);
59    AliFlowAnalysisWithMCEventPlane& operator=(const AliFlowAnalysisWithMCEventPlane& aAnalysis);
60
61       
62 #ifndef __CINT__
63    AliFlowVector  fQ;       // flow vector
64    TVector2  fQsum;         // flow vector sum
65    Double_t  fQ2sum;        // flow vector sum squared
66 #endif /*__CINT__*/
67
68    Int_t     fEventNumber;  // event counter
69    Int_t     fMult;         // multiplicity
70    Int_t     fNbins;        // number of bins
71       
72    AliFlowTrackSimple*   fTrack ;     //!
73      
74    Bool_t       fDebug ;            //! flag for lyz analysis: more print statements
75
76    TString      fHistFileName;      //!
77    TFile*       fHistFile;          //!
78     
79    AliFlowCommonHist* fCommonHists;              //!
80    AliFlowCommonHistResults* fCommonHistsRes;    //!
81
82    TProfile*  fHistProFlow;         //!
83    TH1F*      fHistRP;              //!
84
85    ClassDef(AliFlowAnalysisWithMCEventPlane,0)  // macro for rootcint
86      };
87  
88      
89 #endif
90
91