message: fixed bug in hit accounting
diff: @@ -389,14 +389,16 @@ void AliAnalysisTaskUpcNano_MB::UserExec(Option_t *)
  fTOFhits.Set(nTOFhits);
  fTrackIndices.Set(nTOFhits);
  + Int_t hitCounts=0;
  for (Int_t icl=0;icl<tofClusters->GetEntriesFast();icl++){
  AliESDTOFCluster* cl = (AliESDTOFCluster*) tofClusters->At(icl);
  for (Int_t ihit=0;ihit<cl->GetNTOFhits();ihit++){
  AliESDTOFHit* hit = (AliESDTOFHit*) cl->GetTOFHit(ihit);
  Int_t channel = hit->GetTOFchannel();
  Int_t trackIndex = (cl->GetNMatchableTracks()==1) ? cl->GetTrackIndex(0) : -1;
  - fTOFhits.AddAt(channel,ihit);
  - fTrackIndices.AddAt(trackIndex,ihit);
  + fTOFhits.AddAt(channel,hitCounts);
  + fTrackIndices.AddAt(trackIndex,hitCounts);
  + hitCounts++;
  }
  }
  