Skip to content

Commit d0ea255

Browse files
committed
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.
1 parent af49432 commit d0ea255

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

EventFiltering/macros/uploadOTSobjects.C

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,10 @@
3131

3232
constexpr uint32_t chunkSize = 1000000;
3333

34-
void uploadOTSobjects(std::string inputList, std::string passName, bool useAlien, bool chunkedProcessing)
34+
void uploadOTSobjects(std::string inputList, std::string passName, bool useAlien, bool chunkedProcessing = true)
3535
{
36-
const std::string kBaseCCDBPath = "Users/m/mpuccio/EventFiltering/OTS/";
36+
const std::string kBaseCCDBPath = "EventFiltering/Zorro/";
3737
std::string baseCCDBpath = passName.empty() ? kBaseCCDBPath : kBaseCCDBPath + passName + "/";
38-
if (chunkedProcessing) {
39-
baseCCDBpath += "Chunked/";
40-
}
4138
if (useAlien) {
4239
TGrid::Connect("alien://");
4340
}
@@ -141,9 +138,9 @@ void uploadOTSobjects(std::string inputList, std::string passName, bool useAlien
141138
}
142139
}
143140

144-
void uploadOTSobjects(std::string periodName, bool chunkedProcessing)
141+
void uploadOTSobjects(std::string periodName)
145142
{
146143
int year = 2000 + std::stoi(periodName.substr(3, 2));
147144
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()));
148-
uploadOTSobjects(Form("list_%s.txt", periodName.data()), "", true, chunkedProcessing);
145+
uploadOTSobjects(Form("list_%s.txt", periodName.data()), "", true, true);
149146
}

0 commit comments

Comments
 (0)