update from Prabhat
authorlmilano <lmilano@cern.ch>
Thu, 29 May 2014 08:46:09 +0000 (10:46 +0200)
committerlmilano <lmilano@cern.ch>
Thu, 29 May 2014 08:46:09 +0000 (10:46 +0200)
PWGCF/Correlations/DPhi/AliAnalysisTaskDptDptCorrelations.cxx

index bf12531..7c92a6c 100644 (file)
@@ -1167,6 +1167,8 @@ void  AliAnalysisTaskDptDptCorrelations::UserExec(Option_t */*option*/)
       
       //*********************************************************
       TExMap *trackMap = new TExMap();//Mapping matrix----                                            
+      TRandom *ran = new TRandom(); //random eff. correction
+
       //1st loop track for Global tracks                                                                                
       for(Int_t i = 0; i < _nTracks; i++)
        {
@@ -1192,7 +1194,16 @@ void  AliAnalysisTaskDptDptCorrelations::UserExec(Option_t */*option*/)
          
          bitOK  = t->TestFilterBit(_trackFilterBit);
          if (!bitOK) continue; //128bit or 272bit
-                 
+
+         //------- Eff. test----------
+         Double_t yy = (1-0.7)/1.8;
+          Double_t zz = (pt-0.2);
+          Double_t effValue = 0.7+yy*zz;
+          Double_t R = ran->Uniform(0,1);
+
+          if(R > effValue) continue;
+         //---------------------------
+
          Int_t gID = t->GetID();
          newAodTrack = gID >= 0 ?t : fAODEvent->GetTrack(trackMap->GetValue(-1-gID));
          
@@ -1241,10 +1252,10 @@ void  AliAnalysisTaskDptDptCorrelations::UserExec(Option_t */*option*/)
 
 
          //==== QA ===========================
-         _dcaz->Fill(DCAZ);
-         _dcaxy->Fill(DCAXY);
-         _etadis->Fill(eta);
-         _phidis->Fill(phi);
+         //_dcaz->Fill(DCAZ);
+         //_dcaxy->Fill(DCAXY);
+         //_etadis->Fill(eta);
+         //_phidis->Fill(phi);
          //===================================
          //*************************************************