Skip to content

Commit 74e175d

Browse files
authored
Update onTheFlyTrackerPid.cxx
1 parent 38ec383 commit 74e175d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ALICE3/TableProducer/OTF/onTheFlyTrackerPid.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ class ToTLUT
142142
}
143143
if (strncmp(filename.c_str(), "ccdb:", 5) == 0) { // Check if filename starts with "ccdb:"
144144
const std::string basePath = std::string(filename).substr(5);
145-
const std::string outPath = "/tmp/ToTLUTs/" + basePath;
146-
const std::string localFilename = outPath + "/snapshot.root";
145+
const std::string outPath = "/tmp/ToTLUTs/";
146+
const std::string localFilename = outPath + basePath + "/snapshot.root";
147147
std::ifstream checkFile(localFilename);
148148
if (!checkFile.is_open()) { // File is not found, need to download it from CCDB
149149
if (!mCcdbManager) {
@@ -153,7 +153,7 @@ class ToTLUT
153153
mCcdbManager->getCCDBAccessor().retrieveBlob(basePath, outPath, metadata, 1);
154154
std::ifstream testFile(localFilename);
155155
if (!testFile.is_open()) {
156-
LOG(fatal) << "Could not find downloaded CCDB file for PDG " << pdg;
156+
LOG(fatal) << "Could not find downloaded CCDB file for PDG " << pdg << " in file "<< localFilename;
157157
return false;
158158
}
159159
testFile.close();

0 commit comments

Comments
 (0)