From d0ea255f2995e41c5733d96c5db8ac66d5076d7d Mon Sep 17 00:00:00 2001 From: Maximiliano Puccio Date: Wed, 13 Aug 2025 15:26:03 +0200 Subject: [PATCH] feat: Update OTS object upload process The changes made in this commit simplify the process of uploading OTS objects to the CCDB. The main changes are: - The default value for the `chunkedProcessing` parameter is set to `true`, making it the default behavior. - The base CCDB path is updated to use the `EventFiltering/Zorro/` directory instead of the hardcoded `Users/m/mpuccio/EventFiltering/OTS/` path. - The `uploadOTSobjects` function that takes a `periodName` parameter has been updated to always use `chunkedProcessing = true`, simplifying the function call. These changes make the OTS object upload process more consistent and easier to use, while also ensuring that the CCDB path is more generic and not tied to a specific user's directory. --- EventFiltering/macros/uploadOTSobjects.C | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/EventFiltering/macros/uploadOTSobjects.C b/EventFiltering/macros/uploadOTSobjects.C index 8e4c6c27136..eb2011308ce 100644 --- a/EventFiltering/macros/uploadOTSobjects.C +++ b/EventFiltering/macros/uploadOTSobjects.C @@ -31,13 +31,10 @@ constexpr uint32_t chunkSize = 1000000; -void uploadOTSobjects(std::string inputList, std::string passName, bool useAlien, bool chunkedProcessing) +void uploadOTSobjects(std::string inputList, std::string passName, bool useAlien, bool chunkedProcessing = true) { - const std::string kBaseCCDBPath = "Users/m/mpuccio/EventFiltering/OTS/"; + const std::string kBaseCCDBPath = "EventFiltering/Zorro/"; std::string baseCCDBpath = passName.empty() ? kBaseCCDBPath : kBaseCCDBPath + passName + "/"; - if (chunkedProcessing) { - baseCCDBpath += "Chunked/"; - } if (useAlien) { TGrid::Connect("alien://"); } @@ -141,9 +138,9 @@ void uploadOTSobjects(std::string inputList, std::string passName, bool useAlien } } -void uploadOTSobjects(std::string periodName, bool chunkedProcessing) +void uploadOTSobjects(std::string periodName) { int year = 2000 + std::stoi(periodName.substr(3, 2)); gSystem->Exec(Form("alien_find /alice/data/%i/%s/ ctf_skim_full/AnalysisResults_fullrun.root | sed 's:/AnalysisResults_fullrun\\.root::' > list_%s.txt", year, periodName.data(), periodName.data())); - uploadOTSobjects(Form("list_%s.txt", periodName.data()), "", true, chunkedProcessing); + uploadOTSobjects(Form("list_%s.txt", periodName.data()), "", true, true); }