AliPhysics  9b6b435 (9b6b435)
AliAnalysisTaskForStudents.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 **************************************/
10 
11 #ifndef ALIANALYSISTASKFORSTUDENTS_H
12 #define ALIANALYSISTASKFORSTUDENTS_H
13 
14 #include "AliAnalysisTaskSE.h"
15 #include "AliAODTrack.h"
16 #include "AliAODEvent.h"
17 #include "AliVEvent.h"
18 #include "TProfile.h"
19 #include "TLegend.h"
20 #include "TH1F.h"
21 #include "TH1I.h"
22 #include "TGraphErrors.h"
23 #include "TComplex.h"
24 
25 //================================================================================================================
26 
28  public:
29 
31  AliAnalysisTaskForStudents(const char *name, Bool_t useParticleWeights=kFALSE);
32  virtual ~AliAnalysisTaskForStudents();
33  virtual void UserCreateOutputObjects();
34  virtual void UserExec(Option_t *);
35  virtual void Terminate(Option_t *);
36 
37  // 0.) Methods called in the constructor:
38  virtual void InitializeArrays();
39 
40  // 1.) Methods called in UserCreateOutputObjects():
41  virtual void BookAndNestAllLists();
42  virtual void BookControlHistograms();
43  virtual void BookFinalResultsHistograms();
44 
45  // 2.) Methods called in UserExec(Option_t *):
46  // ...
47 
48  // 3.) Setters and getters:
49  void SetControlHistogramsList(TList* const chl) {this->fControlHistogramsList = chl;};
51  void SetFinalResultsList(TList* const frl) {this->fFinalResultsList = frl;};
52  TList* GetFinalResultsList() const {return this->fFinalResultsList;}
53 
54  void SetNumValue(Int_t const dummy){this->num = dummy;};
55  //TList* GetFinalResultsList() const {return this->fFinalResultsList;}
56 
57 
58  void SetBinning(Int_t const nbins, Float_t min, Float_t max)
59  {
60  this->fNbins = nbins;
61  this->fMinBin = min;
62  this->fMaxBin = max;
63  };
64 
66  {
67  this->fNCentralityBins = nbins;
68  this->fMinCentrality = min;
69  this->fMaxCentrality = max;
70  };
71 
73  {
74  this->fymin = ymin;
75  this->fymax = ymax;
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 
92  TH1F *fCentralityHist; // ams->GetMultiplicityPercentile("V0M")
93  Int_t fNCentralityBins; // number of centrality bins
94  Float_t fMinCentrality; // min centrality
95  Float_t fMaxCentrality; // max centrality
96 
97  TH1F *fMultHist;
98  TH1F *fPhiHist;
99  TH1F *fEtaHist;
100 
101  TH1F *fhf;
102  TH1F *fhf2;
103  TLegend *leg_hist;
104 
105 
106 
107  // 2.) Final results:
108  TList *fFinalResultsList; // list to hold all histograms with final results
109 
110  // new start
113 
114  Double_t fsc4[9], fcentral[9], fyerr[9]; // [0] = x, [1] = y
115 
116  TProfile *fhr2;
117  TProfile *fhr3;
118  TProfile *fhrc22;
119  TProfile *fhrc23;
120  TProfile *fhrc24;
121  TProfile *fhrc3;
122  TProfile *fhrc4;
123 
124 
126 
127  TComplex fq6, fq4, fq, fq2, fqq, fq5, fq3, fq1, fq3x, fqq3;
128 
129 
130  // new end
131 
132  ClassDef(AliAnalysisTaskForStudents,3);
133 
134 };
135 
136 //================================================================================================================
137 
138 #endif
139 
140 
141 
142 
143 
144 
145 
146 
147 
148 
149 
const Double_t ymax
Definition: AddTaskCFDStar.C:7
double Double_t
Definition: External.C:58
void SetCentralityBinning(Int_t const nbins, Float_t min, Float_t max)
void SetBinning(Int_t const nbins, Float_t min, Float_t max)
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
void SetControlHistogramsList(TList *const chl)
AliAnalysisTaskForStudents & operator=(const AliAnalysisTaskForStudents &aatmpf)
void SetFinalResultsList(TList *const frl)
const Double_t ymin
Definition: AddTaskCFDStar.C:6
void Setylimit(Double_t ymin, Double_t ymax)
const char Option_t
Definition: External.C:48
const Int_t nbins
bool Bool_t
Definition: External.C:53
void SetNumValue(Int_t const dummy)