]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowAnalysisWithMCEventPlane.h
gain set to 1 for all ch
[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 TList;
26 class TComplex;
27 class Riostream;
28
29
30 // Description: Maker to analyze Flow from the generated MC reaction plane.
31 //              This class is used to get the real value of the flow 
32 //              to compare the other methods to when analysing simulated events.
33
34  
35 class AliFlowAnalysisWithMCEventPlane {
36
37  public:
38  
39    AliFlowAnalysisWithMCEventPlane();            //default constructor
40    virtual  ~AliFlowAnalysisWithMCEventPlane();  //destructor
41  
42    void    Init();                             //defines variables and histograms
43    void    Make(AliFlowEventSimple* anEvent, Double_t aRP);   //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    TList*   GetHistList() const                  { return this->fHistList ; }  
52   
53    
54  private:
55  
56    AliFlowAnalysisWithMCEventPlane(const AliFlowAnalysisWithMCEventPlane& aAnalysis);             //copy constructor
57    AliFlowAnalysisWithMCEventPlane& operator=(const AliFlowAnalysisWithMCEventPlane& aAnalysis);  //assignment operator 
58
59       
60 #ifndef __CINT__
61    TVector2*    fQsum;              // flow vector sum
62    Double_t     fQ2sum;             // flow vector sum squared
63 #endif /*__CINT__*/
64
65    Int_t        fEventNumber;       // event counter
66    Bool_t       fDebug ;            //! flag for lyz analysis: more print statements
67
68    TList*       fHistList;          //list to hold all output histograms  
69     
70    AliFlowCommonHist* fCommonHists;              //
71    AliFlowCommonHistResults* fCommonHistsRes;    //
72
73    TProfile*    fHistProFlow;       //
74    TH1F*        fHistRP;            //
75
76    ClassDef(AliFlowAnalysisWithMCEventPlane,0)  // macro for rootcint
77      };
78  
79      
80 #endif
81
82