10 #include <hlt/softwaretrigger/core/FinalTriggerDecisionCalculator.h>
11 #include <hlt/softwaretrigger/core/SoftwareTriggerDBHandler.h>
14 using namespace SoftwareTrigger;
19 const auto& results = result.getResults();
25 auto allTotalResultIterator = results.find(allTotalResultName);
26 if (allTotalResultIterator != results.end() and not forgetTotalResult) {
35 auto filterTotalResultIterator = results.find(filterTotalResultName);
37 if (filterTotalResultIterator != results.end()) {
49 auto fastRecoTotalResultIterator = results.find(fastRecoTotalResultName);
50 auto hltTotalResultIterator = results.find(hltTotalResultName);
52 if (fastRecoTotalResultIterator != results.end()) {
53 B2WARNING(
"You are using an old trigger result with a newer version of the software. Make sure this is what you want.");
59 if (hltTotalResultIterator != results.end()) {
60 B2WARNING(
"You are using an old trigger result with a newer version of the software. Make sure this is what you want.");
73 const std::string& baseIdentifier,
74 bool acceptOverridesReject)
76 bool hasOneAcceptCut =
false;
77 bool hasOneRejectCut =
false;
79 for (
const auto& resultWithName : result.getResults()) {
80 const std::string& cutName = resultWithName.first;
87 B2WARNING(
"The store object already includes a result for this module. Will overwrite it.");
94 hasOneAcceptCut =
true;
96 hasOneRejectCut =
true;
100 if (acceptOverridesReject) {
101 if (hasOneAcceptCut or (not hasOneRejectCut)) {
107 if (hasOneAcceptCut and (not hasOneRejectCut)) {