]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FLOW/AliFlowAnalysisWithMCEventPlane.h
Moved old reacton plane code to /oldcode
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowAnalysisWithMCEventPlane.h
CommitLineData
f1d945a1 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
14class AliFlowTrackSimple;
15class AliFlowEventSimple;
16class AliFlowCommonHist;
17class AliFlowCommonHistResults;
18
19class TH1F;
20class TH1D;
21class TProfile;
22class TProfile2D;
23class TObjArray;
24class TFile;
25class TComplex;
26class 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
34class 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* fEvent, 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#ifndef __CINT__
59 AliFlowVector fQ; // flow vector
60 TVector2 fQsum; // flow vector sum
61 Double_t fQ2sum; // flow vector sum squared
62#endif /*__CINT__*/
63
64 Int_t fEventNumber; // event counter
65 Int_t fMult; // multiplicity
66 Int_t fNbins; // number of bins
67
68 AliFlowEventSimple* fEvent ; //!
69 AliFlowTrackSimple* fTrack ; //!
70
71 Bool_t fDebug ; //! flag for lyz analysis: more print statements
72
73 TString fHistFileName; //!
74 TFile* fHistFile; //!
75
76 AliFlowCommonHist* fCommonHists; //!
77 AliFlowCommonHistResults* fCommonHistsRes; //!
78
79 TProfile* fHistProFlow; //!
80 TH1F* fHistRP; //!
81
82 ClassDef(AliFlowAnalysisWithMCEventPlane,0) // macro for rootcint
83 };
84
85
86#endif