AliPhysics  aaf9c62 (aaf9c62)
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
53  // called at end of analysis
54  virtual void Terminate(Option_t* option);
55 
56  void SetZDCCalibList(TList* const wlist) {this->fZDCCalibList = wlist;}
57  TList* GetZDCCalibList() const {return this->fZDCCalibList;}
58  void SetTowerEqList(TList* const wlist) {this->fTowerEqList = wlist;}
59  TList* GetTowerEqList() const {return this->fTowerEqList;}
60  void GetZDCQVectors(Double_t QAX, Double_t QAY, Double_t QCX, Double_t QCY);
61 
62 private:
63 
67  TList *fZDCCalibList; // list for ZDC Q-vector re-centering
68  TList *fTowerEqList; // list for ZDC gain equalization
69  TProfile* fZDCQHist[4];
70  TProfile3D* fZDCVtxHist[4];
71  TProfile2D* fZDCEcomTotHist[4];
74  TProfile3D *fZDCVtxCenHistMagPol[10][8];
75  TProfile3D* fZDCVtxCenHist[10][4];
77 
78  TH3D *fZDCQVecVtxCenEZDC3D[10][10][4];
79  TH1D *fTowerGainEq[2][5];
80 
83  const static Int_t fnRun = 125; //
84  Int_t fRunList[fnRun]; // run list
86  TArrayD fAvVtxPosX; // average vx position vs run number
87  TArrayD fAvVtxPosY; // average vy position vs run number
88  TArrayD fAvVtxPosZ; // average vz position vs run number
90  AliFlowEvent* fFlowEvent; // flowevent
91 
92  AliAnalysisUtils* fAnalysisUtils;
93  AliMultSelection* fMultSelection;
94 
95 
98 
99  ClassDef(AliAnalysisTaskZDCEP,3);
100 };
101 
102 #endif
103 
void GetZDCQVectors(Double_t QAX, Double_t QAY, Double_t QCX, Double_t QCY)
double Double_t
Definition: External.C:58
Double_t fZDCGainAlpha
output list containing QA histograms
void Centrality()
void SetZDCCalibList(TList *const wlist)
TH3D * fZDCQVecVtxCenEZDC3D[10][10][4]
AliFlowVector * fZDCFlowVect[2]
virtual void Terminate(Option_t *option)
TList * fHistList
output list containing ZDC q-vectors
int Int_t
Definition: External.C:63
virtual void UserCreateOutputObjects()
TList * GetTowerEqList() const
TH1D * fZDCVtxFitCenProjHist[4][3]
Definition: External.C:252
Definition: External.C:212
AliAnalysisUtils * fAnalysisUtils
TList * GetZDCCalibList() const
TProfile3D * fZDCVtxCenHistMagPol[10][8]
TArrayD fAvVtxPosX
run-by-run list
virtual void UserExec(Option_t *option)
AliAnalysisTaskZDCEP & operator=(const AliAnalysisTaskZDCEP &)
void SetTowerEqList(TList *const wlist)
virtual Int_t GetCenBin(Double_t Centrality)
Int_t fCachedRunNum
ZDC q-vectors.
TProfile2D * fZDCEcomTotHist[4]
static const Int_t fnRun
TProfile3D * fZDCVtxHist[4]
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
AliMultSelection * fMultSelection
TProfile3D * fZDCVtxCenHist[10][4]