Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ALICE3/Core/DelphesO2TrackSmearer.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ class TrackSmearer
return "pion"; // Default: pion
}
}
void setdNdEta(float val) { mdNdEta = val; } //;
void setCcdbManager(o2::ccdb::BasicCCDBManager* mgr) { mCcdbManager = mgr; } //;
void setCleanupDownloadedFile(bool val) { mCleanupDownloadedFile = val; } //;
void setDownloadPath(const std::string& path) { mOutPath = "/tmp/LUTs/" + path; } //;
void setdNdEta(float val) { mdNdEta = val; } //;
void setCcdbManager(o2::ccdb::BasicCCDBManager* mgr) { mCcdbManager = mgr; } //;
void setCleanupDownloadedFile(bool val) { mCleanupDownloadedFile = val; } //;
void setDownloadPath(const std::string& path) { mOutPath = path; } //;

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

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

} // namespace delphes
Expand Down
3 changes: 1 addition & 2 deletions ALICE3/TableProducer/OTF/onTheFlyRichPid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ struct OnTheFlyRichPid {
mSmearer.emplace_back(std::make_unique<o2::delphes::DelphesO2TrackSmearer>());
mSmearer[icfg]->setCleanupDownloadedFile(cleanLutWhenLoaded.value);
mSmearer[icfg]->setCcdbManager(ccdb.operator->());
mSmearer[icfg]->setDownloadPath("RICHPID");
mSmearer[icfg]->setDownloadPath("./.ALICE3/RICHPID/");
std::map<std::string, std::string> globalConfiguration = mGeoContainer.getConfiguration(icfg, "global");
for (const auto& entry : globalConfiguration) {
int pdg = 0;
Expand Down Expand Up @@ -761,7 +761,6 @@ struct OnTheFlyRichPid {
}

for (const auto& track : tracks) {

auto fillDummyValues = [&](bool gasRich = false) {
upgradeRich(kErrorValue, kErrorValue, kErrorValue, kErrorValue, kErrorValue, kErrorValue, kErrorValue, kErrorValue, kErrorValue);
upgradeRichSignal(false, false, false, false, false, false, false, false, false, false, gasRich);
Expand Down
2 changes: 1 addition & 1 deletion ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ struct OnTheFlyTofPid {
mSmearer.emplace_back(std::make_unique<o2::delphes::DelphesO2TrackSmearer>());
mSmearer[icfg]->setCleanupDownloadedFile(cleanLutWhenLoaded.value);
mSmearer[icfg]->setCcdbManager(ccdb.operator->());
mSmearer[icfg]->setDownloadPath("TOFPID");
mSmearer[icfg]->setDownloadPath("./.ALICE3/TOFPID/");
std::map<std::string, std::string> globalConfiguration = mGeoContainer.getConfiguration(icfg, "global");
for (const auto& entry : globalConfiguration) {
int pdg = 0;
Expand Down
2 changes: 1 addition & 1 deletion ALICE3/TableProducer/OTF/onTheFlyTracker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ struct OnTheFlyTracker {
mSmearer.emplace_back(std::make_unique<o2::delphes::DelphesO2TrackSmearer>());
mSmearer[icfg]->setCleanupDownloadedFile(cleanLutWhenLoaded.value);
mSmearer[icfg]->setCcdbManager(ccdb.operator->());
mSmearer[icfg]->setDownloadPath("Tracker");
mSmearer[icfg]->setDownloadPath("./.ALICE3/Tracker/");
std::map<std::string, std::string> globalConfiguration = mGeoContainer.getConfiguration(icfg, "global");
if (enablePrimarySmearing) {
// load LUTs for primaries
Expand Down
Loading