Skip to content

Commit 39d9cb2

Browse files
authored
[ALICE3] Refactor LUT download path and cleanup settings (#14774)
1 parent 59c1e8d commit 39d9cb2

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

ALICE3/Core/DelphesO2TrackSmearer.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ class TrackSmearer
249249
return "pion"; // Default: pion
250250
}
251251
}
252-
void setdNdEta(float val) { mdNdEta = val; } //;
253-
void setCcdbManager(o2::ccdb::BasicCCDBManager* mgr) { mCcdbManager = mgr; } //;
254-
void setCleanupDownloadedFile(bool val) { mCleanupDownloadedFile = val; } //;
255-
void setDownloadPath(const std::string& path) { mOutPath = "/tmp/LUTs/" + path; } //;
252+
void setdNdEta(float val) { mdNdEta = val; } //;
253+
void setCcdbManager(o2::ccdb::BasicCCDBManager* mgr) { mCcdbManager = mgr; } //;
254+
void setCleanupDownloadedFile(bool val) { mCleanupDownloadedFile = val; } //;
255+
void setDownloadPath(const std::string& path) { mOutPath = path; } //;
256256

257257
protected:
258258
static constexpr unsigned int nLUTs = 9; // Number of LUT available
@@ -266,8 +266,8 @@ class TrackSmearer
266266

267267
private:
268268
o2::ccdb::BasicCCDBManager* mCcdbManager = nullptr;
269-
bool mCleanupDownloadedFile = true;
270-
std::string mOutPath = "/tmp/LUTs/";
269+
bool mCleanupDownloadedFile = true; // Flag to cleanup the LUT after it's used
270+
std::string mOutPath = "./.ALICE3/LUTs/"; // Path where to download LUTs from CCDB
271271
};
272272

273273
} // namespace delphes

ALICE3/TableProducer/OTF/onTheFlyRichPid.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ struct OnTheFlyRichPid {
301301
mSmearer.emplace_back(std::make_unique<o2::delphes::DelphesO2TrackSmearer>());
302302
mSmearer[icfg]->setCleanupDownloadedFile(cleanLutWhenLoaded.value);
303303
mSmearer[icfg]->setCcdbManager(ccdb.operator->());
304-
mSmearer[icfg]->setDownloadPath("RICHPID");
304+
mSmearer[icfg]->setDownloadPath("./.ALICE3/RICHPID/");
305305
std::map<std::string, std::string> globalConfiguration = mGeoContainer.getConfiguration(icfg, "global");
306306
for (const auto& entry : globalConfiguration) {
307307
int pdg = 0;
@@ -761,7 +761,6 @@ struct OnTheFlyRichPid {
761761
}
762762

763763
for (const auto& track : tracks) {
764-
765764
auto fillDummyValues = [&](bool gasRich = false) {
766765
upgradeRich(kErrorValue, kErrorValue, kErrorValue, kErrorValue, kErrorValue, kErrorValue, kErrorValue, kErrorValue, kErrorValue);
767766
upgradeRichSignal(false, false, false, false, false, false, false, false, false, false, gasRich);

ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ struct OnTheFlyTofPid {
160160
mSmearer.emplace_back(std::make_unique<o2::delphes::DelphesO2TrackSmearer>());
161161
mSmearer[icfg]->setCleanupDownloadedFile(cleanLutWhenLoaded.value);
162162
mSmearer[icfg]->setCcdbManager(ccdb.operator->());
163-
mSmearer[icfg]->setDownloadPath("TOFPID");
163+
mSmearer[icfg]->setDownloadPath("./.ALICE3/TOFPID/");
164164
std::map<std::string, std::string> globalConfiguration = mGeoContainer.getConfiguration(icfg, "global");
165165
for (const auto& entry : globalConfiguration) {
166166
int pdg = 0;

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ struct OnTheFlyTracker {
320320
mSmearer.emplace_back(std::make_unique<o2::delphes::DelphesO2TrackSmearer>());
321321
mSmearer[icfg]->setCleanupDownloadedFile(cleanLutWhenLoaded.value);
322322
mSmearer[icfg]->setCcdbManager(ccdb.operator->());
323-
mSmearer[icfg]->setDownloadPath("Tracker");
323+
mSmearer[icfg]->setDownloadPath("./.ALICE3/Tracker/");
324324
std::map<std::string, std::string> globalConfiguration = mGeoContainer.getConfiguration(icfg, "global");
325325
if (enablePrimarySmearing) {
326326
// load LUTs for primaries

0 commit comments

Comments
 (0)