include Event Plane (only In-Plane / Out-Of-Plane so far) in Event Mixing
authormiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Aug 2012 15:03:54 +0000 (15:03 +0000)
committermiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Aug 2012 15:03:54 +0000 (15:03 +0000)
PWGCF/EBYE/BalanceFunctions/AliAnalysisTaskBFPsi.cxx

index 0592e1a..106f1ec 100755 (executable)
@@ -345,16 +345,22 @@ void AliAnalysisTaskBFPsi::UserCreateOutputObjects() {
   Int_t trackDepth = fMixingTracks; \r
   Int_t poolsize   = 1000;  // Maximum number of events, ignored in the present implemented of AliEventPoolManager\r
    \r
+  // centrality bins\r
   Double_t centralityBins[] = {0.,1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,15.,20.,25.,30.,35.,40.,45.,50.,55.,60.,65.,70.,75.,80.,90.,100.}; // SHOULD BE DEDUCED FROM CREATED ALITHN!!!\r
   Double_t* centbins        = centralityBins;\r
   Int_t nCentralityBins     = sizeof(centralityBins) / sizeof(Double_t) - 1;\r
   \r
-  // bins for second buffer are shifted by 100 cm\r
+  // Zvtx bins\r
   Double_t vertexBins[] = {-10., -7., -5., -3., -1., 1., 3., 5., 7., 10.}; // SHOULD BE DEDUCED FROM CREATED ALITHN!!!\r
   Double_t* vtxbins     = vertexBins;\r
   Int_t nVertexBins     = sizeof(vertexBins) / sizeof(Double_t) - 1;\r
 \r
-  fPoolMgr = new AliEventPoolManager(poolsize, trackDepth, nCentralityBins, centbins, nVertexBins, vtxbins);\r
+  // Event plane angle (Psi) bins\r
+  Double_t psiBins[] = {0.,45.,135.,215.,305.,360.}; // SHOULD BE DEDUCED FROM CREATED ALITHN!!!\r
+  Double_t* psibins     = psiBins;\r
+  Int_t nPsiBins     = sizeof(psiBins) / sizeof(Double_t) - 1;\r
+\r
+  fPoolMgr = new AliEventPoolManager(poolsize, trackDepth, nCentralityBins, centbins, nVertexBins, vtxbins, nPsiBins, psibins);\r
 \r
   if(fESDtrackCuts) fList->Add(fESDtrackCuts);\r
 \r
@@ -493,10 +499,10 @@ void AliAnalysisTaskBFPsi::UserExec(Option_t *) {
       //    FillCorrelations(). Also nMix should be passed in, so a weight\r
       //    of 1./nMix can be applied.\r
       \r
-      AliEventPool* pool = fPoolMgr->GetEventPool(fCentrality, eventMain->GetPrimaryVertex()->GetZ());\r
+      AliEventPool* pool = fPoolMgr->GetEventPool(fCentrality, eventMain->GetPrimaryVertex()->GetZ(),gReactionPlane);\r
       \r
       if (!pool){\r
-       AliFatal(Form("No pool found for centrality = %f, zVtx = %f", fCentrality, eventMain->GetPrimaryVertex()->GetZ()));\r
+       AliFatal(Form("No pool found for centrality = %f, zVtx = %f, psi = %f", fCentrality, eventMain->GetPrimaryVertex()->GetZ(),gReactionPlane));\r
       }\r
       else{\r
        \r