1 #ifndef AliAnalysisTaskDptDptCorrelations_H_Included
2 #define AliAnalysisTaskDptDptCorrelations_H_Included
4 #include "AliAnalysisTaskSE.h"
10 class AliInputEventHandler;
12 //class AliMCEventHandler;
27 class AliAnalysisTaskDptDptCorrelations : public AliAnalysisTaskSE
30 AliAnalysisTaskDptDptCorrelations();
31 AliAnalysisTaskDptDptCorrelations(const TString & name);
34 AliAnalysisTaskDptDptCorrelations(const AliAnalysisTaskDptDptCorrelations&);
35 const AliAnalysisTaskDptDptCorrelations& operator=(const AliAnalysisTaskDptDptCorrelations&);
38 virtual ~AliAnalysisTaskDptDptCorrelations();
40 // Implementation of interace methods
41 //virtual void ConnectInputData(Option_t *);
42 virtual void UserCreateOutputObjects();
43 virtual void UserExec(Option_t *option);
44 virtual void FinishTaskOutput();
45 virtual void Terminate(Option_t* );
46 virtual void createHistograms();
47 virtual void finalizeHistograms();
49 virtual void addToList(TH1 *h);
51 TH1D * createHisto1D(const TString & name, const TString & title,int n, double xmin, double xmax,const TString & xTitle, const TString & yTitle);
52 TH1D * createHisto1D(const TString & name, const TString & title,int n, double * bins,const TString & xTitle, const TString & yTitle);
53 TH2D * createHisto2D(const TString & name, const TString & title,
54 int nx, double xmin, double xmax, int ny, double ymin, double ymax, const TString & xTitle, const TString & yTitle, const TString & zTitle);
55 TH2D * createHisto2D(const TString & name, const TString & title, int nx, double* xbins, int ny, double ymin, double ymax,
56 const TString & xTitle, const TString & yTitle, const TString & zTitle);
58 TH1F * createHisto1F(const TString & name, const TString & title,int n, double xmin, double xmax,const TString & xTitle, const TString & yTitle);
59 TH1F * createHisto1F(const TString & name, const TString & title,int n, double * bins,const TString & xTitle, const TString & yTitle);
60 TH2F * createHisto2F(const TString & name, const TString & title,
61 int nx, double xmin, double xmax, int ny, double ymin, double ymax, const TString & xTitle, const TString & yTitle, const TString & zTitle);
62 TH2F * createHisto2F(const TString & name, const TString & title, int nx, double* xbins, int ny, double ymin, double ymax,
63 const TString & xTitle, const TString & yTitle, const TString & zTitle);
64 TH3F * createHisto3F(const TString & name, const TString & title,
65 int nx, double xmin, double xmax, int ny, double ymin, double ymax, int nz, double zmin, double zmax,
66 const TString & xTitle, const TString & yTitle, const TString & zTitle);
67 TProfile * createProfile(const TString & title,const TString & description, int n, double xMin,double xMax,
68 const TString & xTitle, const TString & yTitle);
69 TProfile * createProfile(const TString & name,const TString & description,
71 const TString & xTitle, const TString & yTitle);
73 //________________________________________________________________________
75 float * getFloatArray(int size, float v);
76 double * getDoubleArray(int size, double v);
77 void fillHistoWithArray(TH1 * h, double * array, int size);
78 void fillHistoWithArray(TH2 * h, double * array, int size1, int size2);
79 void fillHistoWithArray(TH3 * h, double * array, int size1, int size2, int size3);
80 void fillHistoWithArray(TH1 * h, float * array, int size);
81 void fillHistoWithArray(TH2 * h, float * array, int size1, int size2);
82 void fillHistoWithArray(TH3 * h, float * array, int size1, int size2, int size3);
84 virtual void SetDebugLevel( int v ) { _debugLevel = v; }
85 virtual void SetSinglesOnly(int v) { _singlesOnly = v; }
86 virtual void SetUseWeights(int v) { _useWeights = v; }
87 virtual void SetSameFilter(int v) { _sameFilter = v; }
89 virtual void SetRejectPileup(int v) { _rejectPileup = v; }
90 virtual void SetRejectPairConversion(int v) { _rejectPairConversion = v; }
91 virtual void SetVertexZMin(double v) { _vertexZMin = v; }
92 virtual void SetVertexZMax(double v) { _vertexZMax = v; }
93 virtual void SetVertexXYMin(double v) { _vertexXYMin = v; }
94 virtual void SetVertexXYMax(double v) { _vertexXYMax = v; }
95 virtual void SetCentralityMethod(int v) { _centralityMethod = v; }
96 virtual void SetCentrality(double centralityMin, double centralityMax)
98 _centralityMin = centralityMin;
99 _centralityMax = centralityMax;
101 virtual void SetRequestedCharge_1(int v) { _requestedCharge_1 = v; }
102 virtual void SetRequestedCharge_2(int v) { _requestedCharge_2 = v; }
103 virtual void SetPtMin1( double v) { _min_pt_1 = v; }
104 virtual void SetPtMax1( double v) { _max_pt_1 = v; }
105 virtual void SetEtaMin1(double v) { _min_eta_1 = v; }
106 virtual void SetEtaMax1(double v) { _max_eta_1 = v; }
107 virtual void SetPtMin2( double v) { _min_pt_2 = v; }
108 virtual void SetPtMax2( double v) { _max_pt_2 = v; }
109 virtual void SetEtaMin2(double v) { _min_eta_2 = v; }
110 virtual void SetEtaMax2(double v) { _max_eta_2 = v; }
111 virtual void SetDcaZMin(double v) { _dcaZMin = v; }
112 virtual void SetDcaZMax(double v) { _dcaZMax = v; }
113 virtual void SetDcaXYMin(double v) { _dcaXYMin = v; }
114 virtual void SetDcaXYMax(double v) { _dcaXYMax = v; }
115 virtual void SetDedxMin(double v) { _dedxMin = v; }
116 virtual void SetDedxMax(double v) { _dedxMax = v; }
117 virtual void SetNClusterMin(int v) { _nClusterMin = v; }
118 virtual void SetTrackFilterBit(int v) { _trackFilterBit = v; }
119 virtual void SetWeigth_1(TH3F * v) { _weight_1 = v; }
120 virtual void SetWeigth_2(TH3F * v) { _weight_2 = v; }
125 // Handlers and events
126 AliAODEvent* fAODEvent; //! AOD Event
127 AliESDEvent* fESDEvent; //! ESD Event
128 AliInputEventHandler* fInputHandler; //! Generic InputEventHandler
130 // Histogram settings
131 //TList* _inputHistoList;
132 TList* _outputHistoList;
139 //configuration variables and filters
145 int _rejectPairConversion;
150 int _centralityMethod;
151 double _centralityMin;
152 double _centralityMax;
153 int _requestedCharge_1;
154 int _requestedCharge_2;
165 // event and track wise variables
189 //float * _phi_1; //!
191 float *_correction_1; //!
207 float *_correction_2; //!
210 float * _correctionWeight_1; //!
211 float * _correctionWeight_2; //!
214 int _nBins_M0; double _min_M0; double _max_M0; double _width_M0;
215 int _nBins_M1; double _min_M1; double _max_M1; double _width_M1;
216 int _nBins_M2; double _min_M2; double _max_M2; double _width_M2;
217 int _nBins_M3; double _min_M3; double _max_M3; double _width_M3;
218 int _nBins_M4; double _min_M4; double _max_M4; double _width_M4;
219 int _nBins_M5; double _min_M5; double _max_M5; double _width_M5;
220 int _nBins_M6; double _min_M6; double _max_M6; double _width_M6;
222 int _nBins_vertexZ; double _min_vertexZ; double _max_vertexZ; double _width_vertexZ;
224 int _nBins_pt_1; double _min_pt_1; double _max_pt_1; double _width_pt_1;
225 int _nBins_phi_1; double _min_phi_1; double _max_phi_1; double _width_phi_1;
226 int _nBins_eta_1; double _min_eta_1; double _max_eta_1; double _width_eta_1;
228 int _nBins_etaPhiPt_1;
229 int _nBins_zEtaPhiPt_1;
231 int _nBins_pt_2; double _min_pt_2; double _max_pt_2; double _width_pt_2;
232 int _nBins_phi_2; double _min_phi_2; double _max_phi_2; double _width_phi_2;
233 int _nBins_eta_2; double _min_eta_2; double _max_eta_2; double _width_eta_2;
235 int _nBins_etaPhiPt_2;
236 int _nBins_zEtaPhiPt_2;
238 int _nBins_etaPhi_12;
254 double __s2ptptNw_12;
258 double * __n1_1_vsPt; //!
259 double * __n1_1_vsEtaPhi; //!
260 double * __s1pt_1_vsEtaPhi; //!
261 float * __n1_1_vsZEtaPhiPt; //!
263 double * __n1_2_vsPt; //!
264 double * __n1_2_vsEtaPhi; //!
265 double * __s1pt_2_vsEtaPhi; //!
266 float * __n1_2_vsZEtaPhiPt; //!
268 //double * __n2_12_vsPtPt;
269 //double * __n2_12_vsEtaPhi;
270 //double * __s2ptpt_12_vsEtaPhi;
271 //double * __s2PtN_12_vsEtaPhi;
272 //double * __s2NPt_12_vsEtaPhi;
274 double * __n2_12_vsPtPt; //!
275 float * __n2_12_vsEtaPhi; //!
276 float * __s2ptpt_12_vsEtaPhi; //!
277 float * __s2PtN_12_vsEtaPhi; //!
278 float * __s2NPt_12_vsEtaPhi; //!
282 TH1D * _eventAccounting;
292 // PARTICLE 1 (satisfies filter 1)
293 // Primary filled quantities
295 TH2F * _n1_1_vsEtaVsPhi;
296 TH2F * _s1pt_1_vsEtaVsPhi;
297 TH3F * _n1_1_vsZVsEtaVsPhiVsPt;
298 TProfile * _n1_1_vsM; // w/ weight
299 TProfile * _s1pt_1_vsM;
300 TProfile * _n1Nw_1_vsM; // w/o weight
301 TProfile * _s1ptNw_1_vsM;
303 TH2F * _corrDedxVsP_1;
306 // PARTICLE 2 (satisfies filter 2)
307 // Primary filled quantities
309 TH2F * _n1_2_vsEtaVsPhi;
310 TH2F * _s1pt_2_vsEtaVsPhi;
311 TH3F * _n1_2_vsZVsEtaVsPhiVsPt;
312 TProfile * _n1_2_vsM;
313 TProfile * _s1pt_2_vsM;
314 TProfile * _n1Nw_2_vsM; // w/o weight
315 TProfile * _s1ptNw_2_vsM;
317 TH2F * _corrDedxVsP_2;
321 TH1F * _n2_12_vsEtaPhi;
322 TH2F * _n2_12_vsPtVsPt;
323 TH1F * _s2PtPt_12_vsEtaPhi;
324 TH1F * _s2PtN_12_vsEtaPhi;
325 TH1F * _s2NPt_12_vsEtaPhi;
327 TProfile * _n2_12_vsM;
328 TProfile * _s2PtPt_12_vsM;
329 TProfile * _s2PtN_12_vsM;
330 TProfile * _s2NPt_12_vsM;
331 TProfile * _n2Nw_12_vsM;
332 TProfile * _s2PtPtNw_12_vsM;
333 TProfile * _s2PtNNw_12_vsM;
334 TProfile * _s2NPtNw_12_vsM;
359 TString intBinCorrName;
365 TString pair_12_Name;
366 TString pair_13_Name;
367 TString pair_23_Name;
380 TString s2DptDptName;
382 TString s2PtPtNwName;
396 TString _title_counts;
406 TString _title_eta_1;
407 TString _title_phi_1;
409 TString _title_etaPhi_1;
411 TString _title_SumPt_1;
412 TString _title_AvgPt_1;
413 TString _title_AvgN_1;
414 TString _title_AvgSumPt_1;
416 TString _title_eta_2;
417 TString _title_phi_2;
419 TString _title_etaPhi_2;
421 TString _title_SumPt_2;
422 TString _title_AvgPt_2;
423 TString _title_AvgN_2;
424 TString _title_AvgSumPt_2;
426 TString _title_etaPhi_12;
428 TString _title_AvgN2_12;
429 TString _title_AvgSumPtPt_12;
430 TString _title_AvgSumPtN_12;
431 TString _title_AvgNSumPt_12;
442 ClassDef(AliAnalysisTaskDptDptCorrelations,1)