From f6fd9c39e62d236a2ab88645c5e18736b20dbce3 Mon Sep 17 00:00:00 2001 From: Adrian Meyer-Ahrens <a_meye37@uni-muenster.de> Date: Fri, 24 Jun 2022 14:09:36 +0200 Subject: [PATCH] path to likelihood file is read from parameter file instead of being hard coded --- core/detectors/trd/CbmTrdParSetGas.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/detectors/trd/CbmTrdParSetGas.cxx b/core/detectors/trd/CbmTrdParSetGas.cxx index 5fcf2157c9..7c0be530e3 100644 --- a/core/detectors/trd/CbmTrdParSetGas.cxx +++ b/core/detectors/trd/CbmTrdParSetGas.cxx @@ -38,7 +38,6 @@ Bool_t CbmTrdParSetGas::getParams(FairParamList* l) Text_t repo[100], pid[100]; if (!l->fill("RepoDrift", repo, 100)) return kFALSE; if (!l->fill("RepoPid", pid, 100)) return kFALSE; - TFile* oldFile = gFile; TDirectory* oldDir = gDirectory; @@ -103,8 +102,10 @@ void CbmTrdParSetGas::putParams(FairParamList* l) CbmTrdParModGas* mod = (CbmTrdParModGas*) fModuleMap[moduleId[0]]; + TString repopid(mod->GetFileName().Data()); + l->add("RepoDrift", "parameters/trd/CbmTrdDriftMap.root"); - l->add("RepoPid", "parameters/trd/Likelihood_Xenon_85_GSI_12.root"); + l->add("RepoPid", repopid); l->add("Gas", Form("Xe_%d", Int_t(1.e2 * mod->GetNobleGas()))); l->add("NrOfModules", fNrOfModules); l->add("ModuleIdArray", moduleId); -- GitLab