From 903ee8252cd0510ab419fcfc4946276b70ebfc31 Mon Sep 17 00:00:00 2001
From: "se.gorbunov" <se.gorbunov@gsi.de>
Date: Thu, 25 Jan 2024 09:54:17 +0000
Subject: [PATCH] add final mc matching to the debug mode of run_reco.C

---
 macro/run/run_reco.C | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/macro/run/run_reco.C b/macro/run/run_reco.C
index 3a36dce690..455dfa21e9 100644
--- a/macro/run/run_reco.C
+++ b/macro/run/run_reco.C
@@ -514,6 +514,11 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
 
   }  //? time-based reco
 
+  if (debugWithMC) {
+    CbmMatchRecoToMC* match2 = new CbmMatchRecoToMC();
+    run->AddTask(match2);
+  }
+
   // -----  Parameter database   --------------------------------------------
   std::cout << std::endl << std::endl;
   std::cout << "-I- " << myName << ": Set runtime DB" << std::endl;
-- 
GitLab