]>
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];}; | |
80 | ||
b3dacf6b | 81 | // Multiparticle correlations vs multiplicity: |
067e9bc8 | 82 | void SetnBinsMult(Int_t const nbm) {this->fnBinsMult = nbm;}; |
83 | Int_t GetnBinsMult() const {return this->fnBinsMult;}; | |
84 | void SetMinMult(Double_t const minm) {this->fMinMult = minm;}; | |
85 | Double_t GetMinMult() const {return this->fMinMult;}; | |
86 | void SetMaxMult(Double_t const maxm) {this->fMaxMult = maxm;}; | |
87 | Double_t GetMaxMult() const {return this->fMaxMult;}; | |
b3dacf6b | 88 | // Particle weights: |
e04e4ec5 | 89 | void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;}; |
90 | Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;}; | |
91 | void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;}; | |
92 | Bool_t GetUsePtWeights() const {return this->fUsePtWeights;}; | |
93 | void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;}; | |
94 | Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;}; | |
403e3389 | 95 | void SetUseTrackWeights(Bool_t const uTrackW) {this->fUseTrackWeights = uTrackW;}; |
96 | Bool_t GetUseTrackWeights() const {return this->fUseTrackWeights;}; | |
b3dacf6b | 97 | // Event weights: |
2ed70edf | 98 | void SetMultiplicityWeight(const char *multiplicityWeight) {*this->fMultiplicityWeight = multiplicityWeight;}; |
df23c5ae | 99 | void SetMultiplicityIs(AliFlowCommonConstants::ERefMultSource mi) {this->fMultiplicityIs = mi;}; |
bc92c0cb | 100 | |
101 | private: | |
102 | AliAnalysisTaskQCumulants(const AliAnalysisTaskQCumulants& aatqc); | |
103 | AliAnalysisTaskQCumulants& operator=(const AliAnalysisTaskQCumulants& aatqc); | |
e04e4ec5 | 104 | |
2ed70edf | 105 | AliFlowEventSimple *fEvent; // the input event |
106 | AliFlowAnalysisWithQCumulants *fQC; // Q-cumulant object | |
107 | TList *fListHistos; // collection of output | |
b3dacf6b | 108 | // Common: |
62d19320 | 109 | Bool_t fBookOnlyBasicCCH; // book only basis common control histrograms (by default book them all) |
dd442cd2 | 110 | Bool_t fFillMultipleControlHistograms; // fill separately control histos for events with >= 2, 4, 6 and 8 particles |
111 | Int_t fHarmonic; // harmonic | |
112 | Bool_t fApplyCorrectionForNUA; // apply correction for non-uniform acceptance | |
113 | Bool_t fApplyCorrectionForNUAVsM; // apply correction for non-uniform acceptance versus M | |
114 | Bool_t fPropagateErrorAlsoFromNIT; // propagate error by taking into account also non-isotrpic terms | |
1268c371 | 115 | Bool_t fCalculateDiffFlow; // calculate differential flow in pt or eta |
116 | Bool_t fCalculate2DDiffFlow; // calculate differential flow in (pt,eta) (Remark: this is very expensive in terms of CPU time) | |
62e36168 | 117 | Bool_t fCalculateDiffFlowVsEta; // if you set kFALSE only differential flow vs pt is calculated |
dd442cd2 | 118 | Bool_t fStoreDistributions; // store or not distributions of correlations |
119 | Bool_t fCalculateCumulantsVsM; // calculate cumulants versus multiplicity | |
3842bdcd | 120 | Bool_t fCalculateAllCorrelationsVsM; // calculate all correlations versus multiplicity |
8f0fcf13 | 121 | Bool_t fCalculateMixedHarmonics; // calculate all mixed harmonics correlations |
df23c5ae | 122 | Bool_t fCalculateMixedHarmonicsVsM; // calculate all mixed harmonics correlations versus multiplicity |
123 | Bool_t fStoreControlHistograms; // store or not control histograms | |
dd442cd2 | 124 | Bool_t fMinimumBiasReferenceFlow; // store as reference flow in AliFlowCommonHistResults the minimum bias result (kFALSE by default) |
125 | Bool_t fForgetAboutCovariances; // when propagating error forget about the covariances | |
e5834fcb | 126 | Bool_t fStorePhiDistributionForOneEvent; // store phi distribution for one event to illustrate flow |
127 | Double_t fPhiDistributionForOneEventSettings[4]; // [v_min,v_max,refMult_min,refMult_max] | |
b3dacf6b | 128 | // Multiparticle correlations vs multiplicity: |
067e9bc8 | 129 | Int_t fnBinsMult; // number of multiplicity bins for flow analysis versus multiplicity |
130 | Double_t fMinMult; // minimal multiplicity for flow analysis versus multiplicity | |
131 | Double_t fMaxMult; // maximal multiplicity for flow analysis versus multiplicity | |
b3dacf6b | 132 | // Particle weights: |
2ed70edf | 133 | Bool_t fUseParticleWeights; // use any particle weights |
134 | Bool_t fUsePhiWeights; // use phi weights | |
135 | Bool_t fUsePtWeights; // use pt weights | |
136 | Bool_t fUseEtaWeights; // use eta weights | |
403e3389 | 137 | Bool_t fUseTrackWeights; // use track weights (e.g. VZERO sector weights) |
2ed70edf | 138 | TList *fWeightsList; // list with weights |
b3dacf6b | 139 | // Event weights: |
2ed70edf | 140 | TString *fMultiplicityWeight; // event-by-event weights for multiparticle correlations ("combinations","unit" or "multiplicity") |
df23c5ae | 141 | AliFlowCommonConstants::ERefMultSource fMultiplicityIs; // by default "#RPs", other supported options are "RefMultFromESD" = ref. mult. from ESD, and "#POIs" |
2ed70edf | 142 | |
bc92c0cb | 143 | ClassDef(AliAnalysisTaskQCumulants, 1); |
144 | }; | |
145 | ||
146 | //================================================================================================================ | |
147 | ||
148 | #endif | |
149 | ||
150 | ||
151 | ||
152 | ||
153 | ||
154 | ||
155 | ||
156 | ||
157 | ||
158 | ||
159 |