]>
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 | ||
2ed70edf | 36 | virtual void UserCreateOutputObjects(); |
37 | virtual void UserExec(Option_t *option); | |
bc92c0cb | 38 | virtual void Terminate(Option_t *); |
39 | ||
2ed70edf | 40 | // common: |
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;}; | |
45 | void SetCalculate2DFlow(Bool_t const calculate2DFlow) {this->fCalculate2DFlow = calculate2DFlow;}; | |
46 | Bool_t GetCalculate2DFlow() const {return this->fCalculate2DFlow;}; | |
47 | void SetStoreDistributions(Bool_t const storeDistributions) {this->fStoreDistributions = storeDistributions;}; | |
48 | Bool_t GetStoreDistributions() const {return this->fStoreDistributions;}; | |
067e9bc8 | 49 | // multiparticle correlations vs multiplicity: |
50 | void SetnBinsMult(Int_t const nbm) {this->fnBinsMult = nbm;}; | |
51 | Int_t GetnBinsMult() const {return this->fnBinsMult;}; | |
52 | void SetMinMult(Double_t const minm) {this->fMinMult = minm;}; | |
53 | Double_t GetMinMult() const {return this->fMinMult;}; | |
54 | void SetMaxMult(Double_t const maxm) {this->fMaxMult = maxm;}; | |
55 | Double_t GetMaxMult() const {return this->fMaxMult;}; | |
2ed70edf | 56 | // particle weights: |
e04e4ec5 | 57 | void SetUsePhiWeights(Bool_t const uPhiW) {this->fUsePhiWeights = uPhiW;}; |
58 | Bool_t GetUsePhiWeights() const {return this->fUsePhiWeights;}; | |
59 | void SetUsePtWeights(Bool_t const uPtW) {this->fUsePtWeights = uPtW;}; | |
60 | Bool_t GetUsePtWeights() const {return this->fUsePtWeights;}; | |
61 | void SetUseEtaWeights(Bool_t const uEtaW) {this->fUseEtaWeights = uEtaW;}; | |
62 | Bool_t GetUseEtaWeights() const {return this->fUseEtaWeights;}; | |
2ed70edf | 63 | // event weights: |
64 | void SetMultiplicityWeight(const char *multiplicityWeight) {*this->fMultiplicityWeight = multiplicityWeight;}; | |
bc92c0cb | 65 | |
66 | private: | |
67 | AliAnalysisTaskQCumulants(const AliAnalysisTaskQCumulants& aatqc); | |
68 | AliAnalysisTaskQCumulants& operator=(const AliAnalysisTaskQCumulants& aatqc); | |
e04e4ec5 | 69 | |
2ed70edf | 70 | AliFlowEventSimple *fEvent; // the input event |
71 | AliFlowAnalysisWithQCumulants *fQC; // Q-cumulant object | |
72 | TList *fListHistos; // collection of output | |
73 | // common: | |
74 | Int_t fHarmonic; // harmonic | |
75 | Bool_t fApplyCorrectionForNUA; // apply correction for non-uniform acceptance | |
76 | Bool_t fCalculate2DFlow; // calculate differential flow in (pt,eta) (Remark: this is very expensive in terms of CPU time) | |
77 | Bool_t fStoreDistributions; // store or not distributions of correlations | |
067e9bc8 | 78 | // multiparticle correlations vs multiplicity: |
79 | Int_t fnBinsMult; // number of multiplicity bins for flow analysis versus multiplicity | |
80 | Double_t fMinMult; // minimal multiplicity for flow analysis versus multiplicity | |
81 | Double_t fMaxMult; // maximal multiplicity for flow analysis versus multiplicity | |
2ed70edf | 82 | // particle weights: |
83 | Bool_t fUseParticleWeights; // use any particle weights | |
84 | Bool_t fUsePhiWeights; // use phi weights | |
85 | Bool_t fUsePtWeights; // use pt weights | |
86 | Bool_t fUseEtaWeights; // use eta weights | |
87 | TList *fWeightsList; // list with weights | |
88 | // event weights: | |
89 | TString *fMultiplicityWeight; // event-by-event weights for multiparticle correlations ("combinations","unit" or "multiplicity") | |
90 | ||
bc92c0cb | 91 | ClassDef(AliAnalysisTaskQCumulants, 1); |
92 | }; | |
93 | ||
94 | //================================================================================================================ | |
95 | ||
96 | #endif | |
97 | ||
98 | ||
99 | ||
100 | ||
101 | ||
102 | ||
103 | ||
104 | ||
105 | ||
106 | ||
107 |