AliPhysics  ec7afe5 (ec7afe5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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);
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  void SetBinning(Int_t const nbins, Float_t min, Float_t max)
58  {
59  this->fNbins = nbins;
60  this->fMinBin = min;
61  this->fMaxBin = max;
62  };
63 
65  {
66 
67  this->fymin = ymin;
68  this->fymax = ymax;
69  };
70 
71  private:
74 
75  // 0.) Base lists:
76  TList *fHistList; // base list to hold all output object (a.k.a. grandmother of all lists)
77 
78  // 1.) Control histograms:
79  TList *fControlHistogramsList; // list to hold all control histograms
80  TH1F *fPtHist; // atrack->Pt()
81  Int_t fNbins; // number of bins
82  Float_t fMinBin; // min bin
83  Float_t fMaxBin; // min bin
84 
85  TH1F *fhf;
86  TH1F *fhf2;
87  TLegend *leg_hist;
88 
89 
90 
91  // 2.) Final results:
92  TList *fFinalResultsList; // list to hold all histograms with final results
93 
94  // new start
97 
98  Double_t fsc4[9], fcentral[9], fyerr[9]; // [0] = x, [1] = y
99 
100  TProfile *fhr2;
101  TProfile *fhr3;
102  TProfile *fhrc22;
103  TProfile *fhrc23;
104  TProfile *fhrc24;
105  TProfile *fhrc3;
106  TProfile *fhrc4;
107 
108 
110 
111  TComplex fq6, fq4, fq, fq2, fqq, fq5, fq3, fq1, fq3x, fqq3;
112 
113 
114  // new end
115 
117 
118 };
119 
120 //================================================================================================================
121 
122 #endif
const Double_t ymax
Definition: AddTaskCFDStar.C:7
double Double_t
Definition: External.C:58
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)
ClassDef(AliAnalysisTaskForStudents, 1)
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)