From 030ef24346ff1b77b3636f4b70cd86b648f0d726 Mon Sep 17 00:00:00 2001 From: Antonio Giannini <antonio.giannini@cern.ch> Date: Mon, 17 Feb 2025 16:41:04 +0100 Subject: [PATCH] fix path for local config --- Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerBase.cxx | 2 +- Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerUtils.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerBase.cxx b/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerBase.cxx index 7fa896cbc7e7..5b100c7b4bdb 100644 --- a/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerBase.cxx +++ b/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerBase.cxx @@ -283,7 +283,7 @@ StatusCode JSSTaggerBase::getConfigReader() { std::string configPath; if ( m_calibArea.compare("Local") == 0 ) { - configPath = PathResolverFindCalibFile(("$WorkDir_DIR/data/BoostedJetTaggers/"+m_configFile).c_str()); + configPath = PathResolverFindCalibFile(m_configFile.c_str()); } else if ( m_calibArea.find("eos") != std::string::npos) { configPath = PathResolverFindCalibFile((m_calibArea+"/"+m_configFile).c_str()); diff --git a/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerUtils.cxx b/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerUtils.cxx index 56e0113eeb55..67d5a705181b 100644 --- a/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerUtils.cxx +++ b/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerUtils.cxx @@ -75,7 +75,7 @@ StatusCode JSSTaggerUtils::initialize(){ // init tool std::string ModelPath = ""; if ( m_calibArea.compare("Local") == 0 ) { - ModelPath = PathResolverFindCalibFile(("$WorkDir_DIR/data/BoostedJetTaggers/" + ConstTaggerFileName).c_str()); + ModelPath = PathResolverFindCalibFile(ConstTaggerFileName.c_str()); } else if ( m_calibArea.find("eos") != std::string::npos) { ModelPath = (ConstTaggerFileName); @@ -115,7 +115,7 @@ StatusCode JSSTaggerUtils::initialize(){ // init tool std::string ModelPath = ""; if ( m_calibArea.compare("Local") == 0 ) { - ModelPath = PathResolverFindCalibFile(("$WorkDir_DIR/data/BoostedJetTaggers/" + HLTaggerFileName).c_str()); + ModelPath = PathResolverFindCalibFile(HLTaggerFileName.c_str()); } else if ( m_calibArea.find("eos") != std::string::npos) { ModelPath = (HLTaggerFileName); -- GitLab