AliPhysics  f9b5d69 (f9b5d69)
AliAnalysisTaskZDCEP.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
7  * Permission to use, copy, modify and distribute this software and its *
8  * documentation strictly for non-commercial purposes is hereby granted *
9  * without fee, provided that the above copyright notice appears in all *
10  * copies and that both the copyright notice and this permission notice *
11  * appear in the supporting documentation. The authors make no claims *
12  * about the suitability of this software for any purpose. It is *
13  * provided "as is" without express or implied warranty. *
14  **************************************************************************/
15 
16 /***********************************
17  * ZDC Event Plane *
18  * *
19  * author: Jacopo Margutti *
20  * email: jacopo.margutti@cern.ch *
21  ***********************************/
22 
23 #ifndef AliAnalysisTaskZDCEP_H
24 #define AliAnalysisTaskZDCEP_H
25 
26 #include "AliAnalysisTaskSE.h"
27 #include "AliAnalysisUtils.h"
28 #include "AliMultSelection.h"
29 
30 class AliAnalysisUtils;
31 class AliAnalysisTaskSE;
32 class AliMultSelection;
33 class TProfile;
34 class TProfile2D;
35 class TProfile3D;
36 class TH3D;
37 class AliFlowEvent;
38 
40 {
41 public:
42  // two class constructors
44  AliAnalysisTaskZDCEP(const char *name);
45  // class destructor
46  virtual ~AliAnalysisTaskZDCEP();
47  // called once at beginning or runtime
48  virtual void UserCreateOutputObjects();
49  // called for each event
50  virtual void UserExec(Option_t* option);
51  // get centrality bin
52  virtual Int_t GetCenBin(Double_t Centrality);
53  // called at end of analysis
54  virtual void Terminate(Option_t* option);
55 
56  enum DataSet {
59  };
60 
61  void SetZDCCalibList(TList* const wlist) {this->fZDCCalibList = wlist;}
62  TList* GetZDCCalibList() const {return this->fZDCCalibList;}
63  void SetTowerEqList(TList* const wlist) {this->fTowerEqList = wlist;}
64  TList* GetTowerEqList() const {return this->fTowerEqList;}
65  void GetZDCQVectors(Double_t QAX, Double_t QAY, Double_t QCX, Double_t QCY);
66  void SetDataSet(DataSet set) {this->fDataSet = set;};
67  DataSet GetDataSet() const {return this->fDataSet;}
68 
69 private:
70 
75  TList *fZDCCalibList; // list for ZDC Q-vector re-centering
76  TList *fTowerEqList; // list for ZDC gain equalization
77  TProfile* fZDCQHist[4];
78  TProfile3D* fZDCVtxHist[4];
79  TProfile2D* fZDCEcomTotHist[4];
82  TProfile3D *fZDCVtxCenHistMagPol[10][8];
83  TProfile3D* fZDCVtxCenHist[10][4];
85  TH2D* fZDCQvec2Ddis[10][2];
86  TProfile3D* fZDCCenVtxZ;
87 
88  // QA histograms
90  TProfile* fQVecCen[4][2];
91  TProfile3D* fQVecVtx[4][2];
92  TProfile* fQVecCorCen[4][2];
93  // TProfile* fQVecDeltaC[4][2]; //!
94  // TProfile* fQVecCorDeltaC[4][2]; //!
99 
102 
107  const static Int_t fnRunMax = 200; //
109  TProfile2D* fQVecRbRCen[fnRunMax];
110  TProfile3D* fQVecRbRVtxZ[fnRunMax];
111  const static Int_t fCRCnTow = 5;
116  TArrayI fRunList; // run list
117  TArrayD fAvVtxPosX; // average vx position vs run number
118  TArrayD fAvVtxPosY; // average vy position vs run number
119  TArrayD fAvVtxPosZ; // average vz position vs run number
121  AliFlowEvent* fFlowEvent; // flowevent
122 
123  AliAnalysisUtils* fAnalysisUtils;
124  AliMultSelection* fMultSelection;
125 
126 
129 
130  ClassDef(AliAnalysisTaskZDCEP,8);
131 };
132 
133 #endif
void GetZDCQVectors(Double_t QAX, Double_t QAY, Double_t QCX, Double_t QCY)
double Double_t
Definition: External.C:58
static const Int_t fnRunMax
void SetDataSet(DataSet set)
Double_t fZDCGainAlpha
output list for QA histograms (slot 2)
void SetZDCCalibList(TList *const wlist)
TH2D * fZNATowerSpec[fCRCnTow]
ZNC tower spectra.
TH3D * fZDCQVecVtxCenEZDC3D[10][10][4]
AliFlowVector * fZDCFlowVect[2]
TProfile * fZNATower[fnRunMax][fCRCnTow]
ZNC tower spectra.
TH2D * fZNCTowerSpec[fCRCnTow]
ZNA tower spectra.
static const Int_t fCRCnTow
TArrayI fRunList
ZNA tower spectra.
virtual void Terminate(Option_t *option)
TList * fHistList
list containing ZDC q-vectors
TList * fQVecListRun[fnRunMax]
TProfile3D * fQVecRbRVtxZ[fnRunMax]
TList * fQAList
list for calibration histograms
int Int_t
Definition: External.C:63
virtual void UserCreateOutputObjects()
TList * GetTowerEqList() const
TProfile3D * fQVecVtx[4][2]
TH1D * fZDCVtxFitCenProjHist[4][3]
Definition: External.C:252
Definition: External.C:228
Definition: External.C:212
AliAnalysisUtils * fAnalysisUtils
TList * GetZDCCalibList() const
TProfile3D * fZDCVtxCenHistMagPol[10][8]
virtual void UserExec(Option_t *option)
TProfile2D * fQVecRbRCen[fnRunMax]
run-by-run list
AliAnalysisTaskZDCEP & operator=(const AliAnalysisTaskZDCEP &)
void SetTowerEqList(TList *const wlist)
TProfile * fQVecCorCen[4][2]
virtual Int_t GetCenBin(Double_t Centrality)
Int_t fCachedRunNum
ZDC q-vectors.
TProfile2D * fZDCEcomTotHist[4]
TProfile3D * fZDCVtxHist[4]
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
TProfile * fQVecCen[4][2]
QA list per magnet polarity.
TProfile * fZNCTower[fnRunMax][fCRCnTow]
AliMultSelection * fMultSelection
DataSet GetDataSet() const
TProfile3D * fZDCVtxCenHist[10][4]