diff --git a/macro/L1/run_reco_L1global.C b/macro/L1/run_reco_L1global.C index d766631fae517f93230a8c080ef69bc5590e78ab..2875f3811cd12173dca59d810713355d9fddb07e 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;