AliPhysics  e6d2b2b (e6d2b2b)
AliAnalysisTaskStudentsML.h
Go to the documentation of this file.
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 * template class for student projects *
9 * author: Marcel Lesch (marcel.lesch@cern.ch) *
10 **********************************************/
11 
12 #ifndef ALIANALYSISTASKSTUDENTSML_H
13 #define ALIANALYSISTASKSTUDENTSML_H
14 
15 #include "AliAnalysisTaskSE.h"
16 #include "AliAODTrack.h"
17 #include "AliAODEvent.h"
18 #include "AliVEvent.h"
19 #include "TProfile.h"
20 #include "TH1F.h"
21 #include "TH1I.h"
22 #include "TComplex.h"
23 #include <TArrayF.h>
24 #include <vector>
25 #include "TMath.h"
26 #include "TF1.h"
27 
28 //================================================================================================================
29 
31  public:
32 
34  AliAnalysisTaskStudentsML(const char *name, Bool_t useParticleWeights=kFALSE);
35  virtual ~AliAnalysisTaskStudentsML();
36  virtual void UserCreateOutputObjects();
37  virtual void UserExec(Option_t *);
38  virtual void Terminate(Option_t *);
39 
40  // 0.) Methods called in the constructor:
41  virtual void InitializeArrays();
42 
43  TComplex Q(Int_t n, Int_t p);
44  TComplex Recursion(Int_t n, Int_t* harmonic, Int_t mult, Int_t skip);
45  // 1.) Methods called in UserCreateOutputObjects():
46  virtual void BookAndNestAllLists();
47  virtual void BookControlHistograms();
48  virtual void BookFinalResultsHistograms();
49 
50 
51  // 2.) Methods called in UserExec(Option_t *):
52  // ...
53  //add all except Cosmetics
54  virtual void Cosmetics();
55  virtual void CalculateQvectors();
56  virtual void Correlation();
57  // 3.) Methods called in Terminate():
58  // ...
59 
60  // 4.) Setters and getters:
61  void SetControlHistogramsList(TList* const chl) {this->fControlHistogramsList = chl;};
63  void SetFinalResultsList(TList* const frl) {this->fFinalResultsList = frl;};
64  TList* GetFinalResultsList() const {return this->fFinalResultsList;}
65 
66  void SetBinning(Int_t const nbins, Float_t min, Float_t max)
67  {
68  this->fNbins = nbins;
69  this->fMinBin = min;
70  this->fMaxBin = max;
71  };
72 
73  /*void SetHolder(Int_t const maxcorrelators)
74  {
75  this->fMaxCorrelator = maxcorrelators;
76  };*/
77 
78  private:
81 
82  // 0.) Base lists:
83  TList *fHistList; // base list to hold all output object (a.k.a. grandmother of all lists)
84 
85  // 1.) Control histograms:
86  TList *fControlHistogramsList; // list to hold all control histograms
87  TH1F *fPtHist; // atrack->Pt()
88  Int_t fNbins; // number of bins
89  Float_t fMinBin; // min bin
90  Float_t fMaxBin; // min bin
91  TH1F *fPhiHist; // atrack->Phi()
92  TH1F *fEtaHist; // atrack->Eta()
93 
94 
95  TH1F *fMultiHisto; // multiplicity histogram atrack->nTracks
96 
97  //2.) Variables for the correlation:
98  Int_t fMaxCorrelator; // maximum of correlation
99  TProfile *fRecursion[2][8];
101 
102  const Int_t kNumber; //number of correlation
103 
104  const Int_t kh1, kh2, kh3, kh4, kh5, kh6, kh7, kh8; //harmonics
105 
106  const Int_t kSum;
108  const Int_t kMaxPower;
111  Float_t fMinCentrality; // min centrality
112  Float_t fMaxCentrality; // max centrality
116  TF1 *func1;
117 
118  TComplex Qvector[17][9];
119 
120  // 3.) Final results:
121 
122  TProfile *fCentrality; // final centrality result
123  TH1F *fCounterHistogram; // for some checks
124  TList *fFinalResultsList; // list to hold all histograms with final results
125 
126 
127 
128  ClassDef(AliAnalysisTaskStudentsML,7);
129 
130 };
131 
132 //================================================================================================================
133 
134 #endif
135 
136 
137 
138 
139 
140 
141 
142 
143 
144 
Bool_t bUseWeights
//how can i set the 8 as fMaxCorrelator??????
virtual void Terminate(Option_t *)
TProfile * fCentrality
//[fMaxHarmonic*fMaxCorrelator+1][fMaxCorrelator+1]
TArrayI * fBin
Particle weights.
TArrayD * fWeights
Azimuthal angles.
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
void SetFinalResultsList(TList *const frl)
void SetBinning(Int_t const nbins, Float_t min, Float_t max)
TF1 * func1
Bins for particle weight.
void SetControlHistogramsList(TList *const chl)
const char Option_t
Definition: External.C:48
const Int_t nbins
bool Bool_t
Definition: External.C:53
TComplex Recursion(Int_t n, Int_t *harmonic, Int_t mult, Int_t skip)
AliAnalysisTaskStudentsML & operator=(const AliAnalysisTaskStudentsML &aatmpf)