message: include embedded tracks in background scale factor computation, when applicable
diff: @@ -1003,11 +1003,6 @@ Bool_t AliAnalysisTaskEmcalJetPerformance::Run()
  while ((jetCont = static_cast<AliJetContainer*>(next()))) {
  TString jetContName = jetCont->GetName();
  - // Compute the full jet background scale factor and delta-pt
  - if (fComputeBackground) {
  - ComputeBackground();
  - }
  -
  // Do a simple trigger simulation (if requested)
  if (fDoTriggerSimulation) {
  DoTriggerSimulation();
  @@ -1015,6 +1010,11 @@ Bool_t AliAnalysisTaskEmcalJetPerformance::Run()
  }
  + // Compute the full jet background scale factor and delta-pt
  + if (fComputeBackground) {
  + ComputeBackground();
  + }
  +
  // Only fill the embedding qa plots if:
  // - We are using the embedding helper
  // - The class has been initialized
  @@ -1786,12 +1786,20 @@ void AliAnalysisTaskEmcalJetPerformance::ComputeBackground()
  // Loop over tracks. Sum the track pT:
  // (1) in the entire TPC, (2) in the EMCal, (3) in the EMCal random cone,
  - AliTrackContainer* trackCont = dynamic_cast<AliTrackContainer*>(GetParticleContainer("tracks"));
  + // Note: Loops over all det-level track containers. For data there should be only one. For embedding, there should be signal+background tracks.
  + AliParticleContainer * partCont = 0;
  AliTLorentzVector track;
  Double_t trackEta;
  Double_t trackPhi;
  Double_t trackPt;
  Double_t deltaR;
  + TIter nextPartCont(&fParticleCollArray);
  + while ((partCont = static_cast<AliParticleContainer*>(nextPartCont()))) {
  +
  + TString partContName = partCont->GetName();
  + if (!partContName.CompareTo("tracks")) {
  +
  + AliTrackContainer* trackCont = dynamic_cast<AliTrackContainer*>(partCont);
  for (auto trackIterator : trackCont->accepted_momentum() ) {
  track.Clear();
  @@ -1815,7 +1823,8 @@ void AliAnalysisTaskEmcalJetPerformance::ComputeBackground()
  if (deltaR < jetR) {
  trackPtSumEMCalRC += trackPt;
  }
  -
  + }
  + }
  }
  // Loop over clusters. Sum the cluster ET:
  @@ -2234,7 +2243,7 @@ AliAnalysisTaskEmcalJetPerformance* AliAnalysisTaskEmcalJetPerformance::AddTaskE
  }
  /////////////////////////////////////////////////////////////
  - // Configure di-jet task
  + // Configure jet performance task
  AliAnalysisTaskEmcalJetPerformance* task = new AliAnalysisTaskEmcalJetPerformance(name);
  /////////////////////////////////////////////////////////////
  