From 2f0034d24739d81c229b453326a7ccb51845881d Mon Sep 17 00:00:00 2001 From: "se.gorbunov" <se.gorbunov@gsi.de> Date: Fri, 30 Sep 2022 14:19:10 +0000 Subject: [PATCH] L1: global tracking macro: load tof material map --- macro/L1/run_reco_L1global.C | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/macro/L1/run_reco_L1global.C b/macro/L1/run_reco_L1global.C index d766631fae..2875f3811c 100644 --- a/macro/L1/run_reco_L1global.C +++ b/macro/L1/run_reco_L1global.C @@ -386,6 +386,14 @@ void run_reco_L1global(TString input = "", Int_t nTimeSlices = -1, Int_t firstTi l1->SetTrdMaterialBudgetFileName(parFile.Data()); } + TString tofGeoTag; + if (geo->GetGeoTag(ECbmModuleId::kTof, tofGeoTag)) { + TString parFile = gSystem->Getenv("VMCWORKDIR"); + parFile = parFile + "/parameters/tof/tof_matbudget_" + tofGeoTag + ".root "; + std::cout << "Using TOF material budget file " << parFile << std::endl; + l1->SetTofMaterialBudgetFileName(parFile.Data()); + } + run->AddTask(l1); std::cout << "-I- " << myName << ": Added task " << l1->GetName() << std::endl; -- GitLab