]>
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 "AliAnalysisTaskSE.h" |
df23c5ae | 22 | #include "AliFlowCommonConstants.h" |
bc92c0cb | 23 | |
2701c4bc | 24 | class TString; |
2ed70edf | 25 | class TList; |
26 | class AliFlowEventSimple; | |
bc92c0cb | 27 | class AliFlowAnalysisWithQCumulants; |
bc92c0cb | 28 | |
29 | //================================================================================================================ | |
30 | ||
2ed70edf | 31 | class AliAnalysisTaskQCumulants : public AliAnalysisTaskSE{ |
bc92c0cb | 32 | public: |
33 | AliAnalysisTaskQCumulants(); | |
2ed70edf | 34 | AliAnalysisTaskQCumulants(const char *name, Bool_t useParticleWeights=kFALSE); |
bc92c0cb | 35 | virtual ~AliAnalysisTaskQCumulants(){}; |
36 | ||
b3dacf6b | 37 | virtual void UserCreateOutputObjects(); |
38 | virtual void UserExec(Option_t *option); | |
39 | virtual void Terminate(Option_t *); | |
bc92c0cb | 40 | |
b3dacf6b | 41 | // Common: |
62d19320 | 42 | void SetBookOnlyBasicCCH(Bool_t const bobcch) {this->fBookOnlyBasicCCH = bobcch;}; |
43 | Bool_t GetBookOnlyBasicCCH() const {return this->fBookOnlyBasicCCH;}; | |
dd442cd2 | 44 | void SetFillMultipleControlHistograms(Bool_t const fmch) {this->fFillMultipleControlHistograms = fmch;}; |
45 | Bool_t GetFillMultipleControlHistograms() const {return this->fFillMultipleControlHistograms;}; | |
2ed70edf | 46 | void SetHarmonic(Int_t const harmonic) {this->fHarmonic = harmonic;}; |
47 | Int_t GetHarmonic() const {return this->fHarmonic;}; | |
48 | void SetApplyCorrectionForNUA(Bool_t const applyCorrectionForNUA) {this->fApplyCorrectionForNUA = applyCorrectionForNUA;}; | |
49 | Bool_t GetApplyCorrectionForNUA() const {return this->fApplyCorrectionForNUA;}; | |
050c0a54 | 50 | void SetApplyCorrectionForNUAVsM(Bool_t const applyCorrectionForNUAVsM) {this->fApplyCorrectionForNUAVsM = applyCorrectionForNUAVsM;}; |
51 | Bool_t GetApplyCorrectionForNUAVsM() const {return this->fApplyCorrectionForNUAVsM;}; | |
b77b6434 | 52 | void SetPropagateErrorAlsoFromNIT(Bool_t const peafNIT) {this->fPropagateErrorAlsoFromNIT = peafNIT;}; |
53 | Bool_t GetPropagateErrorAlsoFromNIT() const {return this->fPropagateErrorAlsoFromNIT;}; | |
1268c371 | 54 | void SetCalculateDiffFlow(Bool_t const calculateDiffFlow) {this->fCalculateDiffFlow = calculateDiffFlow;}; |
55 | Bool_t GetCalculateDiffFlow() const {return this->fCalculateDiffFlow;}; | |
56 | void SetCalculate2DDiffFlow(Bool_t const calculate2DDiffFlow) {this->fCalculate2DDiffFlow = calculate2DDiffFlow;}; | |
57 | Bool_t GetCalculate2DDiffFlow() const {return this->fCalculate2DDiffFlow;}; | |
62e36168 | 58 | void SetCalculateDiffFlowVsEta(Bool_t const cdfve) {this->fCalculateDiffFlowVsEta = cdfve;}; |
59 | Bool_t GetCalculateDiffFlowVsEta() const {return this->fCalculateDiffFlowVsEta;}; | |
2ed70edf | 60 | void SetStoreDistributions(Bool_t const storeDistributions) {this->fStoreDistributions = storeDistributions;}; |
61 | Bool_t GetStoreDistributions() const {return this->fStoreDistributions;}; | |
b3dacf6b | 62 | void SetCalculateCumulantsVsM(Bool_t const ccvm) {this->fCalculateCumulantsVsM = ccvm;}; |
0dd3b008 | 63 | Bool_t GetCalculateCumulantsVsM() const {return this->fCalculateCumulantsVsM;}; |
3435cacb | 64 | void SetCalculateAllCorrelationsVsM(Bool_t const cacvm) {this->fCalculateAllCorrelationsVsM = cacvm;}; |
3842bdcd | 65 | Bool_t GetCalculateAllCorrelationsVsM() const {return this->fCalculateAllCorrelationsVsM;}; |
8f0fcf13 | 66 | void SetCalculateMixedHarmonics(Bool_t const cmh) {this->fCalculateMixedHarmonics = cmh;}; |
67 | Bool_t GetCalculateMixedHarmonics() const {return this->fCalculateMixedHarmonics;}; | |
68 | void SetCalculateMixedHarmonicsVsM(Bool_t const cmhvm) {this->fCalculateMixedHarmonicsVsM = cmhvm;}; | |
df23c5ae | 69 | Bool_t GetCalculateMixedHarmonicsVsM() const {return this->fCalculateMixedHarmonicsVsM;}; |
70 | void SetStoreControlHistograms(Bool_t const sch) {this->fStoreControlHistograms = sch;}; | |
71 | Bool_t GetStoreControlHistograms() const {return this->fStoreControlHistograms;}; | |
0dd3b008 | 72 | void SetMinimumBiasReferenceFlow(Bool_t const mmrf) {this->fMinimumBiasReferenceFlow = mmrf;}; |
8e1cefdd | 73 | Bool_t GetMinimumBiasReferenceFlow() const {return this->fMinimumBiasReferenceFlow;}; |
74 | void SetForgetAboutCovariances(Bool_t const fac) {this->fForgetAboutCovariances = fac;}; | |
e5834fcb | 75 | Bool_t GetForgetAboutCovariances() const {return this->fForgetAboutCovariances;}; |
76 | void SetStorePhiDistributionForOneEvent(Bool_t const spdfoe) {this->fStorePhiDistributionForOneEvent = spdfoe;}; | |
77 | Bool_t GetStorePhiDistributionForOneEvent() const {return this->fStorePhiDistributionForOneEvent;}; | |
78 | void SetPhiDistributionForOneEventSettings(Double_t const pdfoes, Int_t const i) {this->fPhiDistributionForOneEventSettings[i] = pdfoes;}; | |
79 | Double_t GetPhiDistributionForOneEventSettings(Int_t const i) const {return this->fPhiDistributionForOneEventSettings[i];}; | |
d9e6d8bb | 80 | void SetExactNoRPs(Int_t const enr) {this->fExactNoRPs = enr;}; |
81 | Int_t GetExactNoRPs() const {return this->fExactNoRPs;}; | |
e5834fcb | 82 | |
b3dacf6b | 83 | // Multiparticle correlations vs multiplicity: |
067e9bc8 | 84 | void SetnBinsMult(Int_t const nbm) {this->fnBinsMult = nbm;}; |
85 | Int_t GetnBinsMult() const {return this->fnBinsMult;}; | |
86 | void SetMinMult(Double_t const minm) {this->fMinMult = minm;}; | |
87 | Double_t GetMinMult() const {return this->fMinMult;}; | |
88 | void SetMaxMult(Double_t const maxm) {this->fMaxMult = maxm;}; | |
89 | Double_t GetMaxMult() const {return this->fMaxMult;}; | |
b3dacf6b | 90 | // Particle weights: |
e04e4ec5 | 91 | void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;}; |
92 | Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;}; | |
93 | void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;}; | |
94 | Bool_t GetUsePtWeights() const {return this->fUsePtWeights;}; | |
95 | void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;}; | |
96 | Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;}; | |
403e3389 | 97 | void SetUseTrackWeights(Bool_t const uTrackW) {this->fUseTrackWeights = uTrackW;}; |
98 | Bool_t GetUseTrackWeights() const {return this->fUseTrackWeights;}; | |
b3dacf6b | 99 | // Event weights: |
2ed70edf | 100 | void SetMultiplicityWeight(const char *multiplicityWeight) {*this->fMultiplicityWeight = multiplicityWeight;}; |
df23c5ae | 101 | void SetMultiplicityIs(AliFlowCommonConstants::ERefMultSource mi) {this->fMultiplicityIs = mi;}; |
d9e6d8bb | 102 | // Boundaries for distributions of correlations: |
103 | void SetMinValueOfCorrelation(Int_t const ci, Double_t const minValue) {this->fMinValueOfCorrelation[ci] = minValue;}; | |
104 | Double_t GetMinValueOfCorrelation(Int_t ci) const {return this->fMinValueOfCorrelation[ci];}; | |
105 | void SetMaxValueOfCorrelation(Int_t const ci, Double_t const maxValue) {this->fMaxValueOfCorrelation[ci] = maxValue;}; | |
106 | Double_t GetMaxValueOfCorrelation(Int_t ci) const {return this->fMaxValueOfCorrelation[ci];}; | |
107 | ||
bc92c0cb | 108 | private: |
109 | AliAnalysisTaskQCumulants(const AliAnalysisTaskQCumulants& aatqc); | |
110 | AliAnalysisTaskQCumulants& operator=(const AliAnalysisTaskQCumulants& aatqc); | |
e04e4ec5 | 111 | |
2ed70edf | 112 | AliFlowEventSimple *fEvent; // the input event |
113 | AliFlowAnalysisWithQCumulants *fQC; // Q-cumulant object | |
114 | TList *fListHistos; // collection of output | |
b3dacf6b | 115 | // Common: |
62d19320 | 116 | Bool_t fBookOnlyBasicCCH; // book only basis common control histrograms (by default book them all) |
dd442cd2 | 117 | Bool_t fFillMultipleControlHistograms; // fill separately control histos for events with >= 2, 4, 6 and 8 particles |
118 | Int_t fHarmonic; // harmonic | |
119 | Bool_t fApplyCorrectionForNUA; // apply correction for non-uniform acceptance | |
120 | Bool_t fApplyCorrectionForNUAVsM; // apply correction for non-uniform acceptance versus M | |
121 | Bool_t fPropagateErrorAlsoFromNIT; // propagate error by taking into account also non-isotrpic terms | |
1268c371 | 122 | Bool_t fCalculateDiffFlow; // calculate differential flow in pt or eta |
123 | Bool_t fCalculate2DDiffFlow; // calculate differential flow in (pt,eta) (Remark: this is very expensive in terms of CPU time) | |
62e36168 | 124 | Bool_t fCalculateDiffFlowVsEta; // if you set kFALSE only differential flow vs pt is calculated |
dd442cd2 | 125 | Bool_t fStoreDistributions; // store or not distributions of correlations |
126 | Bool_t fCalculateCumulantsVsM; // calculate cumulants versus multiplicity | |
3842bdcd | 127 | Bool_t fCalculateAllCorrelationsVsM; // calculate all correlations versus multiplicity |
8f0fcf13 | 128 | Bool_t fCalculateMixedHarmonics; // calculate all mixed harmonics correlations |
df23c5ae | 129 | Bool_t fCalculateMixedHarmonicsVsM; // calculate all mixed harmonics correlations versus multiplicity |
130 | Bool_t fStoreControlHistograms; // store or not control histograms | |
dd442cd2 | 131 | Bool_t fMinimumBiasReferenceFlow; // store as reference flow in AliFlowCommonHistResults the minimum bias result (kFALSE by default) |
132 | Bool_t fForgetAboutCovariances; // when propagating error forget about the covariances | |
e5834fcb | 133 | Bool_t fStorePhiDistributionForOneEvent; // store phi distribution for one event to illustrate flow |
d9e6d8bb | 134 | Double_t fPhiDistributionForOneEventSettings[4]; // [v_min,v_max,refMult_min,refMult_max] |
135 | Int_t fExactNoRPs; // when shuffled, select only this number of RPs for the analysis | |
b3dacf6b | 136 | // Multiparticle correlations vs multiplicity: |
067e9bc8 | 137 | Int_t fnBinsMult; // number of multiplicity bins for flow analysis versus multiplicity |
138 | Double_t fMinMult; // minimal multiplicity for flow analysis versus multiplicity | |
139 | Double_t fMaxMult; // maximal multiplicity for flow analysis versus multiplicity | |
b3dacf6b | 140 | // Particle weights: |
2ed70edf | 141 | Bool_t fUseParticleWeights; // use any particle weights |
142 | Bool_t fUsePhiWeights; // use phi weights | |
143 | Bool_t fUsePtWeights; // use pt weights | |
144 | Bool_t fUseEtaWeights; // use eta weights | |
403e3389 | 145 | Bool_t fUseTrackWeights; // use track weights (e.g. VZERO sector weights) |
2ed70edf | 146 | TList *fWeightsList; // list with weights |
b3dacf6b | 147 | // Event weights: |
2ed70edf | 148 | TString *fMultiplicityWeight; // event-by-event weights for multiparticle correlations ("combinations","unit" or "multiplicity") |
df23c5ae | 149 | AliFlowCommonConstants::ERefMultSource fMultiplicityIs; // by default "#RPs", other supported options are "RefMultFromESD" = ref. mult. from ESD, and "#POIs" |
d9e6d8bb | 150 | // Boundaries for distributions of correlations: |
151 | Double_t fMinValueOfCorrelation[4]; // min values of <2>, <4>, <6> and <8> | |
152 | Double_t fMaxValueOfCorrelation[4]; // max values of <2>, <4>, <6> and <8> | |
2ed70edf | 153 | |
bc92c0cb | 154 | ClassDef(AliAnalysisTaskQCumulants, 1); |
155 | }; | |
156 | ||
157 | //================================================================================================================ | |
158 | ||
159 | #endif | |
160 | ||
161 | ||
162 | ||
163 | ||
164 | ||
165 | ||
166 | ||
167 | ||
168 | ||
169 | ||
170 |