]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithMCEventPlane.h
more consistent names
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / 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
45cdbef2 7#ifndef ALIFLOWANALYSISWITHMCEVENTPLANE_H
8#define ALIFLOWANALYSISWITHMCEVENTPLANE_H
f1d945a1 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;
28ca24ad 25class TList;
f1d945a1 26class TComplex;
27class 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
35class AliFlowAnalysisWithMCEventPlane {
36
37 public:
38
28ca24ad 39 AliFlowAnalysisWithMCEventPlane(); //default constructor
f1d945a1 40 virtual ~AliFlowAnalysisWithMCEventPlane(); //destructor
41
bb26a78c 42 void WriteHistograms(TString* outputFileName);
b0fda271 43 void WriteHistograms(TString outputFileName);
9d062fe3 44 void Init(); //defines variables and histograms
b7cb54d5 45 void Make(AliFlowEventSimple* anEvent); //calculates variables and fills histograms
9d062fe3 46 void Finish(); //saves histograms
bb26a78c 47
9d062fe3 48 void SetDebug(Bool_t kt) { this->fDebug = kt ; }
49 Bool_t GetDebug() const { return this->fDebug ; }
f1d945a1 50
9d062fe3 51 void SetEventNumber(Int_t n) { this->fEventNumber = n; }
52 Int_t GetEventNumber() const { return this->fEventNumber; }
f1d945a1 53
54 // Output
9d062fe3 55 TList* GetHistList() const { return this->fHistList ; }
56 AliFlowCommonHist* GetCommonHists() const { return this->fCommonHists; }
b7cb54d5 57 void SetCommonHists(AliFlowCommonHist* aCommonHist)
9d062fe3 58 { this->fCommonHists = aCommonHist; }
b7cb54d5 59 AliFlowCommonHistResults* GetCommonHistsRes() const { return this->fCommonHistsRes; }
9d062fe3 60 void SetCommonHistsRes(AliFlowCommonHistResults* aCommonHistResult)
61 { this->fCommonHistsRes = aCommonHistResult; }
f1d945a1 62
9d062fe3 63 //histograms
9d062fe3 64 TH1F* GetHistRP() {return this->fHistRP; }
65 void SetHistRP(TH1F* aHistRP) {this->fHistRP = aHistRP; }
45cdbef2 66
b7cb54d5 67 TProfile* GetHistProIntFlow() {return this->fHistProIntFlow; }
68 void SetHistProIntFlow(TProfile* aHistProIntFlow)
69 {this->fHistProIntFlow = aHistProIntFlow; }
45cdbef2 70
b7cb54d5 71 TProfile* GetHistProDiffFlowPtRP() {return this->fHistProDiffFlowPtRP; }
72 void SetHistProDiffFlowPtRP(TProfile* aHistProDiffFlowPtRP)
73 {this->fHistProDiffFlowPtRP = aHistProDiffFlowPtRP; }
45cdbef2 74
b7cb54d5 75 TProfile* GetHistProDiffFlowEtaRP() {return this->fHistProDiffFlowEtaRP; }
76 void SetHistProDiffFlowEtaRP(TProfile* aHistProDiffFlowEtaRP)
77 {this->fHistProDiffFlowEtaRP = aHistProDiffFlowEtaRP; }
45cdbef2 78
b7cb54d5 79 TProfile* GetHistProDiffFlowPtPOI() {return this->fHistProDiffFlowPtPOI; }
80 void SetHistProDiffFlowPtPOI(TProfile* aHistProDiffFlowPtPOI)
81 {this->fHistProDiffFlowPtPOI = aHistProDiffFlowPtPOI; }
45cdbef2 82
b7cb54d5 83 TProfile* GetHistProDiffFlowEtaPOI() {return this->fHistProDiffFlowEtaPOI; }
84 void SetHistProDiffFlowEtaPOI(TProfile* aHistProDiffFlowEtaPOI)
85 {this->fHistProDiffFlowEtaPOI = aHistProDiffFlowEtaPOI; }
9d062fe3 86
f1d945a1 87 private:
af795c87 88
00731146 89 AliFlowAnalysisWithMCEventPlane(const AliFlowAnalysisWithMCEventPlane& aAnalysis); //copy constructor
90 AliFlowAnalysisWithMCEventPlane& operator=(const AliFlowAnalysisWithMCEventPlane& aAnalysis); //assignment operator
af795c87 91
f1d945a1 92
93#ifndef __CINT__
00731146 94 TVector2* fQsum; // flow vector sum
95 Double_t fQ2sum; // flow vector sum squared
f1d945a1 96#endif /*__CINT__*/
97
00731146 98 Int_t fEventNumber; // event counter
f1d945a1 99 Bool_t fDebug ; //! flag for lyz analysis: more print statements
100
28ca24ad 101 TList* fHistList; //list to hold all output histograms
f1d945a1 102
00731146 103 AliFlowCommonHist* fCommonHists; //
104 AliFlowCommonHistResults* fCommonHistsRes; //
45cdbef2 105
b7cb54d5 106 TH1F* fHistRP; //reaction plane
107 TProfile* fHistProIntFlow; //profile used to calculate the integrated flow of RP particles
108 TProfile* fHistProDiffFlowPtRP; //profile used to calculate the differential flow (Pt) of RP particles
109 TProfile* fHistProDiffFlowEtaRP; //profile used to calculate the differential flow (Eta) of RP particles
45cdbef2 110 TProfile* fHistProDiffFlowPtPOI; //profile used to calculate the differential flow (Pt) of POI particles
111 TProfile* fHistProDiffFlowEtaPOI; //profile used to calculate the differential flow (Eta) of POI particles
112
d7671632 113 ClassDef(AliFlowAnalysisWithMCEventPlane,1) // Analyse particle distribution versus MC reaction plane
f1d945a1 114 };
d7671632 115
f1d945a1 116
117#endif
af795c87 118
119