//________________________________________________________________________
void AliAnalysisTaskPIDflowQA::pidTPC(AliESDtrack* t, Int_t pdgcode)
{
- Double_t pinTPCglobal=t->GetInnerParam()->GetP();
+ const AliExternalTrackParam* innerParam = t->GetInnerParam();
+ if (!innerParam) return;
+ Double_t pinTPCglobal=innerParam->GetP();
Float_t sigPion = fESDpid->GetTPCResponse().GetExpectedSignal(pinTPCglobal, AliPID::kPion);
Float_t sigKaon = fESDpid->GetTPCResponse().GetExpectedSignal(pinTPCglobal, AliPID::kKaon);
Float_t sigProton = fESDpid->GetTPCResponse().GetExpectedSignal(pinTPCglobal, AliPID::kProton);
cutsEvent->SetRefMultMethod(AliFlowEventCuts::kV0);
//cutsEvent->SetCentralityPercentileMethod(AliFlowEventCuts::kSPD1tracklets);
cutsEvent->SetNContributorsRange(2);
- cutsEvent->SetPrimaryVertexZrange(-10.,10.);
+ cutsEvent->SetPrimaryVertexZrange(-7.,7.);
cutsEvent->SetCutSPDvertexerAnomaly(); //"Francesco's cut"
cutsEvent->SetCutZDCtiming();
//cutsEvent->SetCutTPCmultiplicityOutliers();
+ //cutsEvent->SetUseCentralityUnchecked();
// RP TRACK CUTS:
AliFlowTrackCuts* cutsRP = new AliFlowTrackCuts("rp cuts");