]>
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;}; | |
b77b6434 | 47 | void SetPropagateErrorAlsoFromNIT(Bool_t const peafNIT) {this->fPropagateErrorAlsoFromNIT = peafNIT;}; |
48 | Bool_t GetPropagateErrorAlsoFromNIT() const {return this->fPropagateErrorAlsoFromNIT;}; | |
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;}; | |
8e1cefdd | 56 | Bool_t GetMinimumBiasReferenceFlow() const {return this->fMinimumBiasReferenceFlow;}; |
57 | void SetForgetAboutCovariances(Bool_t const fac) {this->fForgetAboutCovariances = fac;}; | |
58 | Bool_t GetForgetAboutCovariances() const {return this->fForgetAboutCovariances;}; | |
b3dacf6b | 59 | // Multiparticle correlations vs multiplicity: |
067e9bc8 | 60 | void SetnBinsMult(Int_t const nbm) {this->fnBinsMult = nbm;}; |
61 | Int_t GetnBinsMult() const {return this->fnBinsMult;}; | |
62 | void SetMinMult(Double_t const minm) {this->fMinMult = minm;}; | |
63 | Double_t GetMinMult() const {return this->fMinMult;}; | |
64 | void SetMaxMult(Double_t const maxm) {this->fMaxMult = maxm;}; | |
65 | Double_t GetMaxMult() const {return this->fMaxMult;}; | |
b3dacf6b | 66 | // Particle weights: |
e04e4ec5 | 67 | void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;}; |
68 | Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;}; | |
69 | void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;}; | |
70 | Bool_t GetUsePtWeights() const {return this->fUsePtWeights;}; | |
71 | void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;}; | |
72 | Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;}; | |
b3dacf6b | 73 | // Event weights: |
2ed70edf | 74 | void SetMultiplicityWeight(const char *multiplicityWeight) {*this->fMultiplicityWeight = multiplicityWeight;}; |
bc92c0cb | 75 | |
76 | private: | |
77 | AliAnalysisTaskQCumulants(const AliAnalysisTaskQCumulants& aatqc); | |
78 | AliAnalysisTaskQCumulants& operator=(const AliAnalysisTaskQCumulants& aatqc); | |
e04e4ec5 | 79 | |
2ed70edf | 80 | AliFlowEventSimple *fEvent; // the input event |
81 | AliFlowAnalysisWithQCumulants *fQC; // Q-cumulant object | |
82 | TList *fListHistos; // collection of output | |
b3dacf6b | 83 | // Common: |
b77b6434 | 84 | Int_t fHarmonic; // harmonic |
85 | Bool_t fApplyCorrectionForNUA; // apply correction for non-uniform acceptance | |
86 | Bool_t fApplyCorrectionForNUAVsM; // apply correction for non-uniform acceptance versus M | |
87 | Bool_t fPropagateErrorAlsoFromNIT; // propagate error by taking into account also non-isotrpic terms | |
88 | Bool_t fCalculate2DFlow; // calculate differential flow in (pt,eta) (Remark: this is very expensive in terms of CPU time) | |
89 | Bool_t fStoreDistributions; // store or not distributions of correlations | |
90 | Bool_t fCalculateCumulantsVsM; // calculate cumulants versus multiplicity | |
91 | Bool_t fMinimumBiasReferenceFlow; // store as reference flow in AliFlowCommonHistResults the minimum bias result (kFALSE by default) | |
8e1cefdd | 92 | Bool_t fForgetAboutCovariances; // when propagating error forget about the covariances |
b3dacf6b | 93 | // Multiparticle correlations vs multiplicity: |
067e9bc8 | 94 | Int_t fnBinsMult; // number of multiplicity bins for flow analysis versus multiplicity |
95 | Double_t fMinMult; // minimal multiplicity for flow analysis versus multiplicity | |
96 | Double_t fMaxMult; // maximal multiplicity for flow analysis versus multiplicity | |
b3dacf6b | 97 | // Particle weights: |
2ed70edf | 98 | Bool_t fUseParticleWeights; // use any particle weights |
99 | Bool_t fUsePhiWeights; // use phi weights | |
100 | Bool_t fUsePtWeights; // use pt weights | |
101 | Bool_t fUseEtaWeights; // use eta weights | |
102 | TList *fWeightsList; // list with weights | |
b3dacf6b | 103 | // Event weights: |
2ed70edf | 104 | TString *fMultiplicityWeight; // event-by-event weights for multiparticle correlations ("combinations","unit" or "multiplicity") |
105 | ||
bc92c0cb | 106 | ClassDef(AliAnalysisTaskQCumulants, 1); |
107 | }; | |
108 | ||
109 | //================================================================================================================ | |
110 | ||
111 | #endif | |
112 | ||
113 | ||
114 | ||
115 | ||
116 | ||
117 | ||
118 | ||
119 | ||
120 | ||
121 | ||
122 |