Skip to content

Commit

Permalink
Update directory for LST data files
Browse files Browse the repository at this point in the history
  • Loading branch information
VourMa authored and slava77 committed Jun 6, 2024
1 parent 7c6bcfa commit 0edc116
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions RecoTracker/LSTCore/src/alpaka/LSTESData.dev.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ namespace {
path_str = path_tracklooperdir;
path_str += "/../";
} else {
// FIXME: temporary solution, will need to pass a value from FileInPath or CMSSW search path
// in the `LSTProducer` or a related ES producer
path_str = std::getenv("CMSSW_BASE");
path_str += "/src/RecoTracker/LSTCore";
std::stringstream search_path(std::getenv("CMSSW_SEARCH_PATH"));
std::string path;
while (std::getline(search_path, path, ':')) {
if (std::filesystem::exists(path+"/RecoTracker/LSTCore/data")) {
path_str = path;
break;
}
}
path_str += "/RecoTracker/LSTCore";
}
return path_str;
}
Expand Down

0 comments on commit 0edc116

Please sign in to comment.