message: AliAnalysisTaskJQ: changing FB to 768 and skipping pt bins where pTtrig and pTassoc overlap
diff: @@ -181,11 +181,12 @@ Int_t AliAnalysisTaskJetQ::FindGivenPt(const Double_t &ptMin, const Double_t &pt
  Int_t ind=-1;
  AliAODTrack *lTrack;
  Double_t lPtMax=0;
  + Double_t lPtCur=0;
  for(Int_t i=0;i<fAOD->GetNumberOfTracks();i++) {
  lTrack = (AliAODTrack*)fAOD->GetTrack(i);
  - if(!lTrack->TestFilterBit(96)) continue;
  - lPtMax = lTrack->Pt();
  - if(lPtMax > ptMin && lPtMax < ptMax) { ind=i; break; };
  + if(!lTrack->TestFilterBit(768)) continue;
  + lPtCur = lTrack->Pt();
  + if(lPtCur > ptMin && lPtCur < ptMax && lPtCur > lPtMax) { lPtMax=lPtCur; ind=i; };
  };
  return ind;
  }
  @@ -197,11 +198,14 @@ Int_t AliAnalysisTaskJetQ::FillCorrelations(Int_t &triggerIndex, Int_t &centVal,
  Double_t l_TrPhi = lTriggerTrack->Phi();
  Int_t centBin = centVal-1;
  fNtriggers[centBin]->Fill(vzValue);
  + //Fetch pT trigger & make sure we are not in the same pT bin below
  + lTrack = (AliAODTrack*)fAOD->GetTrack(triggerIndex);
  + Int_t trigBin = fPtAxis->FindBin(lTrack->Pt());
  for(Int_t i=0;i<fAOD->GetNumberOfTracks();i++) {
  lTrack = (AliAODTrack*)fAOD->GetTrack(i);
  - if(!lTrack->TestFilterBit(96)) continue;
  + if(!lTrack->TestFilterBit(768)) continue;
  Int_t ptInd = fPtAxis->FindBin(lTrack->Pt());
  - if(!ptInd || ptInd>fPtAxis->GetNbins()) continue;
  + if(!ptInd || ptInd>fPtAxis->GetNbins() || ptInd == trigBin) continue;
  ptInd--;
  Double_t d_Eta = l_TrEta-lTrack->Eta();
  Double_t d_Phi = l_TrPhi-lTrack->Phi();
  @@ -224,12 +228,15 @@ Int_t AliAnalysisTaskJetQ::FillMixedEvent(Int_t &triggerIndex, AliEventPool *l_p
  Double_t l_AsPt;
  TObjArray *mixTracks;
  Int_t centInd = centVal-1;
  + //Fetch pT trigger & make sure we are not in the same pT bin below
  + lTrack = (AliAODTrack*)fAOD->GetTrack(triggerIndex);
  + Int_t trigBin = fPtAxis->FindBin(lTrack->Pt());
  for(Int_t i=0;i<l_pool->GetCurrentNEvents();i++) {
  mixTracks = l_pool->GetEvent(i);
  TObjArrayIter *myIt = new TObjArrayIter(mixTracks);
  while(AliBasicParticle *rTr = (AliBasicParticle*)myIt->Next()) {
  Int_t ptInd = fPtAxis->FindBin(rTr->Pt());
  - if(!ptInd || ptInd>fPtAxis->GetNbins()) continue;
  + if(!ptInd || ptInd>fPtAxis->GetNbins() || ptInd==trigBin) continue;
  ptInd-=1;
  l_AsEta = l_TrEta - rTr->Eta();
  l_AsPhi = l_TrPhi - rTr->Phi();
  