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