1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 #ifndef AliFlowAnalysisWithMCEventPlane_H
8 #define AliFlowAnalysisWithMCEventPlane_H
10 #include "TVector2.h" //called explicitly
11 #include "AliFlowVector.h"
14 class AliFlowTrackSimple;
15 class AliFlowEventSimple;
16 class AliFlowCommonHist;
17 class AliFlowCommonHistResults;
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.
34 class AliFlowAnalysisWithMCEventPlane {
38 AliFlowAnalysisWithMCEventPlane(); //default constructor
40 virtual ~AliFlowAnalysisWithMCEventPlane(); //destructor
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
46 void SetDebug(Bool_t kt) { this->fDebug = kt ; }
47 Bool_t GetDebug() const { return this->fDebug ; }
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
58 AliFlowAnalysisWithMCEventPlane(const AliFlowAnalysisWithMCEventPlane& aAnalysis);
59 AliFlowAnalysisWithMCEventPlane& operator=(const AliFlowAnalysisWithMCEventPlane& aAnalysis);
63 AliFlowVector fQ; // flow vector
64 TVector2 fQsum; // flow vector sum
65 Double_t fQ2sum; // flow vector sum squared
68 Int_t fEventNumber; // event counter
69 Int_t fMult; // multiplicity
70 Int_t fNbins; // number of bins
72 AliFlowTrackSimple* fTrack ; //!
74 Bool_t fDebug ; //! flag for lyz analysis: more print statements
76 TString fHistFileName; //!
79 AliFlowCommonHist* fCommonHists; //!
80 AliFlowCommonHistResults* fCommonHistsRes; //!
82 TProfile* fHistProFlow; //!
85 ClassDef(AliFlowAnalysisWithMCEventPlane,0) // macro for rootcint