9#include <hlt/softwaretrigger/core/FinalTriggerDecisionCalculator.h>
10#include <mdst/dataobjects/SoftwareTriggerResult.h>
11#include <hlt/softwaretrigger/core/SoftwareTriggerDBHandler.h>
12#include <gtest/gtest.h>
21 namespace SoftwareTrigger {
23 TEST(FinalTriggerDecisionCalculatorTest, basic)
25 SoftwareTriggerResult result;
109 TEST(FinalTriggerDecisionCalculatorTest, result)
111 SoftwareTriggerResult result;
static SoftwareTriggerCutResult getModuleResult(const SoftwareTriggerResult &result, const std::string &baseIdentifier, bool acceptOverridesReject)
Calculate the "total_result" for a given base identifier by looping through all results with the give...
static bool getFinalTriggerDecision(const SoftwareTriggerResult &result, bool forgetTotalResult=false)
Calculate the final cut decision using all "total_results" of all sub triggers in the software trigge...
static std::string makeFullCutName(const std::string &baseCutIdentifier, const std::string &cutIdentifier)
Helper function to compile the full identifier from the base and the specific cut name.
static std::string makeTotalResultName(const std::string &baseIdentifier="all")
Handy function to create the name related to the total result of a specific trigger stage (either fil...
@ c_accept
Accept this event.
@ c_reject
Reject this event.
@ c_noResult
There were not enough information to decide on what to do with the event.
Abstract base class for different kinds of events.