]>
Commit | Line | Data |
---|---|---|
bc92c0cb | 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 | ||
52021ae2 | 18 | #ifndef ALIANALYSISTASKQCUMULANTS_H |
19 | #define ALIANALYSISTASKQCUMULANTS_H | |
bc92c0cb | 20 | |
2ed70edf | 21 | #include "TString.h" |
22 | #include "AliAnalysisTaskSE.h" | |
bc92c0cb | 23 | |
2ed70edf | 24 | class TList; |
25 | class AliFlowEventSimple; | |
bc92c0cb | 26 | class AliFlowAnalysisWithQCumulants; |
bc92c0cb | 27 | |
28 | //================================================================================================================ | |
29 | ||
2ed70edf | 30 | class AliAnalysisTaskQCumulants : public AliAnalysisTaskSE{ |
bc92c0cb | 31 | public: |
32 | AliAnalysisTaskQCumulants(); | |
2ed70edf | 33 | AliAnalysisTaskQCumulants(const char *name, Bool_t useParticleWeights=kFALSE); |
bc92c0cb | 34 | virtual ~AliAnalysisTaskQCumulants(){}; |
35 | ||
b3dacf6b | 36 | virtual void UserCreateOutputObjects(); |
37 | virtual void UserExec(Option_t *option); | |
38 | virtual void Terminate(Option_t *); | |
bc92c0cb | 39 | |
b3dacf6b | 40 | // Common: |
2ed70edf | 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;}; | |
050c0a54 | 45 | void SetApplyCorrectionForNUAVsM(Bool_t const applyCorrectionForNUAVsM) {this->fApplyCorrectionForNUAVsM = applyCorrectionForNUAVsM;}; |
46 | Bool_t GetApplyCorrectionForNUAVsM() const {return this->fApplyCorrectionForNUAVsM;}; | |
47 | void SetPropagateErrorAlsoFromNUATerms(Bool_t const pefc) {this->fPropagateErrorAlsoFromNUATerms = pefc;}; | |
48 | Bool_t GetPropagateErrorAlsoFromNUATerms() const {return this->fPropagateErrorAlsoFromNUATerms;}; | |
2ed70edf | 49 | void SetCalculate2DFlow(Bool_t const calculate2DFlow) {this->fCalculate2DFlow = calculate2DFlow;}; |
50 | Bool_t GetCalculate2DFlow() const {return this->fCalculate2DFlow;}; | |
51 | void SetStoreDistributions(Bool_t const storeDistributions) {this->fStoreDistributions = storeDistributions;}; | |
52 | Bool_t GetStoreDistributions() const {return this->fStoreDistributions;}; | |
b3dacf6b | 53 | void SetCalculateCumulantsVsM(Bool_t const ccvm) {this->fCalculateCumulantsVsM = ccvm;}; |
0dd3b008 | 54 | Bool_t GetCalculateCumulantsVsM() const {return this->fCalculateCumulantsVsM;}; |
55 | void SetMinimumBiasReferenceFlow(Bool_t const mmrf) {this->fMinimumBiasReferenceFlow = mmrf;}; | |
56 | Bool_t GetMinimumBiasReferenceFlow() const {return this->fMinimumBiasReferenceFlow;}; | |
b3dacf6b | 57 | // Multiparticle correlations vs multiplicity: |
067e9bc8 | 58 | void SetnBinsMult(Int_t const nbm) {this->fnBinsMult = nbm;}; |
59 | Int_t GetnBinsMult() const {return this->fnBinsMult;}; | |
60 | void SetMinMult(Double_t const minm) {this->fMinMult = minm;}; | |
61 | Double_t GetMinMult() const {return this->fMinMult;}; | |
62 | void SetMaxMult(Double_t const maxm) {this->fMaxMult = maxm;}; | |
63 | Double_t GetMaxMult() const {return this->fMaxMult;}; | |
b3dacf6b | 64 | // Particle weights: |
e04e4ec5 | 65 | void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;}; |
66 | Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;}; | |
67 | void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;}; | |
68 | Bool_t GetUsePtWeights() const {return this->fUsePtWeights;}; | |
69 | void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;}; | |
70 | Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;}; | |
b3dacf6b | 71 | // Event weights: |
2ed70edf | 72 | void SetMultiplicityWeight(const char *multiplicityWeight) {*this->fMultiplicityWeight = multiplicityWeight;}; |
bc92c0cb | 73 | |
74 | private: | |
75 | AliAnalysisTaskQCumulants(const AliAnalysisTaskQCumulants& aatqc); | |
76 | AliAnalysisTaskQCumulants& operator=(const AliAnalysisTaskQCumulants& aatqc); | |
e04e4ec5 | 77 | |
2ed70edf | 78 | AliFlowEventSimple *fEvent; // the input event |
79 | AliFlowAnalysisWithQCumulants *fQC; // Q-cumulant object | |
80 | TList *fListHistos; // collection of output | |
b3dacf6b | 81 | // Common: |
050c0a54 | 82 | Int_t fHarmonic; // harmonic |
83 | Bool_t fApplyCorrectionForNUA; // apply correction for non-uniform acceptance | |
84 | Bool_t fApplyCorrectionForNUAVsM; // apply correction for non-uniform acceptance versus M | |
85 | Bool_t fPropagateErrorAlsoFromNUATerms; // propagate error by taking into account also non-isotrpic terms | |
86 | Bool_t fCalculate2DFlow; // calculate differential flow in (pt,eta) (Remark: this is very expensive in terms of CPU time) | |
87 | Bool_t fStoreDistributions; // store or not distributions of correlations | |
88 | Bool_t fCalculateCumulantsVsM; // calculate cumulants versus multiplicity | |
89 | Bool_t fMinimumBiasReferenceFlow; // store as reference flow in AliFlowCommonHistResults the minimum bias result (kFALSE by default) | |
b3dacf6b | 90 | // Multiparticle correlations vs multiplicity: |
067e9bc8 | 91 | Int_t fnBinsMult; // number of multiplicity bins for flow analysis versus multiplicity |
92 | Double_t fMinMult; // minimal multiplicity for flow analysis versus multiplicity | |
93 | Double_t fMaxMult; // maximal multiplicity for flow analysis versus multiplicity | |
b3dacf6b | 94 | // Particle weights: |
2ed70edf | 95 | Bool_t fUseParticleWeights; // use any particle weights |
96 | Bool_t fUsePhiWeights; // use phi weights | |
97 | Bool_t fUsePtWeights; // use pt weights | |
98 | Bool_t fUseEtaWeights; // use eta weights | |
99 | TList *fWeightsList; // list with weights | |
b3dacf6b | 100 | // Event weights: |
2ed70edf | 101 | TString *fMultiplicityWeight; // event-by-event weights for multiparticle correlations ("combinations","unit" or "multiplicity") |
102 | ||
bc92c0cb | 103 | ClassDef(AliAnalysisTaskQCumulants, 1); |
104 | }; | |
105 | ||
106 | //================================================================================================================ | |
107 | ||
108 | #endif | |
109 | ||
110 | ||
111 | ||
112 | ||
113 | ||
114 | ||
115 | ||
116 | ||
117 | ||
118 | ||
119 |