message: mc weight initialised to 1
diff: @@ -596,7 +596,7 @@ void AliAnalysisTrackingUncertaintiesAOT::ProcessTracks(AliMCEvent *mcEvent) {
  //
  AliMCSpectraWeightsHandler* mcWeightsHandler = static_cast<AliMCSpectraWeightsHandler*>(fESD->FindListObject("fMCSpectraWeights"));
  AliMCSpectraWeights* fMCSpectraWeights = (mcWeightsHandler) ? mcWeightsHandler->fMCSpectraWeight : nullptr;
  - Double_t weight = -9999.9999;
  + Double_t weight = 1.0;
  TParticle* partTP;
  Float_t como;
  AliMCParticle* mcPartTP;
  @@ -633,36 +633,52 @@ void AliAnalysisTrackingUncertaintiesAOT::ProcessTracks(AliMCEvent *mcEvent) {
  else fHistSelV0multNTPCout->Fill(V0mult,nTPCout);
  }
  +
  + //
  + // start loop on tracks
  + //
  +
  for (Int_t i=0;i<fESD->GetNumberOfTracks();++i) {
  isph=-1;
  code=-999;
  mfl=-999;
  uniqueID=-999;
  - //
  isLambda=0;
  iWeightedPart=0;
  //
  + // here we have the track!
  //
  -
  AliESDtrack *track =fESD->GetTrack(i);
  if (!track) continue;
  -
  -
  -
  track->SetESDEvent(fESD);
  + //
  + // track comes from the vertex
  + //
  if(!track->RelateToVertex(fVertex,fESD->GetMagneticField(),100)) continue;
  + //
  //fill TPCcls histo
  nTPC+=track->GetTPCncls();
  nITS+=track->GetITSNcls();
  track->GetImpactParameters(dca, cov);
  + //
  + // It's MC and we have the event
  + //
  if(fMC && mcEvent){
  Int_t absLabel=TMath::Abs(track->GetLabel());
  AliMCParticle* mcPart = (AliMCParticle*)mcEvent->GetTrack(absLabel);
  part = (TParticle*)mcEvent->Particle(absLabel);
  + //
  + // check if it's a good AliMCParticle and e can get a TParticle from it
  + //
  if(mcPart && part){
  + //
  + // it's a pdg particle
  + //
  pdgPart = part->GetPDG();
  + //
  + //
  if(pdgPart){
  code = pdgPart->PdgCode();
  abscode = TMath::Abs(code);
  @@ -767,8 +783,12 @@ void AliAnalysisTrackingUncertaintiesAOT::ProcessTracks(AliMCEvent *mcEvent) {
  if(abscode == 321) specie = 2;
  if(abscode ==2212) specie = 3;
  }
  + // end if pdgPart
  }
  + //end if mcPart && part
  }
  + // end if fMC and mcEvent and
  + //
  //
  // relevant variables
  //
  