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