message: Correction to run with data
diff: @@ -647,13 +647,14 @@ void AliAnalysisTaskChargedVsRT::UserExec(Option_t *)
  fMCStack = fMC->Stack();
  }
  - AliHeader* headerMC = fMC->Header();
  + AliHeader* headerMC;
  Bool_t isGoodVtxPosMC = kFALSE;
  vector<Float_t> ptMc;
  vector<Float_t> phiMc;
  vector<Int_t> idMc;
  if (fUseMC){
  + headerMC = fMC->Header();
  AliGenEventHeader* genHeader = headerMC->GenEventHeader();
  TArrayF vtxMC(3); // primary vertex MC
  vtxMC[0]=9999; vtxMC[1]=9999; vtxMC[2]=9999; //initialize with dummy
  