message: Fix filling of MC sparses
diff: @@ -263,7 +263,7 @@ void AliAnalysisTaskSEDmesonTree::UserExec(Option_t * /*option*/)
  arrayCand = dynamic_cast<TClonesArray *>(fAOD->GetList()->FindObject("Charm2Prong"));
  break;
  case kDplustoKpipi:
  - arrayCand = dynamic_cast<TClonesArray *>(fAOD-->GetList()>FindObject("Charm3Prong"));
  + arrayCand = dynamic_cast<TClonesArray *>(fAOD->GetList()->FindObject("Charm3Prong"));
  break;
  case kDstartoD0pi:
  arrayCand = dynamic_cast<TClonesArray *>(fAOD->GetList()->FindObject("Dstar"));
  @@ -560,14 +560,23 @@ void AliAnalysisTaskSEDmesonTree::UserExec(Option_t * /*option*/)
  var4nSparse.insert(var4nSparse.end(), modelPred.begin(), modelPred.end());
  fnSparseReco[0]->Fill(var4nSparse.data());
  if(fReadMC)
  + {
  + if(labD >= 0 && orig == 4)
  {
  fnSparseReco[1]->Fill(var4nSparse.data());
  + }
  + else if(labD < 0)
  + {
  fnSparseReco[3]->Fill(var4nSparse.data());
  + }
  + else if(labD >= 0 && orig == 5)
  + {
  var4nSparse.insert(var4nSparse.end(), ptB);
  fnSparseReco[2]->Fill(var4nSparse.data());
  }
  }
  }
  + }
  if(fDecChannel == kD0toKpi && isSelected >= 2)
  {
  isMLsel = fMLResponse->IsSelectedMultiClass(modelPred, dMeson, fAOD->GetMagneticField(), pidHF, 1);
  @@ -585,15 +594,24 @@ void AliAnalysisTaskSEDmesonTree::UserExec(Option_t * /*option*/)
  var4nSparse.insert(var4nSparse.end(), modelPred.begin(), modelPred.end());
  fnSparseReco[0]->Fill(var4nSparse.data());
  if(fReadMC)
  + {
  + if(labD >= 0 && orig == 4)
  {
  fnSparseReco[1]->Fill(var4nSparse.data());
  + }
  + else if(labD < 0)
  + {
  fnSparseReco[3]->Fill(var4nSparse.data());
  + }
  + else if(labD >= 0 && orig == 5)
  + {
  var4nSparse.insert(var4nSparse.end(), ptB);
  fnSparseReco[2]->Fill(var4nSparse.data());
  }
  }
  }
  }
  + }
  if (unsetVtx)
  dMeson->UnsetOwnPrimaryVtx();
  