AliPhysics  8d00e07 (8d00e07)
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 
13 #ifndef ALIANALYSISTASKSTUDENTSML_H
14 #define ALIANALYSISTASKSTUDENTSML_H
15 
16 #include "AliAnalysisTaskSE.h"
17 #include "AliAODTrack.h"
18 #include "AliAODEvent.h"
19 #include "AliVEvent.h"
20 #include "TProfile.h"
21 #include "TH1F.h"
22 #include "TH1I.h"
23 #include "TComplex.h"
24 
25 //================================================================================================================
26 
28  public:
29 
31  AliAnalysisTaskStudentsML(const char *name, Bool_t useParticleWeights=kFALSE);
32  virtual ~AliAnalysisTaskStudentsML();
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 
46  // 2.) Methods called in UserExec(Option_t *):
47  // ...
48  //add all except Cosmetics
49 
50  // 3.) Methods called in Terminate():
51  // ...
52 
53  // 4.) Setters and getters:
54  void SetControlHistogramsList(TList* const chl) {this->fControlHistogramsList = chl;};
56  void SetFinalResultsList(TList* const frl) {this->fFinalResultsList = frl;};
57  TList* GetFinalResultsList() const {return this->fFinalResultsList;}
58 
59  void SetBinning(Int_t const nbins, Float_t min, Float_t max)
60  {
61  this->fNbins = nbins;
62  this->fMinBin = min;
63  this->fMaxBin = max;
64  };
65 
66  private:
69 
70  // 0.) Base lists:
71  TList *fHistList; // base list to hold all output object (a.k.a. grandmother of all lists)
72 
73  // 1.) Control histograms:
74  TList *fControlHistogramsList; // list to hold all control histograms
75  TH1F *fPtHist; // atrack->Pt()
76  Int_t fNbins; // number of bins
77  Float_t fMinBin; // min bin
78  Float_t fMaxBin; // min bin
79  TH1F *fPhiHist; // atrack->Phi()
80  TH1F *fEtaHist; // atrack->Eta()
81 
82 
83  TH1F *fMultiHisto; // multiplicity histogram atrack->nTracks
84 
85  // 2.) Final results:
86  Int_t fMaxCorrelator; // whatever
87  TList *fFinalResultsList; // list to hold all histograms with final results
88 
89 
90 
91  ClassDef(AliAnalysisTaskStudentsML,2);
92 
93 };
94 
95 //================================================================================================================
96 
97 #endif
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
virtual void Terminate(Option_t *)
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)
void SetControlHistogramsList(TList *const chl)
const char Option_t
Definition: External.C:48
const Int_t nbins
bool Bool_t
Definition: External.C:53
AliAnalysisTaskStudentsML & operator=(const AliAnalysisTaskStudentsML &aatmpf)