]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. | |
3 | * See cxx source for full Copyright notice | |
4 | * $Id$ | |
5 | */ | |
6 | ||
7 | /************************************** | |
8 | * analysis task for Q-cumulants * | |
9 | * * | |
10 | * authors: Naomi van der Kolk * | |
11 | * (kolk@nikhef.nl) * | |
12 | * Raimond Snellings * | |
13 | * (snelling@nikhef.nl) * | |
14 | * Ante Bilandzic * | |
15 | * (anteb@nikhef.nl) * | |
16 | * ***********************************/ | |
17 | ||
18 | #ifndef ALIANALYSISTASKQCUMULANTS_H | |
19 | #define ALIANALYSISTASKQCUMULANTS_H | |
20 | ||
21 | #include "TString.h" | |
22 | #include "AliAnalysisTaskSE.h" | |
23 | ||
24 | class TList; | |
25 | class AliFlowEventSimple; | |
26 | class AliFlowAnalysisWithQCumulants; | |
27 | ||
28 | //================================================================================================================ | |
29 | ||
30 | class AliAnalysisTaskQCumulants : public AliAnalysisTaskSE{ | |
31 | public: | |
32 | AliAnalysisTaskQCumulants(); | |
33 | AliAnalysisTaskQCumulants(const char *name, Bool_t useParticleWeights=kFALSE); | |
34 | virtual ~AliAnalysisTaskQCumulants(){}; | |
35 | ||
36 | virtual void UserCreateOutputObjects(); | |
37 | virtual void UserExec(Option_t *option); | |
38 | virtual void Terminate(Option_t *); | |
39 | ||
40 | // Common: | |
41 | void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;}; | |
42 | Int_t GetHarmonic() const {return this->fHarmonic;}; | |
43 | void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA) {this->fApplyCorrectionForNUA = applyCorrectionForNUA;}; | |
44 | Bool_t GetApplyCorrectionForNUA() const {return this->fApplyCorrectionForNUA;}; | |
45 | void SetCalculate2DFlow(Bool_t const calculate2DFlow) {this->fCalculate2DFlow = calculate2DFlow;}; | |
46 | Bool_t GetCalculate2DFlow() const {return this->fCalculate2DFlow;}; | |
47 | void SetStoreDistributions(Bool_t const storeDistributions) {this->fStoreDistributions = storeDistributions;}; | |
48 | Bool_t GetStoreDistributions() const {return this->fStoreDistributions;}; | |
49 | void SetCalculateCumulantsVsM(Bool_t const ccvm) {this->fCalculateCumulantsVsM = ccvm;}; | |
50 | Bool_t GetCalculateCumulantsVsM() const {return this->fCalculateCumulantsVsM;}; | |
51 | // Multiparticle correlations vs multiplicity: | |
52 | void SetnBinsMult(Int_t const nbm) {this->fnBinsMult = nbm;}; | |
53 | Int_t GetnBinsMult() const {return this->fnBinsMult;}; | |
54 | void SetMinMult(Double_t const minm) {this->fMinMult = minm;}; | |
55 | Double_t GetMinMult() const {return this->fMinMult;}; | |
56 | void SetMaxMult(Double_t const maxm) {this->fMaxMult = maxm;}; | |
57 | Double_t GetMaxMult() const {return this->fMaxMult;}; | |
58 | // Particle weights: | |
59 | void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;}; | |
60 | Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;}; | |
61 | void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;}; | |
62 | Bool_t GetUsePtWeights() const {return this->fUsePtWeights;}; | |
63 | void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;}; | |
64 | Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;}; | |
65 | // Event weights: | |
66 | void SetMultiplicityWeight(const char *multiplicityWeight) {*this->fMultiplicityWeight = multiplicityWeight;}; | |
67 | ||
68 | private: | |
69 | AliAnalysisTaskQCumulants(const AliAnalysisTaskQCumulants& aatqc); | |
70 | AliAnalysisTaskQCumulants& operator=(const AliAnalysisTaskQCumulants& aatqc); | |
71 | ||
72 | AliFlowEventSimple *fEvent; // the input event | |
73 | AliFlowAnalysisWithQCumulants *fQC; // Q-cumulant object | |
74 | TList *fListHistos; // collection of output | |
75 | // Common: | |
76 | Int_t fHarmonic; // harmonic | |
77 | Bool_t fApplyCorrectionForNUA; // apply correction for non-uniform acceptance | |
78 | Bool_t fCalculate2DFlow; // calculate differential flow in (pt,eta) (Remark: this is very expensive in terms of CPU time) | |
79 | Bool_t fStoreDistributions; // store or not distributions of correlations | |
80 | Bool_t fCalculateCumulantsVsM; // calculate cumulants versus multiplicity | |
81 | // Multiparticle correlations vs multiplicity: | |
82 | Int_t fnBinsMult; // number of multiplicity bins for flow analysis versus multiplicity | |
83 | Double_t fMinMult; // minimal multiplicity for flow analysis versus multiplicity | |
84 | Double_t fMaxMult; // maximal multiplicity for flow analysis versus multiplicity | |
85 | // Particle weights: | |
86 | Bool_t fUseParticleWeights; // use any particle weights | |
87 | Bool_t fUsePhiWeights; // use phi weights | |
88 | Bool_t fUsePtWeights; // use pt weights | |
89 | Bool_t fUseEtaWeights; // use eta weights | |
90 | TList *fWeightsList; // list with weights | |
91 | // Event weights: | |
92 | TString *fMultiplicityWeight; // event-by-event weights for multiparticle correlations ("combinations","unit" or "multiplicity") | |
93 | ||
94 | ClassDef(AliAnalysisTaskQCumulants, 1); | |
95 | }; | |
96 | ||
97 | //================================================================================================================ | |
98 | ||
99 | #endif | |
100 | ||
101 | ||
102 | ||
103 | ||
104 | ||
105 | ||
106 | ||
107 | ||
108 | ||
109 | ||
110 |