Skip to content

Commit 7add31a

Browse files
authored
[Trigger] Support for the new lumi-task output (#12312)
1 parent 2dba948 commit 7add31a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

EventFiltering/macros/uploadOTSobjects.C

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ void uploadOTSobjects(std::string inputList, std::string passName, bool useAlien
6767
api.storeAsTFile(scalers, baseCCDBpath + "FilterCounters", metadata, duration.first, duration.second + 1);
6868
api.storeAsTFile(filters, baseCCDBpath + "SelectionCounters", metadata, duration.first, duration.second + 1);
6969
TH1* hCounterTVX = static_cast<TH1*>(scalersFile->Get("bc-selection-task/hCounterTVX"));
70+
if (!hCounterTVX) {
71+
hCounterTVX = static_cast<TH1*>(scalersFile->Get("lumi-task/hCounterTVX"));
72+
if (!hCounterTVX) {
73+
std::cout << "No hCounterTVX histogram found in the file, skipping upload for run " << runString << std::endl;
74+
continue;
75+
}
76+
}
7077
api.storeAsTFile(hCounterTVX, baseCCDBpath + "InspectedTVX", metadata, duration.first, duration.second + 1);
7178

7279
std::vector<ZorroHelper> zorroHelpers;

0 commit comments

Comments
 (0)